mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
get_current_blog_id(). Props aaroncampbell. fixes #15233
git-svn-id: https://develop.svn.wordpress.org/trunk@16050 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -387,7 +387,7 @@ EOD;
|
||||
* @since 2.2.0
|
||||
*/
|
||||
function create_post() {
|
||||
global $blog_id, $user_ID;
|
||||
global $user_ID;
|
||||
$this->get_accepted_content_type($this->atom_content_types);
|
||||
|
||||
$parser = new AtomParser();
|
||||
@@ -419,7 +419,7 @@ EOD;
|
||||
if ( !current_user_can($cap) )
|
||||
$this->auth_required(__('Sorry, you do not have the right to edit/publish new posts.'));
|
||||
|
||||
$blog_ID = (int ) $blog_id;
|
||||
$blog_ID = get_current_blog_id();
|
||||
$post_status = ($publish) ? 'publish' : 'draft';
|
||||
$post_author = (int) $user_ID;
|
||||
$post_title = $entry->title[1];
|
||||
|
||||
Reference in New Issue
Block a user