WordPress.org

Make WordPress Core

Changeset 5270


Ignore:
Timestamp:
04/14/2007 10:03:32 PM (13 years ago)
Author:
ryan
Message:

Lose reference to current_blog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/app.php

    r5166 r5270  
    401401     */
    402402    function create_post() {
    403         global $current_blog;
     403        global $blog_id;
    404404        $this->get_accepted_content_type($this->atom_content_types);
    405405
     
    418418            $this->auth_required('Sorry, you do not have the right to edit/publish new posts.');
    419419
    420         $blog_ID = (int )$current_blog->blog_id;
     420        $blog_ID = (int ) $blog_id;
    421421        $post_status = ($publish) ? 'publish' : 'draft';
    422422        $post_author = (int) $user->ID;
Note: See TracChangeset for help on using the changeset viewer.