Changeset 14315 for trunk/xmlrpc.php
- Timestamp:
- 04/30/2010 03:17:49 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r14090 r14315 247 247 function login_pass_ok($user_login, $user_pass) { 248 248 if ( !get_option( 'enable_xmlrpc' ) ) { 249 $this->error = new IXR_Error( 405, sprintf( __( 'XML-RPC services are disabled on this blog. An admin user can enable them at %s'), admin_url('options-writing.php') ) );249 $this->error = new IXR_Error( 405, sprintf( __( 'XML-RPC services are disabled on this site. An admin user can enable them at %s'), admin_url('options-writing.php') ) ); 250 250 return false; 251 251 } … … 269 269 function login($username, $password) { 270 270 if ( !get_option( 'enable_xmlrpc' ) ) { 271 $this->error = new IXR_Error( 405, sprintf( __( 'XML-RPC services are disabled on this blog. An admin user can enable them at %s'), admin_url('options-writing.php') ) );271 $this->error = new IXR_Error( 405, sprintf( __( 'XML-RPC services are disabled on this site. An admin user can enable them at %s'), admin_url('options-writing.php') ) ); 272 272 return false; 273 273 } … … 392 392 ), 393 393 'blog_url' => array( 394 'desc' => __( ' BlogURL' ),394 'desc' => __( 'Site URL' ), 395 395 'readonly' => true, 396 396 'option' => 'siteurl' … … 404 404 ), 405 405 'blog_title' => array( 406 'desc' => __( ' BlogTitle' ),406 'desc' => __( 'Site Title' ), 407 407 'readonly' => false, 408 408 'option' => 'blogname' 409 409 ), 410 410 'blog_tagline' => array( 411 'desc' => __( ' BlogTagline' ),411 'desc' => __( 'Site Tagline' ), 412 412 'readonly' => false, 413 413 'option' => 'blogdescription' … … 831 831 832 832 if ( !current_user_can("edit_posts") ) 833 return(new IXR_Error(401, __("Sorry, you cannot edit posts on this blog.")));833 return(new IXR_Error(401, __("Sorry, you cannot edit posts on this site."))); 834 834 835 835 do_action('xmlrpc_call', 'wp.getAuthors'); … … 866 866 867 867 if ( !current_user_can( 'edit_posts' ) ) 868 return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this blogin order to view tags.' ) );868 return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this site in order to view tags.' ) ); 869 869 870 870 do_action( 'xmlrpc_call', 'wp.getKeywords' ); … … 989 989 990 990 if ( !current_user_can( 'edit_posts' ) ) 991 return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts to this blogin order to view categories.' ) );991 return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts to this site in order to view categories.' ) ); 992 992 993 993 do_action('xmlrpc_call', 'wp.suggestCategories'); … … 1025 1025 1026 1026 if ( !current_user_can( 'moderate_comments' ) ) 1027 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this blog.' ) );1027 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) ); 1028 1028 1029 1029 do_action('xmlrpc_call', 'wp.getComment'); … … 1147 1147 1148 1148 if ( !current_user_can( 'moderate_comments' ) ) 1149 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this blog.' ) );1149 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) ); 1150 1150 1151 1151 do_action('xmlrpc_call', 'wp.deleteComment'); … … 1178 1178 1179 1179 if ( !current_user_can( 'moderate_comments' ) ) 1180 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this blog.' ) );1180 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) ); 1181 1181 1182 1182 do_action('xmlrpc_call', 'wp.editComment'); … … 1328 1328 1329 1329 if ( !current_user_can( 'moderate_comments' ) ) 1330 return new IXR_Error( 403, __( 'You are not allowed access to details about this blog.' ) );1330 return new IXR_Error( 403, __( 'You are not allowed access to details about this site.' ) ); 1331 1331 1332 1332 do_action('xmlrpc_call', 'wp.getCommentStatusList'); … … 1387 1387 1388 1388 if ( !current_user_can( 'edit_posts' ) ) 1389 return new IXR_Error( 403, __( 'You are not allowed access to details about this blog.' ) );1389 return new IXR_Error( 403, __( 'You are not allowed access to details about this site.' ) ); 1390 1390 1391 1391 do_action('xmlrpc_call', 'wp.getPostStatusList'); … … 1413 1413 1414 1414 if ( !current_user_can( 'edit_posts' ) ) 1415 return new IXR_Error( 403, __( 'You are not allowed access to details about this blog.' ) );1415 return new IXR_Error( 403, __( 'You are not allowed access to details about this site.' ) ); 1416 1416 1417 1417 do_action('xmlrpc_call', 'wp.getPageStatusList'); … … 1439 1439 1440 1440 if ( !current_user_can( 'edit_pages' ) ) 1441 return new IXR_Error( 403, __( 'You are not allowed access to details about this blog.' ) );1441 return new IXR_Error( 403, __( 'You are not allowed access to details about this site.' ) ); 1442 1442 1443 1443 $templates = get_page_templates( ); … … 1625 1625 1626 1626 if ( !current_user_can( 'edit_posts' ) ) 1627 return new IXR_Error( 401, __( 'Sorry, you do not have access to user data on this blog.' ) );1627 return new IXR_Error( 401, __( 'Sorry, you do not have access to user data on this site.' ) ); 1628 1628 1629 1629 do_action('xmlrpc_call', 'blogger.getUserInfo'); … … 1843 1843 $cap = ($publish) ? 'publish_posts' : 'edit_posts'; 1844 1844 if ( !current_user_can($cap) ) 1845 return new IXR_Error(401, __('Sorry, you are not allowed to post on this blog.'));1845 return new IXR_Error(401, __('Sorry, you are not allowed to post on this site.')); 1846 1846 1847 1847 $post_status = ($publish) ? 'publish' : 'draft'; … … 1990 1990 1991 1991 $cap = ( $publish ) ? 'publish_posts' : 'edit_posts'; 1992 $error_message = __( 'Sorry, you are not allowed to publish posts on this blog.' );1992 $error_message = __( 'Sorry, you are not allowed to publish posts on this site.' ); 1993 1993 $post_type = 'post'; 1994 1994 $page_template = ''; … … 1996 1996 if ( $content_struct['post_type'] == 'page' ) { 1997 1997 $cap = ( $publish ) ? 'publish_pages' : 'edit_pages'; 1998 $error_message = __( 'Sorry, you are not allowed to publish pages on this blog.' );1998 $error_message = __( 'Sorry, you are not allowed to publish pages on this site.' ); 1999 1999 $post_type = 'page'; 2000 2000 if ( !empty( $content_struct['wp_page_template'] ) ) … … 2265 2265 2266 2266 $cap = ( $publish ) ? 'publish_posts' : 'edit_posts'; 2267 $error_message = __( 'Sorry, you are not allowed to publish posts on this blog.' );2267 $error_message = __( 'Sorry, you are not allowed to publish posts on this site.' ); 2268 2268 $post_type = 'post'; 2269 2269 $page_template = ''; … … 2271 2271 if ( $content_struct['post_type'] == 'page' ) { 2272 2272 $cap = ( $publish ) ? 'publish_pages' : 'edit_pages'; 2273 $error_message = __( 'Sorry, you are not allowed to publish pages on this blog.' );2273 $error_message = __( 'Sorry, you are not allowed to publish pages on this site.' ); 2274 2274 $post_type = 'page'; 2275 2275 if ( !empty( $content_struct['wp_page_template'] ) ) … … 2721 2721 2722 2722 if ( !current_user_can( 'edit_posts' ) ) 2723 return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this blogin order to view categories.' ) );2723 return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this site in order to view categories.' ) ); 2724 2724 2725 2725 do_action('xmlrpc_call', 'metaWeblog.getCategories'); … … 2909 2909 2910 2910 if ( !current_user_can( 'edit_posts' ) ) 2911 return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this blogin order to view categories.' ) );2911 return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this site in order to view categories.' ) ); 2912 2912 2913 2913 do_action('xmlrpc_call', 'mt.getCategoryList');
Note: See TracChangeset
for help on using the changeset viewer.