From e64a6575753f2766d759990c1d21a0b42d33967c Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 30 Apr 2010 03:17:49 +0000 Subject: [PATCH] s/blog/site/ in even more places. props PeteMall, see #11644. git-svn-id: http://svn.automattic.com/wordpress/trunk@14315 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/custom-header.php | 2 +- wp-admin/import/blogger.php | 2 +- wp-admin/import/dotclear.php | 2 +- wp-admin/import/rss.php | 2 +- wp-admin/import/wordpress.php | 2 +- wp-admin/includes/meta-boxes.php | 2 +- wp-admin/includes/plugin.php | 6 ++--- wp-admin/includes/post.php | 4 +-- wp-admin/includes/schema.php | 2 +- wp-admin/includes/upgrade.php | 4 +-- wp-admin/install.php | 4 +-- wp-admin/ms-sites.php | 2 +- wp-admin/tools.php | 2 +- wp-admin/user-edit.php | 4 +-- wp-admin/user-new.php | 4 +-- wp-admin/users.php | 4 +-- wp-app.php | 6 ++--- wp-includes/default-widgets.php | 8 +++--- wp-includes/ms-functions.php | 36 ++++++++++++------------- wp-includes/pluggable.php | 2 +- wp-includes/user.php | 2 +- xmlrpc.php | 46 ++++++++++++++++---------------- 22 files changed, 74 insertions(+), 74 deletions(-) diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index d42c631e65..ad22cbae83 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -414,7 +414,7 @@ else: endif; ?>
-

%1$d x %2$d pixels will be used as-is.'), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT); ?>

+

%1$d x %2$d pixels will be used as-is.'), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT); ?>


diff --git a/wp-admin/import/blogger.php b/wp-admin/import/blogger.php index 0742450498..95ef32b11f 100644 --- a/wp-admin/import/blogger.php +++ b/wp-admin/import/blogger.php @@ -48,7 +48,7 @@ class Blogger_Import { $next_url = get_option('siteurl') . '/wp-admin/index.php?import=blogger&noheader=true'; $auth_url = "https://www.google.com/accounts/AuthSubRequest"; $title = __('Import Blogger'); - $welcome = __('Howdy! This importer allows you to import posts and comments from your Blogger account into your WordPress blog.'); + $welcome = __('Howdy! This importer allows you to import posts and comments from your Blogger account into your WordPress site.'); $prereqs = __('To use this importer, you must have a Google account and an upgraded (New, was Beta) blog hosted on blogspot.com or a custom domain (not FTP).'); $stepone = __('The first thing you need to do is tell Blogger to let WordPress access your account. You will be sent back here after providing authorization.'); $auth = esc_attr__('Authorize'); diff --git a/wp-admin/import/dotclear.php b/wp-admin/import/dotclear.php index 90ce9ded60..686407ba8f 100644 --- a/wp-admin/import/dotclear.php +++ b/wp-admin/import/dotclear.php @@ -100,7 +100,7 @@ class Dotclear_Import { function greet() { - echo '

'.__('Howdy! This importer allows you to extract posts from a DotClear database into your blog. Mileage may vary.').'

'; + echo '

'.__('Howdy! This importer allows you to extract posts from a DotClear database into your WordPress site. Mileage may vary.').'

'; echo '

'.__('Your DotClear Configuration settings are as follows:').'

'; echo ''; wp_nonce_field('import-dotclear'); diff --git a/wp-admin/import/rss.php b/wp-admin/import/rss.php index 95261a615a..f98fa6cf04 100644 --- a/wp-admin/import/rss.php +++ b/wp-admin/import/rss.php @@ -32,7 +32,7 @@ class RSS_Import { function greet() { echo '
'; - echo '

'.__('Howdy! This importer allows you to extract posts from an RSS 2.0 file into your blog. This is useful if you want to import your posts from a system that is not handled by a custom import tool. Pick an RSS file to upload and click Import.').'

'; + echo '

'.__('Howdy! This importer allows you to extract posts from an RSS 2.0 file into your WordPress site. This is useful if you want to import your posts from a system that is not handled by a custom import tool. Pick an RSS file to upload and click Import.').'

'; wp_import_upload_form("admin.php?import=rss&step=1"); echo '
'; } diff --git a/wp-admin/import/wordpress.php b/wp-admin/import/wordpress.php index df37d1b432..5331b647fd 100644 --- a/wp-admin/import/wordpress.php +++ b/wp-admin/import/wordpress.php @@ -45,7 +45,7 @@ class WP_Import { function greet() { echo '
'; - echo '

'.__('Howdy! Upload your WordPress eXtended RSS (WXR) file and we’ll import the posts, pages, comments, custom fields, categories, and tags into this blog.').'

'; + echo '

'.__('Howdy! Upload your WordPress eXtended RSS (WXR) file and we’ll import the posts, pages, comments, custom fields, categories, and tags into this site.').'

'; echo '

'.__('Choose a WordPress WXR file to upload, then click Upload file and import.').'

'; wp_import_upload_form("admin.php?import=wordpress&step=1"); echo '
'; diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index 2fed794352..d6ff999f78 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -366,7 +366,7 @@ function post_trackback_meta_box($post) { ?>


()

-

pingbacks, no other action necessary.'); ?>

+

pingbacks, no other action necessary.'); ?>

edit_type_cap ) ) { if ( 'page' == $ptype->name ) - return new WP_Error( 'edit_pages', __( 'You are not allowed to create pages on this blog.' ) ); + return new WP_Error( 'edit_pages', __( 'You are not allowed to create pages on this site.' ) ); else - return new WP_Error( 'edit_posts', __( 'You are not allowed to create posts or drafts on this blog.' ) ); + return new WP_Error( 'edit_posts', __( 'You are not allowed to create posts or drafts on this site.' ) ); } // Check for autosave collisions diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php index 20fb95a6a2..873ecd32b3 100644 --- a/wp-admin/includes/schema.php +++ b/wp-admin/includes/schema.php @@ -197,7 +197,7 @@ function populate_options() { $options = array( 'siteurl' => $guessurl, - 'blogname' => __('My Blog'), + 'blogname' => __('My Site'), /* translators: blog tagline */ 'blogdescription' => __('Just another WordPress site'), 'users_can_register' => 0, diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index b3451ec7c3..1dfe1fca74 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -311,7 +311,7 @@ function wp_new_blog_notification($blog_title, $blog_url, $user_id, $password) { $user = new WP_User($user_id); $email = $user->user_email; $name = $user->user_login; - $message = sprintf(__("Your new WordPress blog has been successfully set up at: + $message = sprintf(__("Your new WordPress site has been successfully set up at: %1\$s @@ -326,7 +326,7 @@ We hope you enjoy your new blog. Thanks! http://wordpress.org/ "), $blog_url, $name, $password); - @wp_mail($email, __('New WordPress Blog'), $message); + @wp_mail($email, __('New WordPress Site'), $message); } endif; diff --git a/wp-admin/install.php b/wp-admin/install.php index 4eeb6aff5d..30519269fd 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -94,7 +94,7 @@ function display_setup_form( $error = null ) { - + @@ -130,7 +130,7 @@ function display_setup_form( $error = null ) {

- +

diff --git a/wp-admin/ms-sites.php b/wp-admin/ms-sites.php index d00cb8a050..311e75a2d0 100644 --- a/wp-admin/ms-sites.php +++ b/wp-admin/ms-sites.php @@ -647,7 +647,7 @@ switch ( $action ) { } } else { ?> - +

-

+

diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 8687799227..8ebb78d781 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -223,9 +223,9 @@ wp_dropdown_roles($user_role); // print the 'no role' option. Make it selected if the user has no role yet. if ( $user_role ) - echo ''; + echo ''; else - echo ''; + echo ''; ?> diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php index 5539b8b736..a4f0fe5cc8 100644 --- a/wp-admin/user-new.php +++ b/wp-admin/user-new.php @@ -32,7 +32,7 @@ Please click the following link to activate your user account: add_filter( 'wpmu_signup_user_notification_email', 'admin_created_user_email' ); function admin_created_user_subject( $text ) { - return "[" . get_bloginfo('name') . "] Your blog invite"; + return "[" . get_bloginfo('name') . "] Your site invite"; } } @@ -174,7 +174,7 @@ if ( !is_multisite() ) { else echo '

' . sprintf(__('Users cannot currently register themselves, but you can manually create users here.'), admin_url('options-general.php#users_can_register')) . '

'; } else { - echo '

' . __( 'You can add new users to your blog in two ways:' ) . '

  1. ' . __( 'Enter the username and email address of an existing user on this site.' ) . '
  2. ' . __( 'Enter the username and the email address of a person who is not already a member of this site. Choose the username carefully, it cannot be changed.' ) . '

'; + echo '

' . __( 'You can add new users to your site in two ways:' ) . '

  1. ' . __( 'Enter the username and email address of an existing user on this site.' ) . '
  2. ' . __( 'Enter the username and the email address of a person who is not already a member of this site. Choose the username carefully, it cannot be changed.' ) . '

'; echo '

' . __( 'That person will be sent an email asking them to click a link confirming the invite. New users will then be sent an email with a randomly generated password and a login link.' ) . '

'; } ?> diff --git a/wp-admin/users.php b/wp-admin/users.php index 0069a32924..6a99b6e751 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -249,7 +249,7 @@ case 'remove':
-

+

    ' . __('Other users have been deleted.') . '

'; break; case 'remove': - $messages[] = '

' . __('User removed from this blog.') . '

'; + $messages[] = '

' . __('User removed from this site.') . '

'; break; case 'err_admin_remove': $messages[] = '

' . __("You can't remove the current user.") . '

'; diff --git a/wp-app.php b/wp-app.php index 3de45eaf00..693c573b67 100644 --- a/wp-app.php +++ b/wp-app.php @@ -284,7 +284,7 @@ class AtomServer { // check to see if AtomPub is enabled if ( !get_option( 'enable_app' ) ) - $this->forbidden( sprintf( __( 'AtomPub services are disabled on this blog. An admin user can enable them at %s' ), admin_url('options-writing.php') ) ); + $this->forbidden( sprintf( __( 'AtomPub services are disabled on this site. An admin user can enable them at %s' ), admin_url('options-writing.php') ) ); // dispatch foreach ( $this->selectors as $regex => $funcs ) { @@ -321,7 +321,7 @@ class AtomServer { log_app('function','get_service()'); if ( !current_user_can( 'edit_posts' ) ) - $this->auth_required( __( 'Sorry, you do not have the right to access this blog.' ) ); + $this->auth_required( __( 'Sorry, you do not have the right to access this site.' ) ); $entries_url = esc_attr($this->get_entries_url()); $categories_url = esc_attr($this->get_categories_url()); @@ -362,7 +362,7 @@ EOD; log_app('function','get_categories_xml()'); if ( !current_user_can( 'edit_posts' ) ) - $this->auth_required( __( 'Sorry, you do not have the right to access this blog.' ) ); + $this->auth_required( __( 'Sorry, you do not have the right to access this site.' ) ); $home = esc_attr(get_bloginfo_rss('url')); diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php index 0f67866c1b..afed93dc94 100644 --- a/wp-includes/default-widgets.php +++ b/wp-includes/default-widgets.php @@ -172,7 +172,7 @@ class WP_Widget_Links extends WP_Widget { class WP_Widget_Search extends WP_Widget { function WP_Widget_Search() { - $widget_ops = array('classname' => 'widget_search', 'description' => __( "A search form for your blog") ); + $widget_ops = array('classname' => 'widget_search', 'description' => __( "A search form for your site") ); $this->WP_Widget('search', __('Search'), $widget_ops); } @@ -215,7 +215,7 @@ class WP_Widget_Search extends WP_Widget { class WP_Widget_Archives extends WP_Widget { function WP_Widget_Archives() { - $widget_ops = array('classname' => 'widget_archive', 'description' => __( 'A monthly archive of your blog’s posts') ); + $widget_ops = array('classname' => 'widget_archive', 'description' => __( 'A monthly archive of your site’s posts') ); $this->WP_Widget('archives', __('Archives'), $widget_ops); } @@ -328,7 +328,7 @@ class WP_Widget_Meta extends WP_Widget { class WP_Widget_Calendar extends WP_Widget { function WP_Widget_Calendar() { - $widget_ops = array('classname' => 'widget_calendar', 'description' => __( 'A calendar of your blog’s posts') ); + $widget_ops = array('classname' => 'widget_calendar', 'description' => __( 'A calendar of your site’s posts') ); $this->WP_Widget('calendar', __('Calendar'), $widget_ops); } @@ -511,7 +511,7 @@ class WP_Widget_Categories extends WP_Widget { class WP_Widget_Recent_Posts extends WP_Widget { function WP_Widget_Recent_Posts() { - $widget_ops = array('classname' => 'widget_recent_entries', 'description' => __( "The most recent posts on your blog") ); + $widget_ops = array('classname' => 'widget_recent_entries', 'description' => __( "The most recent posts on your site") ); $this->WP_Widget('recent-posts', __('Recent Posts'), $widget_ops); $this->alt_option_name = 'widget_recent_entries'; diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 03b30a9e02..5671d7528a 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -322,14 +322,14 @@ function create_empty_blog( $domain, $path, $weblog_title, $site_id = 1 ) { // Check if the domain has been used already. We should return an error message. if ( domain_exists($domain, $path, $site_id) ) - return __( 'Error: Blog URL already taken.' ); + return __( 'Error: Site URL already taken.' ); // Need to backup wpdb table names, and create a new wp_blogs entry for new blog. // Need to get blog_id from wp_blogs, and create new table names. // Must restore table names at the end of function. if ( ! $blog_id = insert_blog($domain, $path, $site_id) ) - return __( 'Error: problem creating blog entry.' ); + return __( 'Error: problem creating site entry.' ); switch_to_blog($blog_id); install_blog($blog_id); @@ -557,7 +557,7 @@ function wpmu_validate_blog_signup($blogname, $blog_title, $user = '') { } if ( empty( $blogname ) ) - $errors->add('blogname', __('Please enter a blog name')); + $errors->add('blogname', __('Please enter a site name')); $maybe = array(); preg_match( '/[a-z0-9]+/', $blogname, $maybe ); @@ -568,27 +568,27 @@ function wpmu_validate_blog_signup($blogname, $blog_title, $user = '') { $errors->add('blogname', __('That name is not allowed')); if ( strlen( $blogname ) < 4 && !is_super_admin() ) - $errors->add('blogname', __('Blog name must be at least 4 characters')); + $errors->add('blogname', __('Site name must be at least 4 characters')); if ( strpos( ' ' . $blogname, '_' ) != false ) - $errors->add( 'blogname', __( 'Sorry, blog names may not contain the character “_”!' ) ); + $errors->add( 'blogname', __( 'Sorry, site names may not contain the character “_”!' ) ); // do not allow users to create a blog that conflicts with a page on the main blog. if ( !is_subdomain_install() && $wpdb->get_var( $wpdb->prepare( "SELECT post_name FROM " . $wpdb->get_blog_prefix( $current_site->blog_id ) . "posts WHERE post_type = 'page' AND post_name = %s", $blogname ) ) ) - $errors->add( 'blogname', __( 'Sorry, you may not use that blog name.' ) ); + $errors->add( 'blogname', __( 'Sorry, you may not use that site name.' ) ); // all numeric? $match = array(); preg_match( '/[0-9]*/', $blogname, $match ); if ( $match[0] == $blogname ) - $errors->add('blogname', __('Sorry, blog names must have letters too!')); + $errors->add('blogname', __('Sorry, site names must have letters too!')); $blogname = apply_filters( 'newblogname', $blogname ); $blog_title = stripslashes( $blog_title ); if ( empty( $blog_title ) ) - $errors->add('blog_title', __('Please enter a blog title')); + $errors->add('blog_title', __('Please enter a site title')); // Check if the domain/path has been used already. if ( is_subdomain_install() ) { @@ -599,11 +599,11 @@ function wpmu_validate_blog_signup($blogname, $blog_title, $user = '') { $path = $base.$blogname.'/'; } if ( domain_exists($mydomain, $path) ) - $errors->add('blogname', __('Sorry, that blog already exists!')); + $errors->add('blogname', __('Sorry, that site already exists!')); if ( username_exists( $blogname ) ) { if ( is_object( $user ) == false || ( is_object($user) && ( $user->user_login != $blogname ) ) ) - $errors->add( 'blogname', __( 'Sorry, that blog is reserved!' ) ); + $errors->add( 'blogname', __( 'Sorry, that site is reserved!' ) ); } // Has someone already signed up for this domain? @@ -614,7 +614,7 @@ function wpmu_validate_blog_signup($blogname, $blog_title, $user = '') { if ( $diff > 172800 ) $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->signups WHERE domain = %s AND path = %s", $mydomain, $path) ); else - $errors->add('blogname', __('That blog is currently reserved but may be available in a couple days.')); + $errors->add('blogname', __('That site is currently reserved but may be available in a couple days.')); } $result = array('domain' => $mydomain, 'path' => $path, 'blogname' => $blogname, 'blog_title' => $blog_title, 'errors' => $errors); @@ -688,7 +688,7 @@ function wpmu_signup_blog_notification($domain, $path, $title, $user, $user_emai $admin_email = 'support@' . $_SERVER['SERVER_NAME']; $from_name = get_site_option( 'site_name' ) == '' ? 'WordPress' : esc_html( get_site_option( 'site_name' ) ); $message_headers = "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n"; - $message = sprintf( apply_filters( 'wpmu_signup_blog_notification_email', __( "To activate your blog, please click the following link:\n\n%s\n\nAfter you activate, you will receive *another email* with your login.\n\nAfter you activate, you can visit your blog here:\n\n%s" ) ), $activate_url, esc_url( "http://{$domain}{$path}" ), $key ); + $message = sprintf( apply_filters( 'wpmu_signup_blog_notification_email', __( "To activate your blog, please click the following link:\n\n%s\n\nAfter you activate, you will receive *another email* with your login.\n\nAfter you activate, you can visit your site here:\n\n%s" ) ), $activate_url, esc_url( "http://{$domain}{$path}" ), $key ); // TODO: Don't hard code activation link. $subject = sprintf( apply_filters( 'wpmu_signup_blog_notification_subject', __( '[%1s] Activate %2s' ) ), $from_name, esc_url( 'http://' . $domain . $path ) ); wp_mail($user_email, $subject, $message, $message_headers); @@ -721,7 +721,7 @@ function wpmu_activate_signup($key) { return new WP_Error('invalid_key', __('Invalid activation key.')); if ( $signup->active ) - return new WP_Error('already_active', __('The blog is already active.'), $signup); + return new WP_Error('already_active', __('The site is already active.'), $signup); $meta = unserialize($signup->meta); $user_login = $wpdb->escape($signup->user_login); @@ -811,13 +811,13 @@ function wpmu_create_blog($domain, $path, $title, $user_id, $meta = '', $site_id // Check if the domain has been used already. We should return an error message. if ( domain_exists($domain, $path, $site_id) ) - return new WP_Error('blog_taken', __('Blog already exists.')); + return new WP_Error('blog_taken', __('Site already exists.')); if ( !defined('WP_INSTALLING') ) define( 'WP_INSTALLING', true ); if ( ! $blog_id = insert_blog($domain, $path, $site_id) ) - return new WP_Error('insert_blog', __('Could not create blog.')); + return new WP_Error('insert_blog', __('Could not create site.')); switch_to_blog($blog_id); install_blog($blog_id, $title); @@ -859,14 +859,14 @@ function newblog_notify_siteadmin( $blog_id, $deprecated = '' ) { $siteurl = site_url(); restore_current_blog(); - $msg = sprintf( __( 'New Blog: %1s + $msg = sprintf( __( 'New Site: %1s URL: %2s Remote IP: %3s Disable these notifications: %4s' ), $blogname, $siteurl, $_SERVER['REMOTE_ADDR'], $options_site_url); $msg = apply_filters( 'newblog_notify_siteadmin', $msg ); - wp_mail( $email, sprintf( __( 'New Blog Registration: %s' ), $siteurl ), $msg ); + wp_mail( $email, sprintf( __( 'New Site Registration: %s' ), $siteurl ), $msg ); return true; } @@ -1009,7 +1009,7 @@ Thanks! if ( empty( $current_site->site_name ) ) $current_site->site_name = 'WordPress MU'; - $subject = apply_filters( 'update_welcome_subject', sprintf(__('New %1$s Blog: %2$s'), $current_site->site_name, stripslashes( $title ) ) ); + $subject = apply_filters( 'update_welcome_subject', sprintf(__('New %1$s Site: %2$s'), $current_site->site_name, stripslashes( $title ) ) ); wp_mail($user->user_email, $subject, $message, $message_headers); return true; } diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index c2bb521ab1..01b3803278 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1197,7 +1197,7 @@ function wp_new_user_notification($user_id, $plaintext_pass = '') { // we want to reverse this for the plain text arena of emails. $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); - $message = sprintf(__('New user registration on your blog %s:'), $blogname) . "\r\n\r\n"; + $message = sprintf(__('New user registration on your site %s:'), $blogname) . "\r\n\r\n"; $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n"; $message .= sprintf(__('E-mail: %s'), $user_email) . "\r\n"; diff --git a/wp-includes/user.php b/wp-includes/user.php index de6d96288d..84dc52e10e 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -97,7 +97,7 @@ function wp_authenticate_username_password($user, $username, $password) { if ( !is_super_admin( $userdata->ID ) && isset($userdata->primary_blog) ) { $details = get_blog_details( $userdata->primary_blog ); if ( is_object( $details ) && $details->spam == 1 ) - return new WP_Error('blog_suspended', __('Blog Suspended.')); + return new WP_Error('blog_suspended', __('Site Suspended.')); } } diff --git a/xmlrpc.php b/xmlrpc.php index 6f38acfeba..7f346b9ac6 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -246,7 +246,7 @@ class wp_xmlrpc_server extends IXR_Server { */ function login_pass_ok($user_login, $user_pass) { if ( !get_option( 'enable_xmlrpc' ) ) { - $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') ) ); + $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') ) ); return false; } @@ -268,7 +268,7 @@ class wp_xmlrpc_server extends IXR_Server { */ function login($username, $password) { if ( !get_option( 'enable_xmlrpc' ) ) { - $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') ) ); + $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') ) ); return false; } @@ -391,7 +391,7 @@ class wp_xmlrpc_server extends IXR_Server { 'value' => $wp_version ), 'blog_url' => array( - 'desc' => __( 'Blog URL' ), + 'desc' => __( 'Site URL' ), 'readonly' => true, 'option' => 'siteurl' ), @@ -403,12 +403,12 @@ class wp_xmlrpc_server extends IXR_Server { 'option' => 'gmt_offset' ), 'blog_title' => array( - 'desc' => __( 'Blog Title' ), + 'desc' => __( 'Site Title' ), 'readonly' => false, 'option' => 'blogname' ), 'blog_tagline' => array( - 'desc' => __( 'Blog Tagline' ), + 'desc' => __( 'Site Tagline' ), 'readonly' => false, 'option' => 'blogdescription' ), @@ -830,7 +830,7 @@ class wp_xmlrpc_server extends IXR_Server { return $this->error; if ( !current_user_can("edit_posts") ) - return(new IXR_Error(401, __("Sorry, you cannot edit posts on this blog."))); + return(new IXR_Error(401, __("Sorry, you cannot edit posts on this site."))); do_action('xmlrpc_call', 'wp.getAuthors'); @@ -865,7 +865,7 @@ class wp_xmlrpc_server extends IXR_Server { return $this->error; if ( !current_user_can( 'edit_posts' ) ) - return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this blog in order to view tags.' ) ); + return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this site in order to view tags.' ) ); do_action( 'xmlrpc_call', 'wp.getKeywords' ); @@ -988,7 +988,7 @@ class wp_xmlrpc_server extends IXR_Server { return $this->error; if ( !current_user_can( 'edit_posts' ) ) - return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts to this blog in order to view categories.' ) ); + return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts to this site in order to view categories.' ) ); do_action('xmlrpc_call', 'wp.suggestCategories'); @@ -1024,7 +1024,7 @@ class wp_xmlrpc_server extends IXR_Server { return $this->error; if ( !current_user_can( 'moderate_comments' ) ) - return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this blog.' ) ); + return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) ); do_action('xmlrpc_call', 'wp.getComment'); @@ -1146,7 +1146,7 @@ class wp_xmlrpc_server extends IXR_Server { return $this->error; if ( !current_user_can( 'moderate_comments' ) ) - return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this blog.' ) ); + return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) ); do_action('xmlrpc_call', 'wp.deleteComment'); @@ -1177,7 +1177,7 @@ class wp_xmlrpc_server extends IXR_Server { return $this->error; if ( !current_user_can( 'moderate_comments' ) ) - return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this blog.' ) ); + return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) ); do_action('xmlrpc_call', 'wp.editComment'); @@ -1327,7 +1327,7 @@ class wp_xmlrpc_server extends IXR_Server { return $this->error; if ( !current_user_can( 'moderate_comments' ) ) - return new IXR_Error( 403, __( 'You are not allowed access to details about this blog.' ) ); + return new IXR_Error( 403, __( 'You are not allowed access to details about this site.' ) ); do_action('xmlrpc_call', 'wp.getCommentStatusList'); @@ -1386,7 +1386,7 @@ class wp_xmlrpc_server extends IXR_Server { return $this->error; if ( !current_user_can( 'edit_posts' ) ) - return new IXR_Error( 403, __( 'You are not allowed access to details about this blog.' ) ); + return new IXR_Error( 403, __( 'You are not allowed access to details about this site.' ) ); do_action('xmlrpc_call', 'wp.getPostStatusList'); @@ -1412,7 +1412,7 @@ class wp_xmlrpc_server extends IXR_Server { return $this->error; if ( !current_user_can( 'edit_posts' ) ) - return new IXR_Error( 403, __( 'You are not allowed access to details about this blog.' ) ); + return new IXR_Error( 403, __( 'You are not allowed access to details about this site.' ) ); do_action('xmlrpc_call', 'wp.getPageStatusList'); @@ -1438,7 +1438,7 @@ class wp_xmlrpc_server extends IXR_Server { return $this->error; if ( !current_user_can( 'edit_pages' ) ) - return new IXR_Error( 403, __( 'You are not allowed access to details about this blog.' ) ); + return new IXR_Error( 403, __( 'You are not allowed access to details about this site.' ) ); $templates = get_page_templates( ); $templates['Default'] = 'default'; @@ -1624,7 +1624,7 @@ class wp_xmlrpc_server extends IXR_Server { return $this->error; if ( !current_user_can( 'edit_posts' ) ) - return new IXR_Error( 401, __( 'Sorry, you do not have access to user data on this blog.' ) ); + return new IXR_Error( 401, __( 'Sorry, you do not have access to user data on this site.' ) ); do_action('xmlrpc_call', 'blogger.getUserInfo'); @@ -1842,7 +1842,7 @@ class wp_xmlrpc_server extends IXR_Server { $cap = ($publish) ? 'publish_posts' : 'edit_posts'; if ( !current_user_can($cap) ) - return new IXR_Error(401, __('Sorry, you are not allowed to post on this blog.')); + return new IXR_Error(401, __('Sorry, you are not allowed to post on this site.')); $post_status = ($publish) ? 'publish' : 'draft'; @@ -1989,13 +1989,13 @@ class wp_xmlrpc_server extends IXR_Server { do_action('xmlrpc_call', 'metaWeblog.newPost'); $cap = ( $publish ) ? 'publish_posts' : 'edit_posts'; - $error_message = __( 'Sorry, you are not allowed to publish posts on this blog.' ); + $error_message = __( 'Sorry, you are not allowed to publish posts on this site.' ); $post_type = 'post'; $page_template = ''; if ( !empty( $content_struct['post_type'] ) ) { if ( $content_struct['post_type'] == 'page' ) { $cap = ( $publish ) ? 'publish_pages' : 'edit_pages'; - $error_message = __( 'Sorry, you are not allowed to publish pages on this blog.' ); + $error_message = __( 'Sorry, you are not allowed to publish pages on this site.' ); $post_type = 'page'; if ( !empty( $content_struct['wp_page_template'] ) ) $page_template = $content_struct['wp_page_template']; @@ -2264,13 +2264,13 @@ class wp_xmlrpc_server extends IXR_Server { do_action('xmlrpc_call', 'metaWeblog.editPost'); $cap = ( $publish ) ? 'publish_posts' : 'edit_posts'; - $error_message = __( 'Sorry, you are not allowed to publish posts on this blog.' ); + $error_message = __( 'Sorry, you are not allowed to publish posts on this site.' ); $post_type = 'post'; $page_template = ''; if ( !empty( $content_struct['post_type'] ) ) { if ( $content_struct['post_type'] == 'page' ) { $cap = ( $publish ) ? 'publish_pages' : 'edit_pages'; - $error_message = __( 'Sorry, you are not allowed to publish pages on this blog.' ); + $error_message = __( 'Sorry, you are not allowed to publish pages on this site.' ); $post_type = 'page'; if ( !empty( $content_struct['wp_page_template'] ) ) $page_template = $content_struct['wp_page_template']; @@ -2720,7 +2720,7 @@ class wp_xmlrpc_server extends IXR_Server { return $this->error; if ( !current_user_can( 'edit_posts' ) ) - return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this blog in order to view categories.' ) ); + return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this site in order to view categories.' ) ); do_action('xmlrpc_call', 'metaWeblog.getCategories'); @@ -2908,7 +2908,7 @@ class wp_xmlrpc_server extends IXR_Server { return $this->error; if ( !current_user_can( 'edit_posts' ) ) - return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this blog in order to view categories.' ) ); + return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this site in order to view categories.' ) ); do_action('xmlrpc_call', 'mt.getCategoryList');