BUG! All Bulk Actions don’t work (Copy, Delete, Export, Publish, Draft)
-
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:
- The topic ‘BUG! All Bulk Actions don’t work (Copy, Delete, Export, Publish, Draft)’ is closed to new replies.