Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-app.php

    r16699 r15470  
    388388         */
    389389        function create_post() {
    390                 global $user_ID;
     390                global $blog_id, $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 = get_current_blog_id();
     422                $blog_ID = (int ) $blog_id;
    423423                $post_status = ($publish) ? 'publish' : 'draft';
    424424                $post_author = (int) $user_ID;
    … …  
    713713
    714714                if ( !isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext']) )
    715                         $this->internal_error(__('Error occurred while accessing post metadata for file location.'));
     715                        $this->internal_error(__('Error ocurred while accessing post metadata for file location.'));
    716716
    717717                // delete file
    … …  
    750750
    751751                if ( !isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext']) )
    752                         $this->internal_error(__('Error occurred while accessing post metadata for file location.'));
     752                        $this->internal_error(__('Error ocurred while accessing post metadata for file location.'));
    753753
    754754                status_header('200');
    … …  
    802802
    803803                if (!isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext']))
    804                         $this->internal_error(__('Error occurred while accessing post metadata for file location.'));
     804                        $this->internal_error(__('Error ocurred while accessing post metadata for file location.'));
    805805
    806806                $fp = fopen("php://input", "rb");
Note: See TracChangeset for help on using the changeset viewer.