Ticket #18218: 18218.2.patch
File 18218.2.patch, 2.9 KB (added by , 13 years ago) |
---|
-
wp-admin/press-this.php
597 597 </div> 598 598 599 599 <?php if ( isset($posted) && intval($posted) ) { $post_ID = intval($posted); ?> 600 <div id="message" class="updated"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a onclick="window.opener.location.replace(this.href); window.close();" href="<?php echo get_permalink( $post_ID); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $post_ID ); ?>" onclick="window.opener.location.replace(this.href); window.close();"><?php _e('Edit Post'); ?></a> | <a href="#" onclick="window.close();"><?php _e('Close Window'); ?></a></p></div>600 <div id="message" class="updated"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a onclick="window.opener.location.replace(this.href); window.close();" href="<?php echo get_permalink( $post_ID); ?>"><?php _e('View Post'); ?></a> | <a href="<?php echo get_edit_post_link( $post_ID ); ?>" onclick="window.opener.location.replace(this.href); window.close();"><?php _e('Edit Post'); ?></a> | <a href="#" onclick="window.close();"><?php _e('Close Window'); ?></a></p></div> 601 601 <?php } ?> 602 602 603 603 <div id="titlediv"> -
wp-includes/class-wp-xmlrpc-server.php
952 952 return $this->error; 953 953 954 954 if ( !current_user_can( 'edit_posts' ) ) 955 return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts tothis site in order to view categories.' ) );955 return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this site in order to view categories.' ) ); 956 956 957 957 do_action('xmlrpc_call', 'wp.suggestCategories'); 958 958 … … 2229 2229 if ( isset( $content_struct['wp_post_format'] ) ) { 2230 2230 $content_struct['wp_post_format'] = sanitize_key( $content_struct['wp_post_format'] ); 2231 2231 if ( !array_key_exists( $content_struct['wp_post_format'], get_post_format_strings() ) ) { 2232 return new IXR_Error( 404, __( 'Invalid post format ' ) );2232 return new IXR_Error( 404, __( 'Invalid post format.' ) ); 2233 2233 } 2234 2234 } 2235 2235 … … 2258 2258 switch ( $post_type ) { 2259 2259 case "post": 2260 2260 if ( !current_user_can('edit_others_posts') ) 2261 return(new IXR_Error(401, __('You are not allowed to post as this user ')));2261 return(new IXR_Error(401, __('You are not allowed to post as this user.'))); 2262 2262 break; 2263 2263 case "page": 2264 2264 if ( !current_user_can('edit_others_pages') ) 2265 return(new IXR_Error(401, __('You are not allowed to create pages as this user ')));2265 return(new IXR_Error(401, __('You are not allowed to create pages as this user.'))); 2266 2266 break; 2267 2267 default: 2268 2268 return(new IXR_Error(401, __('Invalid post type.')));