WordPress.org

Make WordPress Core

Changeset 14315 for trunk/xmlrpc.php


Ignore:
Timestamp:
04/30/2010 03:17:49 AM (10 years ago)
Author:
nacin
Message:

s/blog/site/ in even more places. props PeteMall, see #11644.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r14090 r14315  
    247247    function login_pass_ok($user_login, $user_pass) {
    248248        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') ) );
    250250            return false;
    251251        }
     
    269269    function login($username, $password) {
    270270        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') ) );
    272272            return false;
    273273        }
     
    392392            ),
    393393            'blog_url'          => array(
    394                 'desc'          => __( 'Blog URL' ),
     394                'desc'          => __( 'Site URL' ),
    395395                'readonly'      => true,
    396396                'option'        => 'siteurl'
     
    404404            ),
    405405            'blog_title'        => array(
    406                 'desc'          => __( 'Blog Title' ),
     406                'desc'          => __( 'Site Title' ),
    407407                'readonly'      => false,
    408408                'option'            => 'blogname'
    409409            ),
    410410            'blog_tagline'      => array(
    411                 'desc'          => __( 'Blog Tagline' ),
     411                'desc'          => __( 'Site Tagline' ),
    412412                'readonly'      => false,
    413413                'option'        => 'blogdescription'
     
    831831
    832832        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.")));
    834834
    835835        do_action('xmlrpc_call', 'wp.getAuthors');
     
    866866
    867867        if ( !current_user_can( 'edit_posts' ) )
    868             return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this blog in 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.' ) );
    869869
    870870        do_action( 'xmlrpc_call', 'wp.getKeywords' );
     
    989989
    990990        if ( !current_user_can( 'edit_posts' ) )
    991             return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts to this blog in 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.' ) );
    992992
    993993        do_action('xmlrpc_call', 'wp.suggestCategories');
     
    10251025
    10261026        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.' ) );
    10281028
    10291029        do_action('xmlrpc_call', 'wp.getComment');
     
    11471147
    11481148        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.' ) );
    11501150
    11511151        do_action('xmlrpc_call', 'wp.deleteComment');
     
    11781178
    11791179        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.' ) );
    11811181
    11821182        do_action('xmlrpc_call', 'wp.editComment');
     
    13281328
    13291329        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.' ) );
    13311331
    13321332        do_action('xmlrpc_call', 'wp.getCommentStatusList');
     
    13871387
    13881388        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.' ) );
    13901390
    13911391        do_action('xmlrpc_call', 'wp.getPostStatusList');
     
    14131413
    14141414        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.' ) );
    14161416
    14171417        do_action('xmlrpc_call', 'wp.getPageStatusList');
     
    14391439
    14401440        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.' ) );
    14421442
    14431443        $templates = get_page_templates( );
     
    16251625
    16261626        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.' ) );
    16281628
    16291629        do_action('xmlrpc_call', 'blogger.getUserInfo');
     
    18431843        $cap = ($publish) ? 'publish_posts' : 'edit_posts';
    18441844        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.'));
    18461846
    18471847        $post_status = ($publish) ? 'publish' : 'draft';
     
    19901990
    19911991        $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.' );
    19931993        $post_type = 'post';
    19941994        $page_template = '';
     
    19961996            if ( $content_struct['post_type'] == 'page' ) {
    19971997                $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.' );
    19991999                $post_type = 'page';
    20002000                if ( !empty( $content_struct['wp_page_template'] ) )
     
    22652265
    22662266        $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.' );
    22682268        $post_type = 'post';
    22692269        $page_template = '';
     
    22712271            if ( $content_struct['post_type'] == 'page' ) {
    22722272                $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.' );
    22742274                $post_type = 'page';
    22752275                if ( !empty( $content_struct['wp_page_template'] ) )
     
    27212721
    27222722        if ( !current_user_can( 'edit_posts' ) )
    2723             return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this blog in 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.' ) );
    27242724
    27252725        do_action('xmlrpc_call', 'metaWeblog.getCategories');
     
    29092909
    29102910        if ( !current_user_can( 'edit_posts' ) )
    2911             return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this blog in 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.' ) );
    29122912
    29132913        do_action('xmlrpc_call', 'mt.getCategoryList');
Note: See TracChangeset for help on using the changeset viewer.