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:
Dominik Schilling
2013-10-02 21:10:09 +00:00
parent 9e9093ab6d
commit e4c8d56b76
4 changed files with 22 additions and 22 deletions

View File

@@ -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'];