WordPress.org

Make WordPress Core

Changeset 16050 for trunk/wp-app.php


Ignore:
Timestamp:
10/28/2010 03:46:11 PM (9 years ago)
Author:
ryan
Message:

get_current_blog_id(). Props aaroncampbell. fixes #15233

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-app.php

    r15471 r16050  
    388388     */
    389389    function create_post() {
    390         global $blog_id, $user_ID;
     390        global $user_ID;
    391391        $this->get_accepted_content_type($this->atom_content_types);
    392392
     
    420420            $this->auth_required(__('Sorry, you do not have the right to edit/publish new posts.'));
    421421
    422         $blog_ID = (int ) $blog_id;
     422        $blog_ID = get_current_blog_id();
    423423        $post_status = ($publish) ? 'publish' : 'draft';
    424424        $post_author = (int) $user_ID;
Note: See TracChangeset for help on using the changeset viewer.