Changeset 16804 for branches/3.0
- Timestamp:
- 12/08/2010 05:58:35 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/xmlrpc.php
r16803 r16804 1188 1188 if ( !current_user_can( 'moderate_comments' ) ) 1189 1189 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) ); 1190 1190 1191 1191 if ( !$comment = get_comment( $comment_ID ) ) 1192 1192 return new IXR_Error( 404, __( 'Invalid comment ID.' ) ); … … 2000 2000 2001 2001 do_action('xmlrpc_call', 'metaWeblog.newPost'); 2002 2002 2003 2003 $page_template = ''; 2004 2004 if ( !empty( $content_struct['post_type'] ) ) { … … 2029 2029 $cap = 'edit_posts'; 2030 2030 $error_message = __( 'Sorry, you are not allowed to publish posts on this site.' ); 2031 $post_type = 'post'; 2031 $post_type = 'post'; 2032 2032 } 2033 2033 … … 2319 2319 $cap = 'edit_posts'; 2320 2320 $error_message = __( 'Sorry, you are not allowed to publish posts on this site.' ); 2321 $post_type = 'post'; 2321 $post_type = 'post'; 2322 2322 } 2323 2323
Note: See TracChangeset
for help on using the changeset viewer.