Permalink
Browse files

Use one space, not two, after trailing punctuation. fixes #19537

git-svn-id: http://svn.automattic.com/wordpress/trunk@19593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 6b581a9 commit 07ff8b216b944986e0f268f099cbac6dd27901ff ryan committed Dec 13, 2011
Showing with 230 additions and 230 deletions.
  1. +2 −2 wp-activate.php
  2. +1 −1 wp-admin/admin-ajax.php
  3. +2 −2 wp-admin/custom-header.php
  4. +1 −1 wp-admin/edit-form-advanced.php
  5. +1 −1 wp-admin/edit-tags.php
  6. +1 −1 wp-admin/import.php
  7. +1 −1 wp-admin/includes/class-wp-filesystem-direct.php
  8. +1 −1 wp-admin/includes/class-wp-ms-sites-list-table.php
  9. +1 −1 wp-admin/includes/class-wp-ms-users-list-table.php
  10. +1 −1 wp-admin/includes/class-wp-terms-list-table.php
  11. +1 −1 wp-admin/includes/class-wp-themes-list-table.php
  12. +2 −2 wp-admin/includes/class-wp-upgrader.php
  13. +2 −2 wp-admin/includes/class-wp-users-list-table.php
  14. +2 −2 wp-admin/includes/dashboard.php
  15. +2 −2 wp-admin/includes/deprecated.php
  16. +2 −2 wp-admin/includes/file.php
  17. +1 −1 wp-admin/includes/image-edit.php
  18. +1 −1 wp-admin/includes/image.php
  19. +2 −2 wp-admin/includes/ms.php
  20. +1 −1 wp-admin/includes/plugin-install.php
  21. +5 −5 wp-admin/includes/plugin.php
  22. +2 −2 wp-admin/includes/post.php
  23. +1 −1 wp-admin/includes/schema.php
  24. +4 −4 wp-admin/includes/screen.php
  25. +2 −2 wp-admin/includes/taxonomy.php
  26. +1 −1 wp-admin/includes/theme.php
  27. +9 −9 wp-admin/includes/upgrade.php
  28. +1 −1 wp-admin/install.php
  29. +1 −1 wp-admin/js/common.dev.js
  30. +5 −5 wp-admin/maint/repair.php
  31. +1 −1 wp-admin/network/settings.php
  32. +1 −1 wp-admin/network/site-info.php
  33. +1 −1 wp-admin/network/site-settings.php
  34. +1 −1 wp-admin/network/site-themes.php
  35. +1 −1 wp-admin/network/site-users.php
  36. +2 −2 wp-admin/options-discussion.php
  37. +1 −1 wp-admin/options-general.php
  38. +1 −1 wp-admin/options-writing.php
  39. +1 −1 wp-admin/plugin-editor.php
  40. +1 −1 wp-admin/plugins.php
  41. +1 −1 wp-admin/themes.php
  42. +2 −2 wp-admin/update-core.php
  43. +1 −1 wp-admin/upgrade.php
  44. +3 −3 wp-admin/user-new.php
  45. +1 −1 wp-admin/users.php
  46. +2 −2 wp-app.php
  47. +1 −1 wp-includes/admin-bar.php
  48. +5 −5 wp-includes/cache.php
  49. +1 −1 wp-includes/capabilities.php
  50. +2 −2 wp-includes/class-http.php
  51. +4 −4 wp-includes/class-wp-xmlrpc-server.php
  52. +3 −3 wp-includes/class-wp.php
  53. +4 −4 wp-includes/class.wp-dependencies.php
  54. +2 −2 wp-includes/class.wp-scripts.php
  55. +9 −9 wp-includes/comment-template.php
  56. +5 −5 wp-includes/comment.php
  57. +1 −1 wp-includes/cron.php
  58. +2 −2 wp-includes/default-constants.php
  59. +1 −1 wp-includes/formatting.php
  60. +4 −4 wp-includes/functions.php
  61. +2 −2 wp-includes/general-template.php
  62. +1 −1 wp-includes/http.php
  63. +1 −1 wp-includes/js/autosave.dev.js
  64. +2 −2 wp-includes/kses.php
  65. +2 −2 wp-includes/link-template.php
  66. +1 −1 wp-includes/load.php
  67. +1 −1 wp-includes/locale.php
  68. +2 −2 wp-includes/media.php
  69. +14 −14 wp-includes/meta.php
  70. +1 −1 wp-includes/ms-functions.php
  71. +3 −3 wp-includes/nav-menu-template.php
  72. +1 −1 wp-includes/nav-menu.php
  73. +2 −2 wp-includes/pluggable.php
  74. +3 −3 wp-includes/plugin.php
  75. +2 −2 wp-includes/post-template.php
  76. +2 −2 wp-includes/post-thumbnail-template.php
  77. +11 −11 wp-includes/post.php
  78. +12 −12 wp-includes/query.php
  79. +2 −2 wp-includes/rewrite.php
  80. +1 −1 wp-includes/rss-functions.php
  81. +13 −13 wp-includes/taxonomy.php
  82. +4 −4 wp-includes/theme.php
  83. +2 −2 wp-includes/user.php
  84. +5 −5 wp-includes/wp-db.php
  85. +12 −12 wp-includes/wp-diff.php
  86. +1 −1 wp-login.php
  87. +2 −2 wp-mail.php
  88. +1 −1 wp-signup.php
View
@@ -63,9 +63,9 @@ function wpmu_activate_stylesheet() {
<?php
echo '<p class="lead-in">';
if ( $signup->domain . $signup->path == '' ) {
- printf( __('Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of &#8220;%2$s&#8221;. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.'), network_site_url( 'wp-login.php', 'login' ), $signup->user_login, $signup->user_email, wp_lostpassword_url() );
+ printf( __('Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of &#8220;%2$s&#8221;. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.'), network_site_url( 'wp-login.php', 'login' ), $signup->user_login, $signup->user_email, wp_lostpassword_url() );
} else {
- printf( __('Your site at <a href="%1$s">%2$s</a> is active. You may now log in to your site using your chosen username of &#8220;%3$s&#8221;. Please check your email inbox at %4$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%5$s">reset your password</a>.'), 'http://' . $signup->domain, $signup->domain, $signup->user_login, $signup->user_email, wp_lostpassword_url() );
+ printf( __('Your site at <a href="%1$s">%2$s</a> is active. You may now log in to your site using your chosen username of &#8220;%3$s&#8221;. Please check your email inbox at %4$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%5$s">reset your password</a>.'), 'http://' . $signup->domain, $signup->domain, $signup->user_login, $signup->user_email, wp_lostpassword_url() );
}
echo '</p>';
} else {
View
@@ -970,7 +970,7 @@ function _wp_ajax_add_hierarchical_term() {
// Drafts and auto-drafts are just overwritten by autosave
if ( 'auto-draft' == $post->post_status || 'draft' == $post->post_status ) {
$id = edit_post();
- } else { // Non drafts are not overwritten. The autosave is stored in a special post revision.
+ } else { // Non drafts are not overwritten. The autosave is stored in a special post revision.
$revision_id = wp_create_post_autosave( $post->ID );
if ( is_wp_error($revision_id) )
$id = $revision_id;
@@ -676,7 +676,7 @@ function step_2() {
$oitar = $width / HEADER_IMAGE_WIDTH;
$image = wp_crop_image($file, 0, 0, $width, $height, HEADER_IMAGE_WIDTH, $height / $oitar, false, str_replace(basename($file), 'midsize-'.basename($file), $file));
if ( is_wp_error( $image ) )
- wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
+ wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
$image = apply_filters('wp_create_file_in_uploads', $image, $id); // For replication
@@ -737,7 +737,7 @@ function step_3() {
$cropped = wp_crop_image( $attachment_id, (int) $_POST['x1'], (int) $_POST['y1'], (int) $_POST['width'], (int) $_POST['height'], HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT );
if ( is_wp_error( $cropped ) )
- wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
+ wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
$cropped = apply_filters('wp_create_file_in_uploads', $cropped, $attachment_id); // For replication
@@ -87,7 +87,7 @@
if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) {
foreach ( _wp_post_revision_fields() as $autosave_field => $_autosave_field ) {
if ( normalize_whitespace( $autosave->$autosave_field ) != normalize_whitespace( $post->$autosave_field ) ) {
- $notice = sprintf( __( 'There is an autosave of this post that is more recent than the version below. <a href="%s">View the autosave</a>' ), get_edit_post_link( $autosave->ID ) );
+ $notice = sprintf( __( 'There is an autosave of this post that is more recent than the version below. <a href="%s">View the autosave</a>' ), get_edit_post_link( $autosave->ID ) );
break;
}
}
View
@@ -80,7 +80,7 @@
}
$tag_ID = (int) $_REQUEST['tag_ID'];
- check_admin_referer( 'delete-tag_' . $tag_ID );
+ check_admin_referer( 'delete-tag_' . $tag_ID );
if ( !current_user_can( $tax->cap->delete_terms ) )
wp_die( __( 'Cheatin&#8217; uh?' ) );
View
@@ -20,7 +20,7 @@
'id' => 'overview',
'title' => __('Overview'),
'content' => '<p>' . __('This screen lists links to plugins to import data from blogging/content management platforms. Choose the platform you want to import from, and click Install Now when you are prompted in the popup window. If your platform is not listed, click the link to search the plugin directory for other importer plugins to see if there is one for your platform.') . '</p>' .
- '<p>' . __('In previous versions of WordPress, all importers were built-in. They have been turned into plugins since most people only use them once or infrequently.') . '</p>',
+ '<p>' . __('In previous versions of WordPress, all importers were built-in. They have been turned into plugins since most people only use them once or infrequently.') . '</p>',
) );
@@ -207,7 +207,7 @@ function move($source, $destination, $overwrite = false) {
if ( ! $overwrite && $this->exists($destination) )
return false;
- // try using rename first. if that fails (for example, source is read only) try copy
+ // try using rename first. if that fails (for example, source is read only) try copy
if ( @rename($source, $destination) )
return true;
@@ -251,7 +251,7 @@ function display_rows() {
$actions['deactivate'] = '<span class="activate"><a href="' . esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&amp;action2=deactivateblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to deactivate the site %s' ), $blogname ) ) ), 'confirm') ) . '">' . __( 'Deactivate' ) . '</a></span>';
if ( get_blog_status( $blog['blog_id'], 'archived' ) == '1' )
- $actions['unarchive'] = '<span class="archive"><a href="' . esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&amp;action2=unarchiveblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to unarchive the site %s.' ), $blogname ) ) ), 'confirm') ) . '">' . __( 'Unarchive' ) . '</a></span>';
+ $actions['unarchive'] = '<span class="archive"><a href="' . esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&amp;action2=unarchiveblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to unarchive the site %s.' ), $blogname ) ) ), 'confirm') ) . '">' . __( 'Unarchive' ) . '</a></span>';
else
$actions['archive'] = '<span class="archive"><a href="' . esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&amp;action2=archiveblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to archive the site %s.' ), $blogname ) ) ), 'confirm') ) . '">' . _x( 'Archive', 'verb; site' ) . '</a></span>';
@@ -242,7 +242,7 @@ function display_rows() {
if ( get_blog_status( $val->userblog_id, 'archived' ) == 1 )
$class .= 'site-archived ';
- $actions['view'] = '<a class="' . $class . '" href="' . esc_url( get_home_url( $val->userblog_id ) ) . '">' . __( 'View' ) . '</a>';
+ $actions['view'] = '<a class="' . $class . '" href="' . esc_url( get_home_url( $val->userblog_id ) ) . '">' . __( 'View' ) . '</a>';
$actions = apply_filters('ms_user_list_site_actions', $actions, $val->userblog_id);
@@ -42,7 +42,7 @@ function ajax_user_can() {
function prepare_items() {
global $taxonomy;
- $tags_per_page = $this->get_items_per_page( 'edit_' . $taxonomy . '_per_page' );
+ $tags_per_page = $this->get_items_per_page( 'edit_' . $taxonomy . '_per_page' );
if ( 'post_tag' == $taxonomy ) {
$tags_per_page = apply_filters( 'edit_tags_per_page', $tags_per_page );
@@ -149,7 +149,7 @@ function display_rows() {
$activate_link = wp_nonce_url( "themes.php?action=activate&amp;template=".urlencode( $template )."&amp;stylesheet=".urlencode( $stylesheet ), 'switch-theme_' . $template );
$activate_text = esc_attr( sprintf( __( 'Activate &#8220;%s&#8221;' ), $title ) );
$actions = array();
- $actions[] = '<a href="' . $activate_link . '" class="activatelink" title="' . $activate_text . '">' . __( 'Activate' ) . '</a>';
+ $actions[] = '<a href="' . $activate_link . '" class="activatelink" title="' . $activate_text . '">' . __( 'Activate' ) . '</a>';
$actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . esc_attr( sprintf( __( 'Preview &#8220;%s&#8221;' ), $theme_name ) ) . '">' . __( 'Preview' ) . '</a>';
if ( ! is_multisite() && current_user_can( 'delete_themes' ) )
$actions[] = '<a class="submitdelete deletion" href="' . wp_nonce_url( "themes.php?action=delete&amp;template=$stylesheet", 'delete-theme_' . $stylesheet ) . '" onclick="' . "return confirm( '" . esc_js( sprintf( __( "You are about to delete this theme '%s'\n 'Cancel' to stop, 'OK' to delete." ), $theme_name ) ) . "' );" . '">' . __( 'Delete' ) . '</a>';
@@ -1419,7 +1419,7 @@ function after() {
$install_actions = array(
'preview' => '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . esc_attr(sprintf(__('Preview &#8220;%s&#8221;'), $name)) . '">' . __('Preview') . '</a>',
- 'activate' => '<a href="' . $activate_link . '" class="activatelink" title="' . esc_attr( sprintf( __('Activate &#8220;%s&#8221;'), $name ) ) . '">' . __('Activate') . '</a>'
+ 'activate' => '<a href="' . $activate_link . '" class="activatelink" title="' . esc_attr( sprintf( __('Activate &#8220;%s&#8221;'), $name ) ) . '">' . __('Activate') . '</a>'
);
if ( is_network_admin() && current_user_can( 'manage_network_themes' ) )
@@ -1475,7 +1475,7 @@ function after() {
$activate_link = wp_nonce_url("themes.php?action=activate&amp;template=" . urlencode($template) . "&amp;stylesheet=" . urlencode($stylesheet), 'switch-theme_' . $template);
$update_actions['preview'] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . esc_attr(sprintf(__('Preview &#8220;%s&#8221;'), $name)) . '">' . __('Preview') . '</a>';
- $update_actions['activate'] = '<a href="' . $activate_link . '" class="activatelink" title="' . esc_attr( sprintf( __('Activate &#8220;%s&#8221;'), $name ) ) . '">' . __('Activate') . '</a>';
+ $update_actions['activate'] = '<a href="' . $activate_link . '" class="activatelink" title="' . esc_attr( sprintf( __('Activate &#8220;%s&#8221;'), $name ) ) . '">' . __('Activate') . '</a>';
if ( ( ! $this->result || is_wp_error($this->result) ) || $stylesheet == get_stylesheet() )
unset($update_actions['preview'], $update_actions['activate']);
@@ -209,9 +209,9 @@ function display_rows() {
* @since 2.1.0
*
* @param object $user_object
- * @param string $style Optional. Attributes added to the TR element. Must be sanitized.
+ * @param string $style Optional. Attributes added to the TR element. Must be sanitized.
* @param string $role Key for the $wp_roles array.
- * @param int $numposts Optional. Post count to display for this user. Defaults to zero, as in, a new user has made zero posts.
+ * @param int $numposts Optional. Post count to display for this user. Defaults to zero, as in, a new user has made zero posts.
* @return string
*/
function single_row( $user_object, $style = '', $role = '', $numposts = 0 ) {
@@ -273,7 +273,7 @@ function wp_dashboard_right_now() {
echo '</tr><tr>';
/* TODO: Show status breakdown on hover
- if ( $can_edit_pages && !empty($num_pages->publish) ) { // how many pages is not exposed in feeds. Don't show if !current_user_can
+ if ( $can_edit_pages && !empty($num_pages->publish) ) { // how many pages is not exposed in feeds. Don't show if !current_user_can
$post_type_texts[] = '<a href="edit-pages.php">'.sprintf( _n( '%s page', '%s pages', $num_pages->publish ), number_format_i18n( $num_pages->publish ) ).'</a>';
}
if ( $can_edit_posts && !empty($num_posts->draft) ) {
@@ -1115,7 +1115,7 @@ function wp_dashboard_rss_control( $widget_id, $form_inputs = array() ) {
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset($_POST['widget-rss'][$number]) ) {
$_POST['widget-rss'][$number] = stripslashes_deep( $_POST['widget-rss'][$number] );
$widget_options[$widget_id] = wp_widget_rss_process( $_POST['widget-rss'][$number] );
- // title is optional. If black, fill it if possible
+ // title is optional. If black, fill it if possible
if ( !$widget_options[$widget_id]['title'] && isset($_POST['widget-rss'][$number]['title']) ) {
$rss = fetch_feed($widget_options[$widget_id]['url']);
if ( is_wp_error($rss) ) {
@@ -133,7 +133,7 @@ function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $le
* @deprecated Use register_setting()
* @see register_setting()
*
- * @param string $option_group A settings group name. Should correspond to a whitelisted option key name.
+ * @param string $option_group A settings group name. Should correspond to a whitelisted option key name.
* Default whitelisted option key names include "general," "discussion," and "reading," among others.
* @param string $option_name The name of an option to sanitize and save.
* @param unknown_type $sanitize_callback A callback function that sanitizes the option's value.
@@ -870,7 +870,7 @@ function type_url_form_file() {
* @deprecated Use get_current_screen()->add_help_tab()
* @see WP_Screen
*
- * @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
+ * @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
* @param string $help The content of an 'Overview' help tab.
*/
function add_contextual_help( $screen, $help ) {
@@ -240,7 +240,7 @@ function wp_handle_upload_error( &$file, $message ) {
// You may define your own function and pass the name in $overrides['upload_error_handler']
$upload_error_handler = 'wp_handle_upload_error';
- // You may have had one or more 'wp_handle_upload_prefilter' functions error out the file. Handle that gracefully.
+ // You may have had one or more 'wp_handle_upload_prefilter' functions error out the file. Handle that gracefully.
if ( isset( $file['error'] ) && !is_numeric( $file['error'] ) && $file['error'] )
return $upload_error_handler( $file, $file['error'] );
@@ -364,7 +364,7 @@ function wp_handle_upload_error( &$file, $message ) {
/**
* Handle sideloads, which is the process of retrieving a media item from another server instead of
- * a traditional media upload. This process involves sanitizing the filename, checking extensions
+ * a traditional media upload. This process involves sanitizing the filename, checking extensions
* for mime type, and moving the file to the appropriate directory within the uploads directory.
*
* @since 2.6.0
@@ -192,7 +192,7 @@ function wp_image_editor($post_id, $msg = false) {
</tbody></table>
<div class="imgedit-wait" id="imgedit-wait-<?php echo $post_id; ?>"></div>
<script type="text/javascript">imageEdit.init(<?php echo $post_id; ?>);</script>
- <div class="hidden" id="imgedit-leaving-<?php echo $post_id; ?>"><?php _e("There are unsaved changes that will be lost. 'OK' to continue, 'Cancel' to return to the Image Editor."); ?></div>
+ <div class="hidden" id="imgedit-leaving-<?php echo $post_id; ?>"><?php _e("There are unsaved changes that will be lost. 'OK' to continue, 'Cancel' to return to the Image Editor."); ?></div>
</div>
<?php
}
@@ -205,7 +205,7 @@ function wp_read_image_metadata( $file ) {
// exif contains a bunch of data we'll probably never need formatted in ways
// that are difficult to use. We'll normalize it and just extract the fields
- // that are likely to be useful. Fractions and numbers are converted to
+ // that are likely to be useful. Fractions and numbers are converted to
// floats, dates to unix timestamps, and everything else to strings.
$meta = array(
'aperture' => 0,
View
@@ -49,7 +49,7 @@ function check_upload_size( $file ) {
* @since 3.0.0
*
* @param int $blog_id Blog ID
- * @param bool $drop True if blog's table should be dropped. Default is false.
+ * @param bool $drop True if blog's table should be dropped. Default is false.
* @return void
*/
function wpmu_delete_blog( $blog_id, $drop = false ) {
@@ -774,7 +774,7 @@ function _thickbox_path_admin_subfolder() {
* Plugins can alter this criteria using the 'wp_is_large_network' filter.
*
* @since 3.3.0
- * @param string $using 'sites or 'users'. Default is 'sites'.
+ * @param string $using 'sites or 'users'. Default is 'sites'.
* @return bool True if the network meets the criteria for large. False otherwise.
*/
function wp_is_large_network( $using = 'sites' ) {
@@ -199,7 +199,7 @@ function install_plugin_install_status($api, $loop = false) {
}
if ( 'install' == $status ) {
- if ( is_dir( WP_PLUGIN_DIR . '/' . $api->slug ) ) {
+ if ( is_dir( WP_PLUGIN_DIR . '/' . $api->slug ) ) {
$installed_plugin = get_plugins('/' . $api->slug);
if ( empty($installed_plugin) ) {
if ( current_user_can('install_plugins') )
Oops, something went wrong.

0 comments on commit 07ff8b2

Please sign in to comment.