FIX post status publish instead of mistaken published
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6713d3d67a
commit
cb4e314fbd
|
|
@ -202,7 +202,7 @@ function handle_custom_bulk_actions($redirect_to, $doaction, $post_ids)
|
||||||
foreach ($post_ids as $post_id) {
|
foreach ($post_ids as $post_id) {
|
||||||
wp_update_post(array(
|
wp_update_post(array(
|
||||||
'ID' => $post_id,
|
'ID' => $post_id,
|
||||||
'post_status' => 'published'
|
'post_status' => 'publish'
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
$redirect_to = add_query_arg('bulk_offline_updated', count($post_ids), $redirect_to);
|
$redirect_to = add_query_arg('bulk_offline_updated', count($post_ids), $redirect_to);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user