Changeset 14315
- Timestamp:
- 04/30/2010 03:17:49 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-header.php
r13895 r14315 415 415 ?> 416 416 <div class="wrap"> 417 <h3><?php _e('Upload New Header Image'); ?></h3><p><?php _e('Here you can upload a custom header image to be shown at the top of your bloginstead of the default one. On the next screen you will be able to crop the image.'); ?> <?php printf(__('Images of exactly <strong>%1$d x %2$d pixels</strong> will be used as-is.'), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT); ?></p>417 <h3><?php _e('Upload New Header Image'); ?></h3><p><?php _e('Here you can upload a custom header image to be shown at the top of your site instead of the default one. On the next screen you will be able to crop the image.'); ?> <?php printf(__('Images of exactly <strong>%1$d x %2$d pixels</strong> will be used as-is.'), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT); ?></p> 418 418 419 419 <form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php echo esc_attr(add_query_arg('step', 2)) ?>"> -
trunk/wp-admin/import/blogger.php
r13684 r14315 49 49 $auth_url = "https://www.google.com/accounts/AuthSubRequest"; 50 50 $title = __('Import Blogger'); 51 $welcome = __('Howdy! This importer allows you to import posts and comments from your Blogger account into your WordPress blog.');51 $welcome = __('Howdy! This importer allows you to import posts and comments from your Blogger account into your WordPress site.'); 52 52 $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).'); 53 53 $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.'); -
trunk/wp-admin/import/dotclear.php
r14165 r14315 101 101 function greet() 102 102 { 103 echo '<div class="narrow"><p>'.__('Howdy! This importer allows you to extract posts from a DotClear database into your blog. Mileage may vary.').'</p>';103 echo '<div class="narrow"><p>'.__('Howdy! This importer allows you to extract posts from a DotClear database into your WordPress site. Mileage may vary.').'</p>'; 104 104 echo '<p>'.__('Your DotClear Configuration settings are as follows:').'</p>'; 105 105 echo '<form action="admin.php?import=dotclear&step=1" method="post">'; -
trunk/wp-admin/import/rss.php
r12985 r14315 33 33 function greet() { 34 34 echo '<div class="narrow">'; 35 echo '<p>'.__('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.').'</p>';35 echo '<p>'.__('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.').'</p>'; 36 36 wp_import_upload_form("admin.php?import=rss&step=1"); 37 37 echo '</div>'; -
trunk/wp-admin/import/wordpress.php
r13907 r14315 46 46 function greet() { 47 47 echo '<div class="narrow">'; 48 echo '<p>'.__('Howdy! Upload your WordPress eXtended RSS (WXR) file and we’ll import the posts, pages, comments, custom fields, categories, and tags into this blog.').'</p>';48 echo '<p>'.__('Howdy! Upload your WordPress eXtended RSS (WXR) file and we’ll import the posts, pages, comments, custom fields, categories, and tags into this site.').'</p>'; 49 49 echo '<p>'.__('Choose a WordPress WXR file to upload, then click Upload file and import.').'</p>'; 50 50 wp_import_upload_form("admin.php?import=wordpress&step=1"); -
trunk/wp-admin/includes/meta-boxes.php
r14232 r14315 367 367 ?> 368 368 <p><label for="trackback_url"><?php _e('Send trackbacks to:'); ?></label> <?php echo $form_trackback; ?><br /> (<?php _e('Separate multiple URLs with spaces'); ?>)</p> 369 <p><?php _e('Trackbacks are a way to notify legacy blog systems that you’ve linked to them. If you link other WordPress blogs they’ll be notified automatically using <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">pingbacks</a>, no other action necessary.'); ?></p>369 <p><?php _e('Trackbacks are a way to notify legacy blog systems that you’ve linked to them. If you link other WordPress sites they’ll be notified automatically using <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">pingbacks</a>, no other action necessary.'); ?></p> 370 370 <?php 371 371 if ( ! empty($pings) ) -
trunk/wp-admin/includes/plugin.php
r14127 r14315 374 374 if ( is_multisite() ) { 375 375 $dropins['sunrise.php' ] = array( __( 'Executed before Multisite is loaded.' ), 'SUNRISE' ); // SUNRISE 376 $dropins['blog-deleted.php' ] = array( __( 'Custom blogdeleted message.' ), true ); // auto on deleted blog377 $dropins['blog-inactive.php' ] = array( __( 'Custom bloginactive message.' ), true ); // auto on inactive blog378 $dropins['blog-suspended.php'] = array( __( 'Custom blogsuspended message.' ), true ); // auto on archived or spammed blog376 $dropins['blog-deleted.php' ] = array( __( 'Custom site deleted message.' ), true ); // auto on deleted blog 377 $dropins['blog-inactive.php' ] = array( __( 'Custom site inactive message.' ), true ); // auto on inactive blog 378 $dropins['blog-suspended.php'] = array( __( 'Custom site suspended message.' ), true ); // auto on archived or spammed blog 379 379 } 380 380 -
trunk/wp-admin/includes/post.php
r14216 r14315 487 487 if ( !current_user_can( $ptype->edit_type_cap ) ) { 488 488 if ( 'page' == $ptype->name ) 489 return new WP_Error( 'edit_pages', __( 'You are not allowed to create pages on this blog.' ) );489 return new WP_Error( 'edit_pages', __( 'You are not allowed to create pages on this site.' ) ); 490 490 else 491 return new WP_Error( 'edit_posts', __( 'You are not allowed to create posts or drafts on this blog.' ) );491 return new WP_Error( 'edit_posts', __( 'You are not allowed to create posts or drafts on this site.' ) ); 492 492 } 493 493 -
trunk/wp-admin/includes/schema.php
r14275 r14315 198 198 $options = array( 199 199 'siteurl' => $guessurl, 200 'blogname' => __('My Blog'),200 'blogname' => __('My Site'), 201 201 /* translators: blog tagline */ 202 202 'blogdescription' => __('Just another WordPress site'), -
trunk/wp-admin/includes/upgrade.php
r14218 r14315 312 312 $email = $user->user_email; 313 313 $name = $user->user_login; 314 $message = sprintf(__("Your new WordPress bloghas been successfully set up at:314 $message = sprintf(__("Your new WordPress site has been successfully set up at: 315 315 316 316 %1\$s … … 327 327 "), $blog_url, $name, $password); 328 328 329 @wp_mail($email, __('New WordPress Blog'), $message);329 @wp_mail($email, __('New WordPress Site'), $message); 330 330 } 331 331 endif; -
trunk/wp-admin/install.php
r14265 r14315 95 95 <table class="form-table"> 96 96 <tr> 97 <th scope="row"><label for="weblog_title"><?php _e( ' BlogTitle' ); ?></label></th>97 <th scope="row"><label for="weblog_title"><?php _e( 'Site Title' ); ?></label></th> 98 98 <td><input name="weblog_title" type="text" id="weblog_title" size="25" value="<?php echo esc_attr( $weblog_title ); ?>" /></td> 99 99 </tr> … … 131 131 </tr> 132 132 <tr> 133 <td colspan="2"><label><input type="checkbox" name="blog_public" value="1" <?php checked( $blog_public ); ?> /> <?php _e( 'Allow my blogto appear in search engines like Google and Technorati.' ); ?></label></td>133 <td colspan="2"><label><input type="checkbox" name="blog_public" value="1" <?php checked( $blog_public ); ?> /> <?php _e( 'Allow my site to appear in search engines like Google and Technorati.' ); ?></label></td> 134 134 </tr> 135 135 </table> -
trunk/wp-admin/ms-sites.php
r14277 r14315 648 648 } else { ?> 649 649 <tr> 650 <td colspan="<?php echo (int) count( $sites_columns ); ?>"><?php _e( 'No blogs found.' ) ?></td>650 <td colspan="<?php echo (int) count( $sites_columns ); ?>"><?php _e( 'No sites found.' ) ?></td> 651 651 </tr> 652 652 <?php -
trunk/wp-admin/tools.php
r14139 r14315 24 24 <p><?php _e('Press This is a bookmarklet: a little app that runs in your browser and lets you grab bits of the web.');?></p> 25 25 26 <p><?php _e('Use Press This to clip text, images and videos from any web page. Then edit and add more straight from Press This before you save or publish it in a post on your blog.'); ?></p>26 <p><?php _e('Use Press This to clip text, images and videos from any web page. Then edit and add more straight from Press This before you save or publish it in a post on your site.'); ?></p> 27 27 <p><?php _e('Drag-and-drop the following link to your bookmarks bar or right click it and add it to your favorites for a posting shortcut.') ?></p> 28 28 <p class="pressthis"><a href="<?php echo htmlspecialchars( get_shortcut_link() ); ?>" title="<?php echo esc_attr(__('Press This')) ?>"><?php _e('Press This') ?></a></p> -
trunk/wp-admin/user-edit.php
r14261 r14315 224 224 // print the 'no role' option. Make it selected if the user has no role yet. 225 225 if ( $user_role ) 226 echo '<option value="">' . __('— No role for this blog—') . '</option>';226 echo '<option value="">' . __('— No role for this site —') . '</option>'; 227 227 else 228 echo '<option value="" selected="selected">' . __('— No role for this blog—') . '</option>';228 echo '<option value="" selected="selected">' . __('— No role for this site —') . '</option>'; 229 229 ?> 230 230 </select> -
trunk/wp-admin/user-new.php
r14139 r14315 33 33 34 34 function admin_created_user_subject( $text ) { 35 return "[" . get_bloginfo('name') . "] Your bloginvite";35 return "[" . get_bloginfo('name') . "] Your site invite"; 36 36 } 37 37 } … … 175 175 echo '<p>' . sprintf(__('Users cannot currently <a href="%1$s">register themselves</a>, but you can manually create users here.'), admin_url('options-general.php#users_can_register')) . '</p>'; 176 176 } else { 177 echo '<p>' . __( 'You can add new users to your blogin two ways:' ) . '<ol><li> ' . __( 'Enter the username and email address of an existing user on this site.' ) . '</li><li> ' . __( '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.' ) . '</li></ol></p>';177 echo '<p>' . __( 'You can add new users to your site in two ways:' ) . '<ol><li> ' . __( 'Enter the username and email address of an existing user on this site.' ) . '</li><li> ' . __( '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.' ) . '</li></ol></p>'; 178 178 echo '<p>' . __( '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.' ) . '</p>'; 179 179 } -
trunk/wp-admin/users.php
r14189 r14315 250 250 <div class="wrap"> 251 251 <?php screen_icon(); ?> 252 <h2><?php _e('Remove Users from Blog'); ?></h2>252 <h2><?php _e('Remove Users from Site'); ?></h2> 253 253 <p><?php _e('You have specified these users for removal:'); ?></p> 254 254 <ul> … … 325 325 break; 326 326 case 'remove': 327 $messages[] = '<div id="message" class="updated fade"><p>' . __('User removed from this blog.') . '</p></div>';327 $messages[] = '<div id="message" class="updated fade"><p>' . __('User removed from this site.') . '</p></div>'; 328 328 break; 329 329 case 'err_admin_remove': -
trunk/wp-app.php
r14136 r14315 285 285 // check to see if AtomPub is enabled 286 286 if ( !get_option( 'enable_app' ) ) 287 $this->forbidden( sprintf( __( 'AtomPub services are disabled on this blog. An admin user can enable them at %s' ), admin_url('options-writing.php') ) );287 $this->forbidden( sprintf( __( 'AtomPub services are disabled on this site. An admin user can enable them at %s' ), admin_url('options-writing.php') ) ); 288 288 289 289 // dispatch … … 322 322 323 323 if ( !current_user_can( 'edit_posts' ) ) 324 $this->auth_required( __( 'Sorry, you do not have the right to access this blog.' ) );324 $this->auth_required( __( 'Sorry, you do not have the right to access this site.' ) ); 325 325 326 326 $entries_url = esc_attr($this->get_entries_url()); … … 363 363 364 364 if ( !current_user_can( 'edit_posts' ) ) 365 $this->auth_required( __( 'Sorry, you do not have the right to access this blog.' ) );365 $this->auth_required( __( 'Sorry, you do not have the right to access this site.' ) ); 366 366 367 367 $home = esc_attr(get_bloginfo_rss('url')); -
trunk/wp-includes/default-widgets.php
r13733 r14315 173 173 174 174 function WP_Widget_Search() { 175 $widget_ops = array('classname' => 'widget_search', 'description' => __( "A search form for your blog") );175 $widget_ops = array('classname' => 'widget_search', 'description' => __( "A search form for your site") ); 176 176 $this->WP_Widget('search', __('Search'), $widget_ops); 177 177 } … … 216 216 217 217 function WP_Widget_Archives() { 218 $widget_ops = array('classname' => 'widget_archive', 'description' => __( 'A monthly archive of your blog’s posts') );218 $widget_ops = array('classname' => 'widget_archive', 'description' => __( 'A monthly archive of your site’s posts') ); 219 219 $this->WP_Widget('archives', __('Archives'), $widget_ops); 220 220 } … … 329 329 330 330 function WP_Widget_Calendar() { 331 $widget_ops = array('classname' => 'widget_calendar', 'description' => __( 'A calendar of your blog’s posts') );331 $widget_ops = array('classname' => 'widget_calendar', 'description' => __( 'A calendar of your site’s posts') ); 332 332 $this->WP_Widget('calendar', __('Calendar'), $widget_ops); 333 333 } … … 512 512 513 513 function WP_Widget_Recent_Posts() { 514 $widget_ops = array('classname' => 'widget_recent_entries', 'description' => __( "The most recent posts on your blog") );514 $widget_ops = array('classname' => 'widget_recent_entries', 'description' => __( "The most recent posts on your site") ); 515 515 $this->WP_Widget('recent-posts', __('Recent Posts'), $widget_ops); 516 516 $this->alt_option_name = 'widget_recent_entries'; -
trunk/wp-includes/ms-functions.php
r14298 r14315 323 323 // Check if the domain has been used already. We should return an error message. 324 324 if ( domain_exists($domain, $path, $site_id) ) 325 return __( 'Error: BlogURL already taken.' );325 return __( 'Error: Site URL already taken.' ); 326 326 327 327 // Need to backup wpdb table names, and create a new wp_blogs entry for new blog. … … 330 330 331 331 if ( ! $blog_id = insert_blog($domain, $path, $site_id) ) 332 return __( 'Error: problem creating blogentry.' );332 return __( 'Error: problem creating site entry.' ); 333 333 334 334 switch_to_blog($blog_id); … … 558 558 559 559 if ( empty( $blogname ) ) 560 $errors->add('blogname', __('Please enter a blogname'));560 $errors->add('blogname', __('Please enter a site name')); 561 561 562 562 $maybe = array(); … … 569 569 570 570 if ( strlen( $blogname ) < 4 && !is_super_admin() ) 571 $errors->add('blogname', __(' Blogname must be at least 4 characters'));571 $errors->add('blogname', __('Site name must be at least 4 characters')); 572 572 573 573 if ( strpos( ' ' . $blogname, '_' ) != false ) 574 $errors->add( 'blogname', __( 'Sorry, blognames may not contain the character “_”!' ) );574 $errors->add( 'blogname', __( 'Sorry, site names may not contain the character “_”!' ) ); 575 575 576 576 // do not allow users to create a blog that conflicts with a page on the main blog. 577 577 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 ) ) ) 578 $errors->add( 'blogname', __( 'Sorry, you may not use that blogname.' ) );578 $errors->add( 'blogname', __( 'Sorry, you may not use that site name.' ) ); 579 579 580 580 // all numeric? … … 582 582 preg_match( '/[0-9]*/', $blogname, $match ); 583 583 if ( $match[0] == $blogname ) 584 $errors->add('blogname', __('Sorry, blognames must have letters too!'));584 $errors->add('blogname', __('Sorry, site names must have letters too!')); 585 585 586 586 $blogname = apply_filters( 'newblogname', $blogname ); … … 589 589 590 590 if ( empty( $blog_title ) ) 591 $errors->add('blog_title', __('Please enter a blogtitle'));591 $errors->add('blog_title', __('Please enter a site title')); 592 592 593 593 // Check if the domain/path has been used already. … … 600 600 } 601 601 if ( domain_exists($mydomain, $path) ) 602 $errors->add('blogname', __('Sorry, that blogalready exists!'));602 $errors->add('blogname', __('Sorry, that site already exists!')); 603 603 604 604 if ( username_exists( $blogname ) ) { 605 605 if ( is_object( $user ) == false || ( is_object($user) && ( $user->user_login != $blogname ) ) ) 606 $errors->add( 'blogname', __( 'Sorry, that blogis reserved!' ) );606 $errors->add( 'blogname', __( 'Sorry, that site is reserved!' ) ); 607 607 } 608 608 … … 615 615 $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->signups WHERE domain = %s AND path = %s", $mydomain, $path) ); 616 616 else 617 $errors->add('blogname', __('That blogis currently reserved but may be available in a couple days.'));617 $errors->add('blogname', __('That site is currently reserved but may be available in a couple days.')); 618 618 } 619 619 … … 689 689 $from_name = get_site_option( 'site_name' ) == '' ? 'WordPress' : esc_html( get_site_option( 'site_name' ) ); 690 690 $message_headers = "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n"; 691 $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 bloghere:\n\n%s" ) ), $activate_url, esc_url( "http://{$domain}{$path}" ), $key );691 $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 ); 692 692 // TODO: Don't hard code activation link. 693 693 $subject = sprintf( apply_filters( 'wpmu_signup_blog_notification_subject', __( '[%1s] Activate %2s' ) ), $from_name, esc_url( 'http://' . $domain . $path ) ); … … 722 722 723 723 if ( $signup->active ) 724 return new WP_Error('already_active', __('The blogis already active.'), $signup);724 return new WP_Error('already_active', __('The site is already active.'), $signup); 725 725 726 726 $meta = unserialize($signup->meta); … … 812 812 // Check if the domain has been used already. We should return an error message. 813 813 if ( domain_exists($domain, $path, $site_id) ) 814 return new WP_Error('blog_taken', __(' Blogalready exists.'));814 return new WP_Error('blog_taken', __('Site already exists.')); 815 815 816 816 if ( !defined('WP_INSTALLING') ) … … 818 818 819 819 if ( ! $blog_id = insert_blog($domain, $path, $site_id) ) 820 return new WP_Error('insert_blog', __('Could not create blog.'));820 return new WP_Error('insert_blog', __('Could not create site.')); 821 821 822 822 switch_to_blog($blog_id); … … 860 860 restore_current_blog(); 861 861 862 $msg = sprintf( __( 'New Blog: %1s862 $msg = sprintf( __( 'New Site: %1s 863 863 URL: %2s 864 864 Remote IP: %3s … … 867 867 $msg = apply_filters( 'newblog_notify_siteadmin', $msg ); 868 868 869 wp_mail( $email, sprintf( __( 'New BlogRegistration: %s' ), $siteurl ), $msg );869 wp_mail( $email, sprintf( __( 'New Site Registration: %s' ), $siteurl ), $msg ); 870 870 return true; 871 871 } … … 1010 1010 $current_site->site_name = 'WordPress MU'; 1011 1011 1012 $subject = apply_filters( 'update_welcome_subject', sprintf(__('New %1$s Blog: %2$s'), $current_site->site_name, stripslashes( $title ) ) );1012 $subject = apply_filters( 'update_welcome_subject', sprintf(__('New %1$s Site: %2$s'), $current_site->site_name, stripslashes( $title ) ) ); 1013 1013 wp_mail($user->user_email, $subject, $message, $message_headers); 1014 1014 return true; -
trunk/wp-includes/pluggable.php
r14090 r14315 1198 1198 $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); 1199 1199 1200 $message = sprintf(__('New user registration on your blog%s:'), $blogname) . "\r\n\r\n";1200 $message = sprintf(__('New user registration on your site %s:'), $blogname) . "\r\n\r\n"; 1201 1201 $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n"; 1202 1202 $message .= sprintf(__('E-mail: %s'), $user_email) . "\r\n"; -
trunk/wp-includes/user.php
r14311 r14315 98 98 $details = get_blog_details( $userdata->primary_blog ); 99 99 if ( is_object( $details ) && $details->spam == 1 ) 100 return new WP_Error('blog_suspended', __(' BlogSuspended.'));100 return new WP_Error('blog_suspended', __('Site Suspended.')); 101 101 } 102 102 } -
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.