Replace use of global $user_ID in favor of get_current_user_id(). fixes #25372.
Built from https://develop.svn.wordpress.org/trunk@25669 git-svn-id: http://core.svn.wordpress.org/trunk@25585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1372,7 +1372,7 @@ function wp_ajax_inline_save() {
|
||||
$data['excerpt'] = $post['post_excerpt'];
|
||||
|
||||
// rename
|
||||
$data['user_ID'] = $GLOBALS['user_ID'];
|
||||
$data['user_ID'] = get_current_user_id();
|
||||
|
||||
if ( isset($data['post_parent']) )
|
||||
$data['parent_id'] = $data['post_parent'];
|
||||
|
||||
Reference in New Issue
Block a user