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:
Ryan Boren
2010-10-28 15:46:11 +00:00
parent 1d4e508a27
commit 2184a5d0f6
5 changed files with 26 additions and 18 deletions

View File

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