Changes from branches/3.0/wp-app.php at r15470 to trunk/wp-app.php at r16699
- File:
-
- 1 edited
-
trunk/wp-app.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-app.php
r15470 r16699 388 388 */ 389 389 function create_post() { 390 global $ blog_id, $user_ID;390 global $user_ID; 391 391 $this->get_accepted_content_type($this->atom_content_types); 392 392 … … 420 420 $this->auth_required(__('Sorry, you do not have the right to edit/publish new posts.')); 421 421 422 $blog_ID = (int ) $blog_id;422 $blog_ID = get_current_blog_id(); 423 423 $post_status = ($publish) ? 'publish' : 'draft'; 424 424 $post_author = (int) $user_ID; … … 713 713 714 714 if ( !isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext']) ) 715 $this->internal_error(__('Error oc urred while accessing post metadata for file location.'));715 $this->internal_error(__('Error occurred while accessing post metadata for file location.')); 716 716 717 717 // delete file … … 750 750 751 751 if ( !isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext']) ) 752 $this->internal_error(__('Error oc urred while accessing post metadata for file location.'));752 $this->internal_error(__('Error occurred while accessing post metadata for file location.')); 753 753 754 754 status_header('200'); … … 802 802 803 803 if (!isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext'])) 804 $this->internal_error(__('Error oc urred while accessing post metadata for file location.'));804 $this->internal_error(__('Error occurred while accessing post metadata for file location.')); 805 805 806 806 $fp = fopen("php://input", "rb");
Note: See TracChangeset
for help on using the changeset viewer.