• Resolved NanoWisdoms

    (@nanowisdoms)


    Starting in V1.29 these have stopped working because wp-pipes\controllers\pipes.php has a bug in each bulk function.

    In V1.28 all the functions had the line:
    $id = isset( $_GET[‘id’] ) ? $_GET[‘id’] : 0;

    In V1.29 the lines were changed to:
    $id = isset( $_GET[‘id’] ) ? (int) sanitize_text_field($_GET[‘id’]) : ”;

    But:
    (int) sanitize_text_field($_GET[‘id’])
    always returns ” so the functions do nothing and so wp-pipes always reports the error:
    “Please pick up at least 1 pipe first!”

    To fix this, the lines (7 of them in the file) should be change to:
    $id = isset( $_GET[‘id’] ) ? array_map( ‘sanitize_text_field’,$_GET[‘id’]) : 0;

    See this stackoverflow note on using santize_text_field with an array:

    https://stackoverflow.com/questions/20444042/wordpress-how-to-sanitize-multi-line-text-from-a-textarea-without-losing-line

Viewing 1 replies (of 1 total)
  • Plugin Contributor Tung Pham

    (@phamtungpth)

    Hi Nanowisdoms,

    Thank you very much for your informing!

    I will try to update the code and release new fixed version soon!

    Best Regards!

Viewing 1 replies (of 1 total)
  • The topic ‘BUG! All Bulk Actions don’t work (Copy, Delete, Export, Publish, Draft)’ is closed to new replies.