Changeset 19935 for trunk/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 02/17/2012 12:02:42 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-xmlrpc-server.php
r19914 r19935 2701 2701 $this->attach_uploads( $post_ID, $post_content ); 2702 2702 2703 logIO('O', "Posted ! ID: $post_ID");2704 2705 2703 return $post_ID; 2706 2704 } … … 3047 3045 if ( isset( $content_struct['categories'] ) ) { 3048 3046 $catnames = $content_struct['categories']; 3049 logIO('O', 'Post cats: ' . var_export($catnames,true));3050 3047 3051 3048 if ( is_array($catnames) ) { … … 3088 3085 if ( !$post_ID ) 3089 3086 return new IXR_Error(500, __('Sorry, your entry could not be posted. Something wrong happened.')); 3090 3091 logIO('O', "Posted ! ID: $post_ID");3092 3087 3093 3088 return strval($post_ID); … … 3381 3376 if ( isset( $content_struct['wp_post_format'] ) ) 3382 3377 wp_set_post_terms( $post_ID, array( 'post-format-' . $content_struct['wp_post_format'] ), 'post_format' ); 3383 3384 logIO('O',"(MW) Edited ! ID: $post_ID");3385 3378 3386 3379 return true; … … 3696 3689 $bits = $data['bits']; 3697 3690 3698 logIO('O', '(MW) Received '.strlen($bits).' bytes');3699 3700 3691 if ( !$user = $this->login($username, $password) ) 3701 3692 return $this->error; … … 3704 3695 3705 3696 if ( !current_user_can('upload_files') ) { 3706 logIO('O', '(MW) User does not have upload_files capability');3707 3697 $this->error = new IXR_Error(401, __('You are not allowed to upload files to this site.')); 3708 3698 return $this->error; … … 3733 3723 if ( ! empty($upload['error']) ) { 3734 3724 $errorString = sprintf(__('Could not write file %1$s (%2$s)'), $name, $upload['error']); 3735 logIO('O', '(MW) ' . $errorString);3736 3725 return new IXR_Error(500, $errorString); 3737 3726 } … … 4120 4109 $post_ID = (int) $post_ID; 4121 4110 4122 logIO("O","(PB) URL='$pagelinkedto' ID='$post_ID' Found='$way'");4123 4124 4111 $post = get_post($post_ID); 4125 4112
Note: See TracChangeset
for help on using the changeset viewer.