Fix notice in wp-admin/includes/post.php, props harrym, fixes #10678 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11871 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7d5aff1305
commit
00de237f0c
@ -254,7 +254,7 @@ function bulk_edit_posts( $post_data = null ) {
|
||||
|
||||
if ( isset($post_data['post_category']) ) {
|
||||
if ( is_array($post_data['post_category']) && ! empty($post_data['post_category']) )
|
||||
$new_cats = array_map( absint, $post_data['post_category'] );
|
||||
$new_cats = array_map( 'absint', $post_data['post_category'] );
|
||||
else
|
||||
unset($post_data['post_category']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user