diff --git a/src/js/_enqueues/admin/edit-comments.js b/src/js/_enqueues/admin/edit-comments.js index 9a3d81a751bd8..eb57835f078a6 100644 --- a/src/js/_enqueues/admin/edit-comments.js +++ b/src/js/_enqueues/admin/edit-comments.js @@ -613,7 +613,7 @@ window.setCommentsList = function() { approvedDiff = -1; pendingDiff = 1; - // User clicked "Delete Permanently". + // User clicked "Delete permanently". } else if ( targetParent.is( 'span.delete' ) ) { if ( spammed ) { spamDiff = -1; diff --git a/src/js/_enqueues/admin/plugin-install.js b/src/js/_enqueues/admin/plugin-install.js index 9b43b53e13a43..183e998d97002 100644 --- a/src/js/_enqueues/admin/plugin-install.js +++ b/src/js/_enqueues/admin/plugin-install.js @@ -207,7 +207,7 @@ jQuery( function( $ ) { }); /* - * When a user presses the "Upload Plugin" button, show the upload form in place + * When a user presses the "Upload plugin" button, show the upload form in place * rather than sending them to the devoted upload plugin page. * The `?tab=upload` page still exists for no-js support and for plugins that * might access it directly. When we're in this page, let the link behave diff --git a/src/js/_enqueues/vendor/tinymce/langs/wp-langs-en.js b/src/js/_enqueues/vendor/tinymce/langs/wp-langs-en.js index c3ddbb3332344..4ce03bfda133a 100644 --- a/src/js/_enqueues/vendor/tinymce/langs/wp-langs-en.js +++ b/src/js/_enqueues/vendor/tinymce/langs/wp-langs-en.js @@ -147,7 +147,7 @@ paste: { paste_text_desc: "Paste as Plain Text", paste_word_desc: "Paste from Word", - selectall_desc: "Select All", + selectall_desc: "Select all", plaintext_mode_sticky: "Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.", plaintext_mode: "Paste is now in plain text mode. Click again to toggle back to regular paste mode." }, diff --git a/src/js/_enqueues/wp/customize/loader.js b/src/js/_enqueues/wp/customize/loader.js index 2326f1f7dfccc..70cd2cb7d413d 100644 --- a/src/js/_enqueues/wp/customize/loader.js +++ b/src/js/_enqueues/wp/customize/loader.js @@ -119,7 +119,7 @@ window.wp = window.wp || {}; return window.location = src; } - // Store the document title prior to opening the Live Preview. + // Store the document title prior to opening the Live preview. this.originalDocumentTitle = document.title; this.active = true; @@ -223,7 +223,7 @@ window.wp = window.wp || {}; self.active = false; self.trigger( 'close' ); - // Restore document title prior to opening the Live Preview. + // Restore document title prior to opening the Live preview. if ( self.originalDocumentTitle ) { document.title = self.originalDocumentTitle; } diff --git a/src/js/_enqueues/wp/editor/base.js b/src/js/_enqueues/wp/editor/base.js index 3ba7de8dbf5f3..c9d6447e1a0f5 100644 --- a/src/js/_enqueues/wp/editor/base.js +++ b/src/js/_enqueues/wp/editor/base.js @@ -720,7 +720,7 @@ window.wp = window.wp || {}; /** * Marking the start and end element with `data-mce-object-selection` helps - * discern when the selected object is a Live Preview selection. + * discern when the selected object is a Live preview selection. * * This way we can adjust the selection to properly select only the content, ignoring * whitespace inserted around the selected object by the Editor. @@ -780,7 +780,7 @@ window.wp = window.wp || {}; if (endMatch) { /** - * Adjust the selection index, if the selection contains a Live Preview object or not. + * Adjust the selection index, if the selection contains a Live preview object or not. * * Check where the `data-mce-object-selection` attribute is set above for more context. */ diff --git a/src/js/_enqueues/wp/updates.js b/src/js/_enqueues/wp/updates.js index aca73fdd4f748..4eaf1301e31ab 100644 --- a/src/js/_enqueues/wp/updates.js +++ b/src/js/_enqueues/wp/updates.js @@ -707,7 +707,7 @@ $card.find( '.update-now' ) .attr( 'aria-label', false ) - .text( __( 'Update Now' ) ); + .text( __( 'Update now' ) ); }, 200 ); } ); } @@ -969,7 +969,7 @@ buttonText = _x( 'Network Activate', 'plugin' ); ariaLabel = sprintf( /* translators: %s: Plugin name. */ - _x( 'Network Activate %s', 'plugin' ), + _x( 'Network activate %s', 'plugin' ), response.pluginName ); @@ -1797,11 +1797,11 @@ 'aria-label', sprintf( /* translators: %s: Theme name. */ - _x( 'Network Activate %s', 'theme' ), + _x( 'Network activate %s', 'theme' ), response.themeName ) ) - .text( __( 'Network Enable' ) ); + .text( __( 'Network enable' ) ); } else { $message .attr( @@ -1818,12 +1818,12 @@ if ( response.customizeUrl ) { - // Transform the 'Preview' button into a 'Live Preview' button. + // Transform the 'Preview' button into a 'Live preview' button. $message.siblings( '.preview' ).replaceWith( function () { return $( '<a>' ) .attr( 'href', response.customizeUrl ) .addClass( 'button load-customize' ) - .text( __( 'Live Preview' ) ); + .text( __( 'Live preview' ) ); } ); } }, 1000 ); @@ -2634,7 +2634,7 @@ $message .removeClass( 'updating-message' ) - .text( _x( 'Install Now', 'plugin' ) ); + .text( _x( 'Install now', 'plugin' ) ); wp.a11y.speak( __( 'Update canceled.' ) ); } ); @@ -3036,7 +3036,7 @@ .append( $( '<a />', { 'class': 'current', 'href': searchLocation, - 'text': __( 'Search Results' ) + 'text': __( 'Search results' ) } ) ); $( '.wp-filter .filter-links .current' ) @@ -3180,7 +3180,7 @@ } ); /** - * Trigger a search event when the "Try Again" button is clicked. + * Trigger a search event when the "Try again" button is clicked. * * @since 4.9.0 */ diff --git a/src/js/media/views/button/delete-selected-permanently.js b/src/js/media/views/button/delete-selected-permanently.js index a4b55d911fc35..f19f083bf65e4 100644 --- a/src/js/media/views/button/delete-selected-permanently.js +++ b/src/js/media/views/button/delete-selected-permanently.js @@ -5,7 +5,7 @@ var Button = wp.media.view.Button, /** * wp.media.view.DeleteSelectedPermanentlyButton * - * When MEDIA_TRASH is true, a button that handles bulk Delete Permanently logic + * When MEDIA_TRASH is true, a button that handles bulk Delete permanently logic * * @memberOf wp.media.view * diff --git a/src/wp-admin/edit-form-comment.php b/src/wp-admin/edit-form-comment.php index 47b44ee31dee9..4f664e9d8b112 100644 --- a/src/wp-admin/edit-form-comment.php +++ b/src/wp-admin/edit-form-comment.php @@ -239,7 +239,7 @@ <div id="major-publishing-actions"> <div id="delete-action"> -<?php echo "<a class='submitdelete deletion' href='" . wp_nonce_url( 'comment.php?action=' . ( ! EMPTY_TRASH_DAYS ? 'deletecomment' : 'trashcomment' ) . "&c=$comment->comment_ID&_wp_original_http_referer=" . urlencode( wp_get_referer() ), 'delete-comment_' . $comment->comment_ID ) . "'>" . ( ! EMPTY_TRASH_DAYS ? __( 'Delete Permanently' ) : __( 'Move to Trash' ) ) . "</a>\n"; ?> +<?php echo "<a class='submitdelete deletion' href='" . wp_nonce_url( 'comment.php?action=' . ( ! EMPTY_TRASH_DAYS ? 'deletecomment' : 'trashcomment' ) . "&c=$comment->comment_ID&_wp_original_http_referer=" . urlencode( wp_get_referer() ), 'delete-comment_' . $comment->comment_ID ) . "'>" . ( ! EMPTY_TRASH_DAYS ? __( 'Delete permanently' ) : __( 'Move to trash' ) ) . "</a>\n"; ?> </div> <div id="publishing-action"> <?php submit_button( __( 'Update' ), 'primary large', 'save', false ); ?> diff --git a/src/wp-admin/erase-personal-data.php b/src/wp-admin/erase-personal-data.php index c96d80a9b5e06..03ca4db0c8eca 100644 --- a/src/wp-admin/erase-personal-data.php +++ b/src/wp-admin/erase-personal-data.php @@ -1,6 +1,6 @@ <?php /** - * Privacy tools, Erase Personal Data screen. + * Privacy tools, Erase personal data screen. * * @package WordPress * @subpackage Administration @@ -104,14 +104,14 @@ ?> <div class="wrap nosubsub"> - <h1><?php esc_html_e( 'Erase Personal Data' ); ?></h1> + <h1><?php esc_html_e( 'Erase personal data' ); ?></h1> <p><?php _e( 'This tool helps site owners comply with local laws and regulations by deleting or anonymizing known data for a given user.' ); ?></p> <hr class="wp-header-end" /> <?php settings_errors(); ?> <form action="<?php echo esc_url( admin_url( 'erase-personal-data.php' ) ); ?>" method="post" class="wp-privacy-request-form"> - <h2><?php esc_html_e( 'Add Data Erasure Request' ); ?></h2> + <h2><?php esc_html_e( 'Add Data erasure Request' ); ?></h2> <div class="wp-privacy-request-form-field"> <table class="form-table"> <tr> diff --git a/src/wp-admin/import.php b/src/wp-admin/import.php index ce17a70f20cf3..d4d480870acf0 100644 --- a/src/wp-admin/import.php +++ b/src/wp-admin/import.php @@ -22,7 +22,7 @@ array( '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>' . + '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>', ) ); @@ -163,7 +163,7 @@ esc_attr( $data[0] ), /* translators: %s: Importer name. */ esc_attr( sprintf( _x( 'Install %s now', 'plugin' ), $data[0] ) ), - _x( 'Install Now', 'plugin' ) + _x( 'Install now', 'plugin' ) ); } else { $action = sprintf( diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php index 83b682634b075..daaf183e3e46d 100644 --- a/src/wp-admin/includes/ajax-actions.php +++ b/src/wp-admin/includes/ajax-actions.php @@ -2273,7 +2273,7 @@ function wp_ajax_find_posts() { $stat = __( 'Scheduled' ); break; case 'pending': - $stat = __( 'Pending Review' ); + $stat = __( 'Pending review' ); break; case 'draft': $stat = __( 'Draft' ); diff --git a/src/wp-admin/includes/class-plugin-installer-skin.php b/src/wp-admin/includes/class-plugin-installer-skin.php index aa97833c59a85..62090f6e915fe 100644 --- a/src/wp-admin/includes/class-plugin-installer-skin.php +++ b/src/wp-admin/includes/class-plugin-installer-skin.php @@ -127,7 +127,7 @@ public function after() { $install_actions['network_activate'] = sprintf( '<a class="button button-primary" href="%s" target="_parent">%s</a>', wp_nonce_url( 'plugins.php?action=activate&networkwide=1&plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ), - _x( 'Network Activate', 'plugin' ) + _x( 'Network activate', 'plugin' ) ); unset( $install_actions['activate_plugin'] ); } diff --git a/src/wp-admin/includes/class-theme-installer-skin.php b/src/wp-admin/includes/class-theme-installer-skin.php index 2f1fa344c9a5b..fe270c3ed3bb2 100644 --- a/src/wp-admin/includes/class-theme-installer-skin.php +++ b/src/wp-admin/includes/class-theme-installer-skin.php @@ -134,9 +134,9 @@ public function after() { '<a href="%s" class="hide-if-no-customize load-customize">' . '<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>', esc_url( $customize_url ), - __( 'Live Preview' ), + __( 'Live preview' ), /* translators: Hidden accessibility text. %s: Theme name. */ - sprintf( __( 'Live Preview “%s”' ), $name ) + sprintf( __( 'Live preview “%s”' ), $name ) ); } @@ -153,7 +153,7 @@ public function after() { $install_actions['network_enable'] = sprintf( '<a href="%s" target="_parent">%s</a>', esc_url( wp_nonce_url( 'themes.php?action=enable&theme=' . urlencode( $stylesheet ), 'enable-theme_' . $stylesheet ) ), - __( 'Network Enable' ) + __( 'Network enable' ) ); } diff --git a/src/wp-admin/includes/class-theme-upgrader-skin.php b/src/wp-admin/includes/class-theme-upgrader-skin.php index cd4c6c6db3b40..b379e4f600e18 100644 --- a/src/wp-admin/includes/class-theme-upgrader-skin.php +++ b/src/wp-admin/includes/class-theme-upgrader-skin.php @@ -100,9 +100,9 @@ public function after() { '<a href="%s" class="hide-if-no-customize load-customize">' . '<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>', esc_url( $customize_url ), - __( 'Live Preview' ), + __( 'Live preview' ), /* translators: Hidden accessibility text. %s: Theme name. */ - sprintf( __( 'Live Preview “%s”' ), $name ) + sprintf( __( 'Live preview “%s”' ), $name ) ); } diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php index c4d323cf892b0..431165d3cb126 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -788,7 +788,7 @@ protected function handle_row_actions( $item, $column_name, $primary ) { esc_url( $unspam_url ), "delete:the-comment-list:comment-{$comment->comment_ID}:66cc66:unspam=1", esc_attr__( 'Restore this comment from the spam' ), - _x( 'Not Spam', 'comment' ) + _x( 'Not spam', 'comment' ) ); } @@ -808,7 +808,7 @@ protected function handle_row_actions( $item, $column_name, $primary ) { esc_url( $delete_url ), "delete:the-comment-list:comment-{$comment->comment_ID}::delete=1", esc_attr__( 'Delete this comment permanently' ), - __( 'Delete Permanently' ) + __( 'Delete permanently' ) ); } else { $actions['trash'] = sprintf( @@ -837,7 +837,7 @@ protected function handle_row_actions( $item, $column_name, $primary ) { 'edit', 'vim-q comment-inline', esc_attr__( 'Quick edit this comment inline' ), - __( 'Quick Edit' ) + __( 'Quick edit' ) ); $actions['reply'] = sprintf( diff --git a/src/wp-admin/includes/class-wp-debug-data.php b/src/wp-admin/includes/class-wp-debug-data.php index cbb57a4b8c940..cca6a40f8ec46 100644 --- a/src/wp-admin/includes/class-wp-debug-data.php +++ b/src/wp-admin/includes/class-wp-debug-data.php @@ -1172,7 +1172,7 @@ private static function get_wp_active_theme(): array { } return array( - 'label' => __( 'Active Theme' ), + 'label' => __( 'Active theme' ), 'fields' => $fields, ); } diff --git a/src/wp-admin/includes/class-wp-list-table.php b/src/wp-admin/includes/class-wp-list-table.php index 5a7fa0db8edd0..0d8b79aeaa739 100644 --- a/src/wp-admin/includes/class-wp-list-table.php +++ b/src/wp-admin/includes/class-wp-list-table.php @@ -1105,7 +1105,7 @@ protected function pagination( $which ) { '<span id="table-paging" class="paging-input">' . '<span class="tablenav-paging-text">', /* translators: Hidden accessibility text. */ - __( 'Current Page' ) + __( 'Current page' ) ); } else { $html_current_page = sprintf( @@ -1114,7 +1114,7 @@ protected function pagination( $which ) { name='paged' value='%s' size='%d' aria-describedby='table-paging' />" . "<span class='tablenav-paging-text'>", /* translators: Hidden accessibility text. */ - __( 'Current Page' ), + __( 'Current page' ), $current, strlen( $total_pages ) ); diff --git a/src/wp-admin/includes/class-wp-media-list-table.php b/src/wp-admin/includes/class-wp-media-list-table.php index b0a421586c690..13b390794d1da 100644 --- a/src/wp-admin/includes/class-wp-media-list-table.php +++ b/src/wp-admin/includes/class-wp-media-list-table.php @@ -462,7 +462,7 @@ public function column_title( $post ) { '<a href="%s" aria-label="%s">', get_edit_post_link( $post->ID ), /* translators: %s: Attachment title. */ - esc_attr( sprintf( __( '“%s” (Edit)' ), $title ) ) + esc_attr( sprintf( __( '“%s” (edit)' ), $title ) ) ); $link_end = '</a>'; } @@ -807,7 +807,7 @@ private function _get_row_actions( $post, $att_title ) { $show_confirmation, /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Delete “%s” permanently' ), $att_title ) ), - __( 'Delete Permanently' ) + __( 'Delete permanently' ) ); } } @@ -865,7 +865,7 @@ private function _get_row_actions( $post, $att_title ) { * @since 2.8.0 * * @param string[] $actions An array of action links for each attachment. - * Includes 'Edit', 'Delete Permanently', 'View', + * Includes 'Edit', 'Delete permanently', 'View', * 'Copy URL' and 'Download file'. * @param WP_Post $post WP_Post object for the current attachment. * @param bool $detached Whether the list table contains media not attached diff --git a/src/wp-admin/includes/class-wp-ms-sites-list-table.php b/src/wp-admin/includes/class-wp-ms-sites-list-table.php index 01968869a1f3f..2db61fa5feffc 100644 --- a/src/wp-admin/includes/class-wp-ms-sites-list-table.php +++ b/src/wp-admin/includes/class-wp-ms-sites-list-table.php @@ -365,7 +365,7 @@ public function get_columns() { $sites_columns = array( 'cb' => '<input type="checkbox" />', 'blogname' => __( 'URL' ), - 'lastupdated' => __( 'Last Updated' ), + 'lastupdated' => __( 'Last updated' ), 'registered' => _x( 'Registered', 'site' ), 'users' => __( 'Users' ), ); @@ -400,7 +400,7 @@ protected function get_sortable_columns() { return array( 'blogname' => array( 'blogname', false, $blogname_abbr, $blogname_orderby_text ), - 'lastupdated' => array( 'lastupdated', true, __( 'Last Updated' ), __( 'Table ordered by Last Updated.' ) ), + 'lastupdated' => array( 'lastupdated', true, __( 'Last updated' ), __( 'Table ordered by Last updated.' ) ), 'registered' => array( 'blog_id', true, _x( 'Registered', 'site' ), __( 'Table ordered by Site Registered Date.' ), 'desc' ), ); } @@ -806,7 +806,7 @@ protected function handle_row_actions( $item, $column_name, $primary ) { 'unspamblog_' . $blog['blog_id'] ) ), - _x( 'Not Spam', 'site' ) + _x( 'Not spam', 'site' ) ); } else { $actions['spam'] = sprintf( @@ -847,7 +847,7 @@ protected function handle_row_actions( $item, $column_name, $primary ) { * The 'Edit', 'Dashboard', 'Delete', and 'Visit' links are displayed by * default for each site. The site's status determines whether to show the * 'Activate' or 'Deactivate' link, 'Unarchive' or 'Archive' links, and - * 'Not Spam' or 'Spam' link for each site. + * 'Not spam' or 'Spam' link for each site. * * @since 3.1.0 * diff --git a/src/wp-admin/includes/class-wp-ms-themes-list-table.php b/src/wp-admin/includes/class-wp-ms-themes-list-table.php index 70187f44d446b..d82b5a5c49740 100644 --- a/src/wp-admin/includes/class-wp-ms-themes-list-table.php +++ b/src/wp-admin/includes/class-wp-ms-themes-list-table.php @@ -334,7 +334,7 @@ public function get_columns() { ); if ( $this->show_autoupdates ) { - $columns['auto-updates'] = __( 'Automatic Updates' ); + $columns['auto-updates'] = __( 'Automatic updates' ); } return $columns; @@ -405,8 +405,8 @@ protected function get_views() { case 'upgrade': /* translators: %s: Number of themes. */ $text = _nx( - 'Update Available <span class="count">(%s)</span>', - 'Update Available <span class="count">(%s)</span>', + 'Update available <span class="count">(%s)</span>', + 'Update available <span class="count">(%s)</span>', $count, 'themes' ); @@ -423,16 +423,16 @@ protected function get_views() { case 'auto-update-enabled': /* translators: %s: Number of themes. */ $text = _n( - 'Auto-updates Enabled <span class="count">(%s)</span>', - 'Auto-updates Enabled <span class="count">(%s)</span>', + 'Auto-updates enabled <span class="count">(%s)</span>', + 'Auto-updates enabled <span class="count">(%s)</span>', $count ); break; case 'auto-update-disabled': /* translators: %s: Number of themes. */ $text = _n( - 'Auto-updates Disabled <span class="count">(%s)</span>', - 'Auto-updates Disabled <span class="count">(%s)</span>', + 'Auto-updates disabled <span class="count">(%s)</span>', + 'Auto-updates disabled <span class="count">(%s)</span>', $count ); break; @@ -466,10 +466,10 @@ protected function get_bulk_actions() { $actions = array(); if ( 'enabled' !== $status ) { - $actions['enable-selected'] = $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' ); + $actions['enable-selected'] = $this->is_site_themes ? __( 'Enable' ) : __( 'Network enable' ); } if ( 'disabled' !== $status ) { - $actions['disable-selected'] = $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' ); + $actions['disable-selected'] = $this->is_site_themes ? __( 'Disable' ) : __( 'Network disable' ); } if ( ! $this->is_site_themes ) { if ( current_user_can( 'update_themes' ) ) { @@ -482,11 +482,11 @@ protected function get_bulk_actions() { if ( $this->show_autoupdates ) { if ( 'auto-update-enabled' !== $status ) { - $actions['enable-auto-update-selected'] = __( 'Enable Auto-updates' ); + $actions['enable-auto-update-selected'] = __( 'Enable auto-updates' ); } if ( 'auto-update-disabled' !== $status ) { - $actions['disable-auto-update-selected'] = __( 'Disable Auto-updates' ); + $actions['disable-auto-update-selected'] = __( 'Disable auto-updates' ); } } @@ -584,14 +584,14 @@ public function column_name( $theme ) { $aria_label = sprintf( __( 'Enable %s' ), $theme->display( 'Name' ) ); } else { /* translators: %s: Theme name. */ - $aria_label = sprintf( __( 'Network Enable %s' ), $theme->display( 'Name' ) ); + $aria_label = sprintf( __( 'Network enable %s' ), $theme->display( 'Name' ) ); } $actions['enable'] = sprintf( '<a href="%s" class="edit" aria-label="%s">%s</a>', esc_url( wp_nonce_url( $url, 'enable-theme_' . $stylesheet ) ), esc_attr( $aria_label ), - ( $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' ) ) + ( $this->is_site_themes ? __( 'Enable' ) : __( 'Network enable' ) ) ); } } else { @@ -610,14 +610,14 @@ public function column_name( $theme ) { $aria_label = sprintf( __( 'Disable %s' ), $theme->display( 'Name' ) ); } else { /* translators: %s: Theme name. */ - $aria_label = sprintf( __( 'Network Disable %s' ), $theme->display( 'Name' ) ); + $aria_label = sprintf( __( 'Network disable %s' ), $theme->display( 'Name' ) ); } $actions['disable'] = sprintf( '<a href="%s" aria-label="%s">%s</a>', esc_url( wp_nonce_url( $url, 'disable-theme_' . $stylesheet ) ), esc_attr( $aria_label ), - ( $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' ) ) + ( $this->is_site_themes ? __( 'Disable' ) : __( 'Network disable' ) ) ); } @@ -658,7 +658,7 @@ public function column_name( $theme ) { * non-network enabled themes when editing a site in the Network admin. * * The default action links for the Network themes list table include - * 'Network Enable', 'Network Disable', and 'Delete'. + * 'Network enable', 'Network disable', and 'Delete'. * * The default action links for the Site themes list table include * 'Enable', and 'Disable'. @@ -704,7 +704,7 @@ public function column_description( $theme ) { global $status, $totals; if ( $theme->errors() ) { - $pre = 'broken' === $status ? '<strong class="error-message">' . __( 'Broken Theme:' ) . '</strong> ' : ''; + $pre = 'broken' === $status ? '<strong class="error-message">' . __( 'Broken theme:' ) . '</strong> ' : ''; wp_admin_notice( $pre . $theme->errors()->get_error_message(), array( @@ -747,7 +747,7 @@ public function column_description( $theme ) { '<a href="%s" aria-label="%s">%s</a>', $theme->display( 'ThemeURI' ), esc_attr( $aria_label ), - __( 'Visit Theme Site' ) + __( 'Visit theme site' ) ); } @@ -942,12 +942,12 @@ public function single_row_columns( $item ) { /* Add a label for the active template */ if ( $item->get_template() === $template ) { - $active_theme_label = ' — ' . __( 'Active Theme' ); + $active_theme_label = ' — ' . __( 'Active theme' ); } /* In case this is a child theme, label it properly */ if ( $stylesheet !== $template && $item->get_stylesheet() === $stylesheet ) { - $active_theme_label = ' — ' . __( 'Active Child Theme' ); + $active_theme_label = ' — ' . __( 'Active child theme' ); } } diff --git a/src/wp-admin/includes/class-wp-plugin-install-list-table.php b/src/wp-admin/includes/class-wp-plugin-install-list-table.php index df0260be81e21..1447a1fbbe943 100644 --- a/src/wp-admin/includes/class-wp-plugin-install-list-table.php +++ b/src/wp-admin/includes/class-wp-plugin-install-list-table.php @@ -101,7 +101,7 @@ public function prepare_items() { $tabs = array(); if ( 'search' === $tab ) { - $tabs['search'] = __( 'Search Results' ); + $tabs['search'] = __( 'Search results' ); } if ( 'beta' === $tab || str_contains( get_bloginfo( 'version' ), '-' ) ) { @@ -118,7 +118,7 @@ public function prepare_items() { * No longer a real tab. Here for filter compatibility. * Gets skipped in get_views(). */ - $tabs['upload'] = __( 'Upload Plugin' ); + $tabs['upload'] = __( 'Upload plugin' ); } $nonmenu_tabs = array( 'plugin-information' ); // Valid actions to perform which do not have a Menu item. @@ -291,7 +291,7 @@ public function prepare_items() { public function no_items() { if ( isset( $this->error ) ) { $error_message = '<p>' . $this->error->get_error_message() . '</p>'; - $error_message .= '<p class="hide-if-no-js"><button class="button try-again">' . __( 'Try Again' ) . '</button></p>'; + $error_message .= '<p class="hide-if-no-js"><button class="button try-again">' . __( 'Try again' ) . '</button></p>'; wp_admin_notice( $error_message, array( @@ -591,7 +591,7 @@ public function display_rows() { * @since 2.7.0 * * @param string[] $action_links An array of plugin action links. - * Defaults are links to Details and Install Now. + * Defaults are links to Details and Install now. * @param array $plugin An array of plugin data. See {@see plugins_api()} * for the list of possible values. */ @@ -698,7 +698,7 @@ public function display_rows() { <span class="num-ratings" aria-hidden="true">(<?php echo number_format_i18n( $plugin['num_ratings'] ); ?>)</span> </div> <div class="column-updated"> - <strong><?php _e( 'Last Updated:' ); ?></strong> + <strong><?php _e( 'Last updated:' ); ?></strong> <?php /* translators: %s: Human-readable time difference. */ printf( __( '%s ago' ), human_time_diff( $last_updated_timestamp ) ); diff --git a/src/wp-admin/includes/class-wp-plugins-list-table.php b/src/wp-admin/includes/class-wp-plugins-list-table.php index e96445b7710a7..129e3ca04cd5e 100644 --- a/src/wp-admin/includes/class-wp-plugins-list-table.php +++ b/src/wp-admin/includes/class-wp-plugins-list-table.php @@ -475,7 +475,7 @@ public function get_columns() { ); if ( $this->show_autoupdates && ! in_array( $status, array( 'mustuse', 'dropins' ), true ) ) { - $columns['auto-updates'] = __( 'Automatic Updates' ); + $columns['auto-updates'] = __( 'Automatic updates' ); } return $columns; @@ -523,8 +523,8 @@ protected function get_views() { case 'recently_activated': /* translators: %s: Number of plugins. */ $text = _n( - 'Recently Active <span class="count">(%s)</span>', - 'Recently Active <span class="count">(%s)</span>', + 'Recently active <span class="count">(%s)</span>', + 'Recently active <span class="count">(%s)</span>', $count ); break; @@ -539,8 +539,8 @@ protected function get_views() { case 'mustuse': /* translators: %s: Number of plugins. */ $text = _n( - 'Must-Use <span class="count">(%s)</span>', - 'Must-Use <span class="count">(%s)</span>', + 'Must-use <span class="count">(%s)</span>', + 'Must-use <span class="count">(%s)</span>', $count ); break; @@ -563,24 +563,24 @@ protected function get_views() { case 'upgrade': /* translators: %s: Number of plugins. */ $text = _n( - 'Update Available <span class="count">(%s)</span>', - 'Update Available <span class="count">(%s)</span>', + 'Update available <span class="count">(%s)</span>', + 'Update available <span class="count">(%s)</span>', $count ); break; case 'auto-update-enabled': /* translators: %s: Number of plugins. */ $text = _n( - 'Auto-updates Enabled <span class="count">(%s)</span>', - 'Auto-updates Enabled <span class="count">(%s)</span>', + 'Auto-updates enabled <span class="count">(%s)</span>', + 'Auto-updates enabled <span class="count">(%s)</span>', $count ); break; case 'auto-update-disabled': /* translators: %s: Number of plugins. */ $text = _n( - 'Auto-updates Disabled <span class="count">(%s)</span>', - 'Auto-updates Disabled <span class="count">(%s)</span>', + 'Auto-updates disabled <span class="count">(%s)</span>', + 'Auto-updates disabled <span class="count">(%s)</span>', $count ); break; @@ -608,11 +608,11 @@ protected function get_bulk_actions() { $actions = array(); if ( 'active' !== $status ) { - $actions['activate-selected'] = $this->screen->in_admin( 'network' ) ? _x( 'Network Activate', 'plugin' ) : _x( 'Activate', 'plugin' ); + $actions['activate-selected'] = $this->screen->in_admin( 'network' ) ? _x( 'Network activate', 'plugin' ) : _x( 'Activate', 'plugin' ); } if ( 'inactive' !== $status && 'recent' !== $status ) { - $actions['deactivate-selected'] = $this->screen->in_admin( 'network' ) ? _x( 'Network Deactivate', 'plugin' ) : _x( 'Deactivate', 'plugin' ); + $actions['deactivate-selected'] = $this->screen->in_admin( 'network' ) ? _x( 'Network deactivate', 'plugin' ) : _x( 'Deactivate', 'plugin' ); } if ( ! is_multisite() || $this->screen->in_admin( 'network' ) ) { @@ -626,10 +626,10 @@ protected function get_bulk_actions() { if ( $this->show_autoupdates ) { if ( 'auto-update-enabled' !== $status ) { - $actions['enable-auto-update-selected'] = __( 'Enable Auto-updates' ); + $actions['enable-auto-update-selected'] = __( 'Enable auto-updates' ); } if ( 'auto-update-disabled' !== $status ) { - $actions['disable-auto-update-selected'] = __( 'Disable Auto-updates' ); + $actions['disable-auto-update-selected'] = __( 'Disable auto-updates' ); } } } @@ -665,7 +665,7 @@ protected function extra_tablenav( $which ) { echo '<div class="alignleft actions">'; if ( 'recently_activated' === $status ) { - submit_button( __( 'Clear List' ), '', 'clear-recent-list', false ); + submit_button( __( 'Clear list' ), '', 'clear-recent-list', false ); } elseif ( 'top' === $which && 'mustuse' === $status ) { echo '<p>' . sprintf( /* translators: %s: mu-plugins directory name. */ @@ -824,8 +824,8 @@ public function single_row( $item ) { wp_nonce_url( $deactivate_url, 'deactivate-plugin_' . $plugin_file ), esc_attr( $plugin_id_attr ), /* translators: %s: Plugin name. */ - esc_attr( sprintf( _x( 'Network Deactivate %s', 'plugin' ), $plugin_data['Name'] ) ), - _x( 'Network Deactivate', 'plugin' ) + esc_attr( sprintf( _x( 'Network deactivate %s', 'plugin' ), $plugin_data['Name'] ) ), + _x( 'Network deactivate', 'plugin' ) ); } } @@ -833,7 +833,7 @@ public function single_row( $item ) { if ( current_user_can( 'manage_network_plugins' ) ) { if ( $compatible_php && $compatible_wp ) { if ( $has_unmet_dependencies ) { - $actions['activate'] = _x( 'Network Activate', 'plugin' ) . + $actions['activate'] = _x( 'Network activate', 'plugin' ) . '<span class="screen-reader-text">' . __( 'You cannot activate this plugin as it has unmet requirements.' ) . '</span>'; @@ -849,8 +849,8 @@ public function single_row( $item ) { wp_nonce_url( $activate_url, 'activate-plugin_' . $plugin_file ), esc_attr( $plugin_id_attr ), /* translators: %s: Plugin name. */ - esc_attr( sprintf( _x( 'Network Activate %s', 'plugin' ), $plugin_data['Name'] ) ), - _x( 'Network Activate', 'plugin' ) + esc_attr( sprintf( _x( 'Network activate %s', 'plugin' ), $plugin_data['Name'] ) ), + _x( 'Network activate', 'plugin' ) ); } } else { @@ -888,11 +888,11 @@ public function single_row( $item ) { } else { if ( $restrict_network_active ) { $actions = array( - 'network_active' => __( 'Network Active' ), + 'network_active' => __( 'Network active' ), ); } elseif ( $restrict_network_only ) { $actions = array( - 'network_only' => __( 'Network Only' ), + 'network_only' => __( 'Network only' ), ); } elseif ( $is_active ) { if ( current_user_can( 'deactivate_plugin', $plugin_file ) ) { diff --git a/src/wp-admin/includes/class-wp-posts-list-table.php b/src/wp-admin/includes/class-wp-posts-list-table.php index 9be86455e2c84..638282df2342a 100644 --- a/src/wp-admin/includes/class-wp-posts-list-table.php +++ b/src/wp-admin/includes/class-wp-posts-list-table.php @@ -1141,7 +1141,7 @@ public function column_title( $post ) { '<a class="row-title" href="%s" aria-label="%s">%s%s</a>', get_edit_post_link( $post->ID ), /* translators: %s: Post title. */ - esc_attr( sprintf( __( '“%s” (Edit)' ), $title ) ), + esc_attr( sprintf( __( '“%s” (edit)' ), $title ) ), $pad, $title ); @@ -1218,7 +1218,7 @@ public function column_date( $post ) { $status = __( 'Scheduled' ); } } else { - $status = __( 'Last Modified' ); + $status = __( 'Last modified' ); } /** @@ -1506,7 +1506,7 @@ protected function handle_row_actions( $item, $column_name, $primary ) { '<button type="button" class="button-link editinline" aria-label="%s" aria-expanded="false">%s</button>', /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $title ) ), - __( 'Quick Edit' ) + __( 'Quick edit' ) ); } } @@ -1536,7 +1536,7 @@ protected function handle_row_actions( $item, $column_name, $primary ) { get_delete_post_link( $post->ID, '', true ), /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Delete “%s” permanently' ), $title ) ), - __( 'Delete Permanently' ) + __( 'Delete permanently' ) ); } } @@ -1585,7 +1585,7 @@ protected function handle_row_actions( $item, $column_name, $primary ) { * * @param string[] $actions An array of row action links. Defaults are * 'Edit', 'Quick Edit', 'Restore', 'Trash', - * 'Delete Permanently', 'Preview', and 'View'. + * 'Delete permanently', 'Preview', and 'View'. * @param WP_Post $post The post object. */ $actions = apply_filters( 'page_row_actions', $actions, $post ); @@ -1600,7 +1600,7 @@ protected function handle_row_actions( $item, $column_name, $primary ) { * * @param string[] $actions An array of row action links. Defaults are * 'Edit', 'Quick Edit', 'Restore', 'Trash', - * 'Delete Permanently', 'Preview', and 'View'. + * 'Delete permanently', 'Preview', and 'View'. * @param WP_Post $post The post object. */ $actions = apply_filters( 'post_row_actions', $actions, $post ); @@ -1684,7 +1684,7 @@ public function inline_edit() { <td colspan="<?php echo $this->get_column_count(); ?>" class="colspanchange"> <div class="inline-edit-wrapper" role="region" aria-labelledby="<?php echo $bulk ? 'bulk' : 'quick'; ?>-edit-legend"> <fieldset class="inline-edit-col-left"> - <legend class="inline-edit-legend" id="<?php echo $bulk ? 'bulk' : 'quick'; ?>-edit-legend"><?php echo $bulk ? __( 'Bulk Edit' ) : __( 'Quick Edit' ); ?></legend> + <legend class="inline-edit-legend" id="<?php echo $bulk ? 'bulk' : 'quick'; ?>-edit-legend"><?php echo $bulk ? __( 'Bulk edit' ) : __( 'Quick edit' ); ?></legend> <div class="inline-edit-col"> <?php if ( post_type_supports( $screen->post_type, 'title' ) ) : ?> @@ -1744,7 +1744,7 @@ public function inline_edit() { ); if ( $bulk ) { - $users_opt['show_option_none'] = __( '— No Change —' ); + $users_opt['show_option_none'] = __( '— No change —' ); } /** @@ -1841,13 +1841,13 @@ public function inline_edit() { 'post_type' => $post_type_object->name, 'selected' => $post->post_parent, 'name' => 'post_parent', - 'show_option_none' => __( 'Main Page (no parent)' ), + 'show_option_none' => __( 'Main page (no parent)' ), 'option_none_value' => 0, 'sort_column' => 'menu_order, post_title', ); if ( $bulk ) { - $dropdown_args['show_option_no_change'] = __( '— No Change —' ); + $dropdown_args['show_option_no_change'] = __( '— No change —' ); $dropdown_args['id'] = 'bulk_edit_post_parent'; } @@ -1887,7 +1887,7 @@ public function inline_edit() { <span class="title"><?php _e( 'Template' ); ?></span> <select name="page_template"> <?php if ( $bulk ) : ?> - <option value="-1"><?php _e( '— No Change —' ); ?></option> + <option value="-1"><?php _e( '— No change —' ); ?></option> <?php endif; // $bulk ?> <?php /** This filter is documented in wp-admin/includes/meta-boxes.php */ @@ -1930,7 +1930,7 @@ public function inline_edit() { <label class="alignleft"> <span class="title"><?php _e( 'Comments' ); ?></span> <select name="comment_status"> - <option value=""><?php _e( '— No Change —' ); ?></option> + <option value=""><?php _e( '— No change —' ); ?></option> <option value="open"><?php _e( 'Allow' ); ?></option> <option value="closed"><?php _e( 'Do not allow' ); ?></option> </select> @@ -1943,7 +1943,7 @@ public function inline_edit() { <label class="alignright"> <span class="title"><?php _e( 'Pings' ); ?></span> <select name="ping_status"> - <option value=""><?php _e( '— No Change —' ); ?></option> + <option value=""><?php _e( '— No change —' ); ?></option> <option value="open"><?php _e( 'Allow' ); ?></option> <option value="closed"><?php _e( 'Do not allow' ); ?></option> </select> @@ -1961,7 +1961,7 @@ public function inline_edit() { <label class="alignleft"> <input type="checkbox" name="comment_status" value="open" /> - <span class="checkbox-title"><?php _e( 'Allow Comments' ); ?></span> + <span class="checkbox-title"><?php _e( 'Allow comments' ); ?></span> </label> <?php endif; ?> @@ -1970,7 +1970,7 @@ public function inline_edit() { <label class="alignleft"> <input type="checkbox" name="ping_status" value="open" /> - <span class="checkbox-title"><?php _e( 'Allow Pings' ); ?></span> + <span class="checkbox-title"><?php _e( 'Allow pings' ); ?></span> </label> <?php endif; ?> @@ -1987,10 +1987,10 @@ public function inline_edit() { <span class="title"><?php _e( 'Status' ); ?></span> <select name="_status"> <?php if ( $bulk ) : ?> - <option value="-1"><?php _e( '— No Change —' ); ?></option> + <option value="-1"><?php _e( '— No change —' ); ?></option> <?php endif; // $bulk ?> - <?php if ( $can_publish ) : // Contributors only get "Unpublished" and "Pending Review". ?> + <?php if ( $can_publish ) : // Contributors only get "Unpublished" and "Pending review". ?> <option value="publish"><?php _e( 'Published' ); ?></option> <option value="future"><?php _e( 'Scheduled' ); ?></option> <?php if ( $bulk ) : ?> @@ -1998,7 +1998,7 @@ public function inline_edit() { <?php endif; // $bulk ?> <?php endif; ?> - <option value="pending"><?php _e( 'Pending Review' ); ?></option> + <option value="pending"><?php _e( 'Pending review' ); ?></option> <option value="draft"><?php _e( 'Draft' ); ?></option> </select> </label> @@ -2010,9 +2010,9 @@ public function inline_edit() { <label class="alignright"> <span class="title"><?php _e( 'Sticky' ); ?></span> <select name="sticky"> - <option value="-1"><?php _e( '— No Change —' ); ?></option> + <option value="-1"><?php _e( '— No change —' ); ?></option> <option value="sticky"><?php _e( 'Sticky' ); ?></option> - <option value="unsticky"><?php _e( 'Not Sticky' ); ?></option> + <option value="unsticky"><?php _e( 'Not sticky' ); ?></option> </select> </label> @@ -2035,7 +2035,7 @@ public function inline_edit() { <label class="alignleft"> <span class="title"><?php _ex( 'Format', 'post format' ); ?></span> <select name="post_format"> - <option value="-1"><?php _e( '— No Change —' ); ?></option> + <option value="-1"><?php _e( '— No change —' ); ?></option> <option value="0"><?php echo get_post_format_string( 'standard' ); ?></option> <?php if ( is_array( $post_formats[0] ) ) : ?> <?php foreach ( $post_formats[0] as $format ) : ?> diff --git a/src/wp-admin/includes/class-wp-terms-list-table.php b/src/wp-admin/includes/class-wp-terms-list-table.php index c7f34631a9b42..f9c33343bdd3c 100644 --- a/src/wp-admin/includes/class-wp-terms-list-table.php +++ b/src/wp-admin/includes/class-wp-terms-list-table.php @@ -416,7 +416,7 @@ public function column_name( $tag ) { '<a class="row-title" href="%s" aria-label="%s">%s</a>', esc_url( $edit_link ), /* translators: %s: Taxonomy term name. */ - esc_attr( sprintf( __( '“%s” (Edit)' ), $tag->name ) ), + esc_attr( sprintf( __( '“%s” (edit)' ), $tag->name ) ), $name ); } diff --git a/src/wp-admin/includes/class-wp-theme-install-list-table.php b/src/wp-admin/includes/class-wp-theme-install-list-table.php index 7e00005ba4372..d361b7bbb269c 100644 --- a/src/wp-admin/includes/class-wp-theme-install-list-table.php +++ b/src/wp-admin/includes/class-wp-theme-install-list-table.php @@ -58,7 +58,7 @@ public function prepare_items() { $tabs = array(); $tabs['dashboard'] = __( 'Search' ); if ( 'search' === $tab ) { - $tabs['search'] = __( 'Search Results' ); + $tabs['search'] = __( 'Search results' ); } $tabs['upload'] = _x( 'Upload', 'noun' ); $tabs['featured'] = _x( 'Featured', 'themes' ); @@ -156,7 +156,7 @@ public function prepare_items() { $api = themes_api( 'query_themes', $args ); if ( is_wp_error( $api ) ) { - wp_die( '<p>' . $api->get_error_message() . '</p> <p><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try Again' ) . '</a></p>' ); + wp_die( '<p>' . $api->get_error_message() . '</p> <p><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try again' ) . '</a></p>' ); } $this->items = $api->themes; @@ -336,7 +336,7 @@ public function single_row( $theme ) { esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ), /* translators: %s: Theme name. */ esc_attr( sprintf( _x( 'Install %s', 'theme' ), $name ) ), - _x( 'Install Now', 'theme' ) + _x( 'Install now', 'theme' ) ); break; } @@ -354,7 +354,7 @@ public function single_row( $theme ) { * @since 3.4.0 * * @param string[] $actions An array of theme action links. Defaults are - * links to Install Now, Preview, and Details. + * links to Install now, Preview, and Details. * @param stdClass $theme An object that contains theme data returned by the * WordPress.org API. */ @@ -401,7 +401,7 @@ public function theme_installer() { <div class="install-theme-info"></div> </div> <div class="wp-full-overlay-footer"> - <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>"> + <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse sidebar' ); ?>"> <span class="collapse-sidebar-arrow"></span> <span class="collapse-sidebar-label"><?php _e( 'Collapse' ); ?></span> </button> diff --git a/src/wp-admin/includes/class-wp-themes-list-table.php b/src/wp-admin/includes/class-wp-themes-list-table.php index b17fb912d26dc..b873b8a48a95b 100644 --- a/src/wp-admin/includes/class-wp-themes-list-table.php +++ b/src/wp-admin/includes/class-wp-themes-list-table.php @@ -222,7 +222,7 @@ public function display_rows() { $actions['preview'] .= sprintf( '<a href="%s" class="load-customize hide-if-no-customize">%s</a>', wp_customize_url( $stylesheet ), - __( 'Live Preview' ) + __( 'Live preview' ) ); } diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index b198325f27cd8..83217d4cbc089 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -783,7 +783,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { esc_url( $delete_url ), "delete:the-comment-list:comment-{$comment->comment_ID}::trash=1", esc_attr__( 'Delete this comment permanently' ), - __( 'Delete Permanently' ) + __( 'Delete permanently' ) ); } else { $actions['trash'] = sprintf( diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index 40059273bad62..5785c1adc9ce3 100644 --- a/src/wp-admin/includes/file.php +++ b/src/wp-admin/includes/file.php @@ -30,7 +30,7 @@ 'category.php' => __( 'Category Template' ), 'tag.php' => __( 'Tag Template' ), 'home.php' => __( 'Posts Page' ), - 'search.php' => __( 'Search Results' ), + 'search.php' => __( 'Search results' ), 'date.php' => __( 'Date Template' ), // Content. 'singular.php' => __( 'Singular Template' ), diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php index 5c0b5d0b388f5..fe1677a5e008f 100644 --- a/src/wp-admin/includes/media.php +++ b/src/wp-admin/includes/media.php @@ -1733,7 +1733,7 @@ function get_media_item( $attachment_id, $args = null ) { $delete = empty( $parsed_args['delete'] ) ? '' : $parsed_args['delete']; if ( $delete && current_user_can( 'delete_post', $attachment_id ) ) { if ( ! EMPTY_TRASH_DAYS ) { - $delete = "<a href='" . wp_nonce_url( "post.php?action=delete&post=$attachment_id", 'delete-post_' . $attachment_id ) . "' id='del[$attachment_id]' class='delete-permanently'>" . __( 'Delete Permanently' ) . '</a>'; + $delete = "<a href='" . wp_nonce_url( "post.php?action=delete&post=$attachment_id", 'delete-post_' . $attachment_id ) . "' id='del[$attachment_id]' class='delete-permanently'>" . __( 'Delete permanently' ) . '</a>'; } elseif ( ! MEDIA_TRASH ) { $delete = "<a href='#' class='del-link' onclick=\"document.getElementById('del_attachment_$attachment_id').style.display='block';return false;\">" . __( 'Delete' ) . "</a> <div id='del_attachment_$attachment_id' class='del-attachment' style='display:none;'>" . diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php index 0dfb1c9e8619d..24a658bef7998 100644 --- a/src/wp-admin/includes/meta-boxes.php +++ b/src/wp-admin/includes/meta-boxes.php @@ -115,7 +115,7 @@ function post_submit_meta_box( $post, $args = array() ) { _e( 'Scheduled' ); break; case 'pending': - _e( 'Pending Review' ); + _e( 'Pending review' ); break; case 'draft': case 'auto-draft': @@ -155,7 +155,7 @@ function post_submit_meta_box( $post, $args = array() ) { <?php elseif ( 'future' === $post->post_status ) : ?> <option<?php selected( $post->post_status, 'future' ); ?> value='future'><?php _e( 'Scheduled' ); ?></option> <?php endif; ?> - <option<?php selected( $post->post_status, 'pending' ); ?> value='pending'><?php _e( 'Pending Review' ); ?></option> + <option<?php selected( $post->post_status, 'pending' ); ?> value='pending'><?php _e( 'Pending review' ); ?></option> <?php if ( 'auto-draft' === $post->post_status ) : ?> <option<?php selected( $post->post_status, 'auto-draft' ); ?> value='draft'><?php _e( 'Draft' ); ?></option> <?php else : ?> diff --git a/src/wp-admin/includes/ms.php b/src/wp-admin/includes/ms.php index fc5f54a7f4c46..e33c163f305dc 100644 --- a/src/wp-admin/includes/ms.php +++ b/src/wp-admin/includes/ms.php @@ -1149,7 +1149,7 @@ function get_site_screen_help_tab_args() { 'title' => __( 'Overview' ), 'content' => '<p>' . __( 'The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.' ) . '</p>' . - '<p>' . __( '<strong>Info</strong> — The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.' ) . '</p>' . + '<p>' . __( '<strong>Info</strong> — The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.' ) . '</p>' . '<p>' . __( '<strong>Users</strong> — This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.' ) . '</p>' . '<p>' . sprintf( /* translators: %s: URL to Network Themes screen. */ diff --git a/src/wp-admin/includes/nav-menu.php b/src/wp-admin/includes/nav-menu.php index ea7de40a84152..0c75c10d51072 100644 --- a/src/wp-admin/includes/nav-menu.php +++ b/src/wp-admin/includes/nav-menu.php @@ -809,7 +809,7 @@ class="categorychecklist form-no-clear" <input type="checkbox"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> id="<?php echo esc_attr( $tab_name ); ?>" class="select-all" /> - <label for="<?php echo esc_attr( $tab_name ); ?>"><?php _e( 'Select All' ); ?></label> + <label for="<?php echo esc_attr( $tab_name ); ?>"><?php _e( 'Select all' ); ?></label> </span> <span class="add-to-menu"> @@ -1104,7 +1104,7 @@ class="categorychecklist form-no-clear" <input type="checkbox"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> id="<?php echo esc_attr( $tab_name ); ?>" class="select-all" /> - <label for="<?php echo esc_attr( $tab_name ); ?>"><?php _e( 'Select All' ); ?></label> + <label for="<?php echo esc_attr( $tab_name ); ?>"><?php _e( 'Select all' ); ?></label> </span> <span class="add-to-menu"> diff --git a/src/wp-admin/includes/plugin-install.php b/src/wp-admin/includes/plugin-install.php index 04287736bc661..304a4e1e8af1b 100644 --- a/src/wp-admin/includes/plugin-install.php +++ b/src/wp-admin/includes/plugin-install.php @@ -352,7 +352,7 @@ function install_plugins_upload() { ?> </label> <input type="file" id="pluginzip" name="pluginzip" accept=".zip" /> - <?php submit_button( _x( 'Install Now', 'plugin' ), '', 'install-plugin-submit', false ); ?> + <?php submit_button( _x( 'Install now', 'plugin' ), '', 'install-plugin-submit', false ); ?> </form> </div> <?php @@ -661,7 +661,7 @@ function install_plugin_information() { <?php } if ( ! empty( $api->author ) ) { ?> <li><strong><?php _e( 'Author:' ); ?></strong> <?php echo links_add_target( $api->author, '_blank' ); ?></li> <?php } if ( ! empty( $api->last_updated ) ) { ?> - <li><strong><?php _e( 'Last Updated:' ); ?></strong> + <li><strong><?php _e( 'Last updated:' ); ?></strong> <?php /* translators: %s: Human-readable time difference. */ printf( __( '%s ago' ), human_time_diff( strtotime( $api->last_updated ) ) ); @@ -950,12 +950,12 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible /* translators: %s: Plugin name and version. */ esc_attr( sprintf( _x( 'Install %s now', 'plugin' ), $name ) ), esc_attr( $name ), - _x( 'Install Now', 'plugin' ) + _x( 'Install now', 'plugin' ) ); } else { $button = sprintf( '<button type="button" class="install-now button button-disabled" disabled="disabled">%s</button>', - _x( 'Install Now', 'plugin' ) + _x( 'Install now', 'plugin' ) ); } } @@ -972,12 +972,12 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible /* translators: %s: Plugin name and version. */ esc_attr( sprintf( _x( 'Update %s now', 'plugin' ), $name ) ), esc_attr( $name ), - _x( 'Update Now', 'plugin' ) + _x( 'Update now', 'plugin' ) ); } else { $button = sprintf( '<button type="button" class="button button-disabled" disabled="disabled">%s</button>', - _x( 'Update Now', 'plugin' ) + _x( 'Update now', 'plugin' ) ); } } diff --git a/src/wp-admin/includes/theme-install.php b/src/wp-admin/includes/theme-install.php index 6faedc94fb921..94708cb9bc12a 100644 --- a/src/wp-admin/includes/theme-install.php +++ b/src/wp-admin/includes/theme-install.php @@ -204,7 +204,7 @@ function install_themes_upload() { ?> </label> <input type="file" id="themezip" name="themezip" accept=".zip" /> - <?php submit_button( _x( 'Install Now', 'theme' ), '', 'install-theme-submit', false ); ?> + <?php submit_button( _x( 'Install now', 'theme' ), '', 'install-theme-submit', false ); ?> </form> <?php } diff --git a/src/wp-admin/includes/theme.php b/src/wp-admin/includes/theme.php index 8fc9c00f149db..42540a9d742d1 100644 --- a/src/wp-admin/includes/theme.php +++ b/src/wp-admin/includes/theme.php @@ -894,7 +894,7 @@ function customize_themes_print_templates() { <# if ( data.hasUpdate ) { #> <# if ( data.updateResponse.compatibleWP && data.updateResponse.compatiblePHP ) { #> <div class="notice notice-warning notice-alt notice-large" data-slug="{{ data.id }}"> - <h3 class="notice-title"><?php _e( 'Update Available' ); ?></h3> + <h3 class="notice-title"><?php _e( 'Update available' ); ?></h3> {{{ data.update }}} </div> <# } else { #> @@ -1073,9 +1073,9 @@ function customize_themes_print_templates() { <# } #> <# } else { #> <# if ( data.compatibleWP && data.compatiblePHP ) { #> - <button type="button" class="button button-primary preview-theme" data-slug="{{ data.id }}"><?php _e( 'Live Preview' ); ?></button> + <button type="button" class="button button-primary preview-theme" data-slug="{{ data.id }}"><?php _e( 'Live preview' ); ?></button> <# } else { #> - <button class="button button-primary disabled"><?php _e( 'Live Preview' ); ?></button> + <button class="button button-primary disabled"><?php _e( 'Live preview' ); ?></button> <# } #> <# } #> </div> diff --git a/src/wp-admin/menu.php b/src/wp-admin/menu.php index 82136429ba2aa..cc92dbbfda2d0 100644 --- a/src/wp-admin/menu.php +++ b/src/wp-admin/menu.php @@ -377,7 +377,7 @@ function _add_plugin_file_editor_to_tools() { /* translators: %s: Number of critical Site Health checks. */ $submenu['tools.php'][20] = array( sprintf( __( 'Site Health %s' ), $site_health_count ), 'view_site_health_checks', 'site-health.php' ); $submenu['tools.php'][25] = array( __( 'Export Personal Data' ), 'export_others_personal_data', 'export-personal-data.php' ); - $submenu['tools.php'][30] = array( __( 'Erase Personal Data' ), 'erase_others_personal_data', 'erase-personal-data.php' ); + $submenu['tools.php'][30] = array( __( 'Erase personal data' ), 'erase_others_personal_data', 'erase-personal-data.php' ); if ( is_multisite() && ! is_main_site() ) { $submenu['tools.php'][35] = array( __( 'Delete Site' ), 'delete_site', 'ms-delete-site.php' ); } diff --git a/src/wp-admin/nav-menus.php b/src/wp-admin/nav-menus.php index 36905bab63526..b4373c76a8918 100644 --- a/src/wp-admin/nav-menus.php +++ b/src/wp-admin/nav-menus.php @@ -793,7 +793,7 @@ function wp_nav_menu_max_depth( $classes ) { admin_url( 'customize.php' ) ) ), - __( 'Manage with Live Preview' ) + __( 'Manage with Live preview' ) ); endif; diff --git a/src/wp-admin/network/site-info.php b/src/wp-admin/network/site-info.php index 46f67cced5c52..56856e633ae6b 100644 --- a/src/wp-admin/network/site-info.php +++ b/src/wp-admin/network/site-info.php @@ -192,7 +192,7 @@ <td><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo esc_attr( $details->registered ); ?>" /></td> </tr> <tr class="form-field"> - <th scope="row"><label for="blog_last_updated"><?php _e( 'Last Updated' ); ?></label></th> + <th scope="row"><label for="blog_last_updated"><?php _e( 'Last updated' ); ?></label></th> <td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ); ?>" /></td> </tr> <?php diff --git a/src/wp-admin/plugin-install.php b/src/wp-admin/plugin-install.php index 5c8be143bf332..b7f9a44fd8924 100644 --- a/src/wp-admin/plugin-install.php +++ b/src/wp-admin/plugin-install.php @@ -112,7 +112,7 @@ '<p>' . __( 'If you know what you are looking for, Search is your best bet. The Search screen has options to search the WordPress Plugin Directory for a particular Term, Author, or Tag. You can also search the directory by selecting popular tags. Tags in larger type mean more plugins have been labeled with that tag.' ) . '</p>' . '<p>' . __( 'If you just want to get an idea of what’s available, you can browse Featured and Popular plugins by using the links above the plugins list. These sections rotate regularly.' ) . '</p>' . '<p>' . __( 'You can also browse a user’s favorite plugins, by using the Favorites link above the plugins list and entering their WordPress.org username.' ) . '</p>' . - '<p>' . __( 'If you want to install a plugin that you’ve downloaded elsewhere, click the Upload Plugin button above the plugins list. You will be prompted to upload the .zip package, and once uploaded, you can activate the new plugin.' ) . '</p>', + '<p>' . __( 'If you want to install a plugin that you’ve downloaded elsewhere, click the Upload plugin button above the plugins list. You will be prompted to upload the .zip package, and once uploaded, you can activate the new plugin.' ) . '</p>', ) ); @@ -151,7 +151,7 @@ printf( ' <a href="%s" class="upload-view-toggle page-title-action"><span class="upload">%s</span><span class="browse">%s</span></a>', ( 'upload' === $tab ) ? self_admin_url( 'plugin-install.php' ) : self_admin_url( 'plugin-install.php?tab=upload' ), - __( 'Upload Plugin' ), + __( 'Upload plugin' ), __( 'Browse Plugins' ) ); } diff --git a/src/wp-admin/press-this.php b/src/wp-admin/press-this.php index c91df1c96b84b..a79adfd6ec881 100644 --- a/src/wp-admin/press-this.php +++ b/src/wp-admin/press-this.php @@ -60,7 +60,7 @@ function wp_load_press_this() { '<a href="%1$s" class="install-now" data-slug="%2$s" data-name="%2$s" aria-label="%3$s">%3$s</a>', esc_url( $url ), esc_attr( $plugin_slug ), - _x( 'Install Now', 'plugin' ) + _x( 'Install now', 'plugin' ) ); } else { $action = sprintf( diff --git a/src/wp-admin/setup-config.php b/src/wp-admin/setup-config.php index d2fa4ae8ea7ee..ffa48ec89371a 100644 --- a/src/wp-admin/setup-config.php +++ b/src/wp-admin/setup-config.php @@ -298,7 +298,7 @@ function setup_config_display_header( $body_classes = array() ) { $install .= '?language=en_US'; } - $tryagain_link = '</p><p class="step"><a href="' . $step_1 . '" onclick="javascript:history.go(-1);return false;" class="button button-large">' . __( 'Try Again' ) . '</a>'; + $tryagain_link = '</p><p class="step"><a href="' . $step_1 . '" onclick="javascript:history.go(-1);return false;" class="button button-large">' . __( 'Try again' ) . '</a>'; if ( empty( $prefix ) ) { wp_die( __( '<strong>Error:</strong> "Table Prefix" must not be empty.' ) . $tryagain_link ); diff --git a/src/wp-admin/theme-install.php b/src/wp-admin/theme-install.php index ff456f32d318b..7be443218377c 100644 --- a/src/wp-admin/theme-install.php +++ b/src/wp-admin/theme-install.php @@ -63,11 +63,11 @@ __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ), __( 'https://wordpress.org/support/forums/' ) ), - 'tryAgain' => __( 'Try Again' ), + 'tryAgain' => __( 'Try again' ), /* translators: %d: Number of themes. */ 'themesFound' => __( 'Number of Themes found: %d' ), 'noThemesFound' => __( 'No themes found. Try a different search.' ), - 'collapseSidebar' => __( 'Collapse Sidebar' ), + 'collapseSidebar' => __( 'Collapse sidebar' ), 'expandSidebar' => __( 'Expand Sidebar' ), /* translators: Hidden accessibility text. */ 'selectFeatureFilter' => __( 'Select one or more Theme features to filter by' ), @@ -127,7 +127,7 @@ $help_installing = '<p>' . __( 'Once you have generated a list of themes, you can preview and install any of them. Click on the thumbnail of the theme you are interested in previewing. It will open up in a full-screen Preview page to give you a better idea of how that theme will look.' ) . '</p>' . - '<p>' . __( 'To install the theme so you can preview it with your site’s content and customize its theme options, click the "Install" button at the top of the left-hand pane. The theme files will be downloaded to your website automatically. When this is complete, the theme is now available for activation, which you can do by clicking the "Activate" link, or by navigating to your Manage Themes screen and clicking the "Live Preview" link under any installed theme’s thumbnail image.' ) . '</p>'; + '<p>' . __( 'To install the theme so you can preview it with your site’s content and customize its theme options, click the "Install" button at the top of the left-hand pane. The theme files will be downloaded to your website automatically. When this is complete, the theme is now available for activation, which you can do by clicking the "Activate" link, or by navigating to your Manage Themes screen and clicking the "Live preview" link under any installed theme’s thumbnail image.' ) . '</p>'; get_current_screen()->add_help_tab( array( @@ -416,7 +416,7 @@ <# if ( data.customize_url ) { #> <# if ( ! data.active ) { #> <# if ( ! data.block_theme ) { #> - <a class="button load-customize" href="{{ data.customize_url }}"><?php _e( 'Live Preview' ); ?></a> + <a class="button load-customize" href="{{ data.customize_url }}"><?php _e( 'Live preview' ); ?></a> <# } #> <# } else { #> <a class="button load-customize" href="{{ data.customize_url }}"><?php _e( 'Customize' ); ?></a> @@ -433,7 +433,7 @@ <a class="button button-primary disabled" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Activate', 'theme' ); ?></a> <# } #> <# if ( data.customize_url ) { #> - <a class="button disabled"><?php _e( 'Live Preview' ); ?></a> + <a class="button disabled"><?php _e( 'Live preview' ); ?></a> <# } else { #> <button class="button disabled"><?php _e( 'Preview' ); ?></button> <# } #> @@ -449,9 +449,9 @@ <# } else { #> <?php /* translators: %s: Theme name. */ - $aria_label = sprintf( _x( 'Cannot Install %s', 'theme' ), '{{ data.name }}' ); + $aria_label = sprintf( _x( 'Cannot install %s', 'theme' ), '{{ data.name }}' ); ?> - <a class="button button-primary disabled" data-name="{{ data.name }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Install', 'theme' ); ?></a> + <a class="button button-primary disabled" data-name="{{ data.name }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot install', 'theme' ); ?></a> <button class="button disabled"><?php _e( 'Preview' ); ?></button> <# } #> <# } #> @@ -498,7 +498,7 @@ <# if ( data.compatible_wp && data.compatible_php ) { #> <a href="{{ data.install_url }}" class="button button-primary theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}"><?php _e( 'Install' ); ?></a> <# } else { #> - <a class="button button-primary disabled" ><?php _ex( 'Cannot Install', 'theme' ); ?></a> + <a class="button button-primary disabled" ><?php _ex( 'Cannot install', 'theme' ); ?></a> <# } #> <# } #> </div> @@ -598,7 +598,7 @@ </div> </div> <div class="wp-full-overlay-footer"> - <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>"> + <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse sidebar' ); ?>"> <span class="collapse-sidebar-arrow"></span> <span class="collapse-sidebar-label"><?php _e( 'Collapse' ); ?></span> </button> diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php index 08245a09718e0..a966eaa964c52 100644 --- a/src/wp-admin/themes.php +++ b/src/wp-admin/themes.php @@ -131,9 +131,9 @@ if ( current_user_can( 'switch_themes' ) ) { $help_overview = '<p>' . __( 'This screen is used for managing your installed themes. Aside from the default theme(s) included with your WordPress installation, themes are designed and developed by third parties.' ) . '</p>' . '<p>' . __( 'From this screen you can:' ) . '</p>' . - '<ul><li>' . __( 'Hover or tap to see Activate and Live Preview buttons' ) . '</li>' . + '<ul><li>' . __( 'Hover or tap to see Activate and "Live preview" buttons' ) . '</li>' . '<li>' . __( 'Click on the theme to see the theme name, version, author, description, tags, and the Delete link' ) . '</li>' . - '<li>' . __( 'Click Customize for the active theme or Live Preview for any other theme to see a live preview' ) . '</li></ul>' . + '<li>' . __( 'Click Customize for the active theme or "Live preview" for any other theme to see a live preview' ) . '</li></ul>' . '<p>' . __( 'The active theme is displayed highlighted as the first theme.' ) . '</p>' . '<p>' . __( 'The search for installed themes will search for terms in their name, description, author, or tag.' ) . ' <span id="live-search-desc">' . __( 'The search results will be updated as you type.' ) . '</span></p>'; @@ -170,7 +170,7 @@ // Help tab: Previewing and Customizing. if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { $help_customize = - '<p>' . __( 'Tap or hover on any theme then click the Live Preview button to see a live preview of that theme and change theme options in a separate, full-screen view. You can also find a Live Preview button at the bottom of the theme details screen. Any installed theme can be previewed and customized in this way.' ) . '</p>' . + '<p>' . __( 'Tap or hover on any theme then click the Live preview button to see a live preview of that theme and change theme options in a separate, full-screen view. You can also find a Live preview button at the bottom of the theme details screen. Any installed theme can be previewed and customized in this way.' ) . '</p>' . '<p>' . __( 'The theme being previewed is fully interactive — navigate to different pages to see how the theme handles posts, archives, and other page templates. The settings may differ depending on what theme features the theme being previewed supports. To accept the new settings and activate the theme all in one step, click the Activate & Publish button above the menu.' ) . '</p>' . '<p>' . __( 'When previewing on smaller monitors, you can use the collapse icon at the bottom of the left-hand pane. This will hide the pane, giving you more room to preview your site in the new theme. To bring the pane back, click on the collapse icon again.' ) . '</p>'; @@ -628,12 +628,12 @@ // Only classic themes require the "customize" capability. if ( current_user_can( 'edit_theme_options' ) && ( $theme['blockTheme'] || current_user_can( 'customize' ) ) ) { /* translators: %s: Theme name. */ - $live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' ); + $live_preview_aria_label = sprintf( _x( 'Live preview %s', 'theme' ), '{{ data.name }}' ); ?> <a class="button button-primary load-customize hide-if-no-customize" href="<?php echo esc_url( $theme['actions']['customize'] ); ?>" aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>" - ><?php _e( 'Live Preview' ); ?></a> + ><?php _e( 'Live preview' ); ?></a> <?php } ?> <?php } else { ?> <?php @@ -647,11 +647,11 @@ <?php if ( ! $theme['blockTheme'] && current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { /* translators: %s: Theme name. */ - $live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' ); + $live_preview_aria_label = sprintf( _x( 'Live preview %s', 'theme' ), '{{ data.name }}' ); ?> <a class="button button-primary hide-if-no-customize disabled" aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>" - ><?php _e( 'Live Preview' ); ?></a> + ><?php _e( 'Live preview' ); ?></a> <?php } ?> <?php } ?> @@ -1019,12 +1019,12 @@ function wp_theme_auto_update_setting_template() { <?php /* translators: %s: Theme name. */ - $live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' ); + $live_preview_aria_label = sprintf( _x( 'Live preview %s', 'theme' ), '{{ data.name }}' ); ?> <a class="button button-primary load-customize hide-if-no-customize" href="{{{ data.actions.customize }}}" aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>" - ><?php _e( 'Live Preview' ); ?></a> + ><?php _e( 'Live preview' ); ?></a> <# } else { #> <?php /* translators: %s: Theme name. */ @@ -1037,11 +1037,11 @@ function wp_theme_auto_update_setting_template() { <# if ( ! data.blockTheme ) { #> <?php /* translators: %s: Theme name. */ - $live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' ); + $live_preview_aria_label = sprintf( _x( 'Live preview %s', 'theme' ), '{{ data.name }}' ); ?> <a class="button button-primary hide-if-no-customize disabled" aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>" - ><?php _e( 'Live Preview' ); ?></a> + ><?php _e( 'Live preview' ); ?></a> <# } #> <# } #> <# } #> @@ -1156,7 +1156,7 @@ function wp_theme_auto_update_setting_template() { <# if ( data.hasUpdate ) { #> <# if ( data.updateResponse.compatibleWP && data.updateResponse.compatiblePHP ) { #> <div class="notice notice-warning notice-alt notice-large"> - <h3 class="notice-title"><?php _e( 'Update Available' ); ?></h3> + <h3 class="notice-title"><?php _e( 'Update available' ); ?></h3> {{{ data.update }}} </div> <# } else { #> @@ -1264,12 +1264,12 @@ function wp_theme_auto_update_setting_template() { <# if ( ! data.blockTheme ) { #> <?php /* translators: %s: Theme name. */ - $live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' ); + $live_preview_aria_label = sprintf( _x( 'Live preview %s', 'theme' ), '{{ data.name }}' ); ?> <a class="button button-primary load-customize hide-if-no-customize" href="{{{ data.actions.customize }}}" aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>" - ><?php _e( 'Live Preview' ); ?></a> + ><?php _e( 'Live preview' ); ?></a> <# } #> <# if ( data.actions.activate ) { #> @@ -1286,11 +1286,11 @@ function wp_theme_auto_update_setting_template() { <# if ( ! data.blockTheme ) { #> <?php /* translators: %s: Theme name. */ - $live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' ); + $live_preview_aria_label = sprintf( _x( 'Live preview %s', 'theme' ), '{{ data.name }}' ); ?> <a class="button button-primary hide-if-no-customize disabled" aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>" - ><?php _e( 'Live Preview' ); ?></a> + ><?php _e( 'Live preview' ); ?></a> <# } #> <# if ( data.actions.activate ) { #> diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index 82525a2f5f94a..f137bc2b736d4 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -498,7 +498,7 @@ function list_plugin_updates() { <thead> <tr> <td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td> - <td class="manage-column"><label for="plugins-select-all"><?php _e( 'Select All' ); ?></label></td> + <td class="manage-column"><label for="plugins-select-all"><?php _e( 'Select all' ); ?></label></td> </tr> </thead> @@ -622,7 +622,7 @@ function list_plugin_updates() { <tfoot> <tr> <td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td> - <td class="manage-column"><label for="plugins-select-all-2"><?php _e( 'Select All' ); ?></label></td> + <td class="manage-column"><label for="plugins-select-all-2"><?php _e( 'Select all' ); ?></label></td> </tr> </tfoot> </table> @@ -674,7 +674,7 @@ function list_theme_updates() { <thead> <tr> <td class="manage-column check-column"><input type="checkbox" id="themes-select-all" /></td> - <td class="manage-column"><label for="themes-select-all"><?php _e( 'Select All' ); ?></label></td> + <td class="manage-column"><label for="themes-select-all"><?php _e( 'Select all' ); ?></label></td> </tr> </thead> @@ -798,7 +798,7 @@ function list_theme_updates() { <tfoot> <tr> <td class="manage-column check-column"><input type="checkbox" id="themes-select-all-2" /></td> - <td class="manage-column"><label for="themes-select-all-2"><?php _e( 'Select All' ); ?></label></td> + <td class="manage-column"><label for="themes-select-all-2"><?php _e( 'Select all' ); ?></label></td> </tr> </tfoot> </table> diff --git a/src/wp-admin/update.php b/src/wp-admin/update.php index 090c37cfc4dfe..6cbe6cf690a80 100644 --- a/src/wp-admin/update.php +++ b/src/wp-admin/update.php @@ -161,7 +161,7 @@ $file_upload = new File_Upload_Upgrader( 'pluginzip', 'package' ); // Used in the HTML title tag. - $title = __( 'Upload Plugin' ); + $title = __( 'Upload plugin' ); $parent_file = 'plugins.php'; $submenu_file = 'plugin-install.php'; diff --git a/src/wp-admin/upload.php b/src/wp-admin/upload.php index 7c1cd8551d21c..a9c19925a0dc9 100644 --- a/src/wp-admin/upload.php +++ b/src/wp-admin/upload.php @@ -380,7 +380,7 @@ function () { '<p>' . __( 'Hovering over a row reveals action links that allow you to manage media items. You can perform the following actions:' ) . '</p>' . '<ul>' . '<li>' . __( '<strong>Edit</strong> takes you to a simple screen to edit that individual file’s metadata. You can also reach that screen by clicking on the media file name or thumbnail.' ) . '</li>' . - '<li>' . __( '<strong>Delete Permanently</strong> will delete the file from the media library (as well as from any posts to which it is currently attached).' ) . '</li>' . + '<li>' . __( '<strong>Delete permanently</strong> will delete the file from the media library (as well as from any posts to which it is currently attached).' ) . '</li>' . '<li>' . __( '<strong>View</strong> will take you to a public display page for that file.' ) . '</li>' . '<li>' . __( '<strong>Copy URL</strong> copies the URL for the media file to your clipboard.' ) . '</li>' . '<li>' . __( '<strong>Download file</strong> downloads the original media file to your device.' ) . '</li>' . diff --git a/src/wp-content/themes/twentyeleven/languages/twentyeleven.pot b/src/wp-content/themes/twentyeleven/languages/twentyeleven.pot index 6a392b67686f6..bebcb1d77ecfa 100644 --- a/src/wp-content/themes/twentyeleven/languages/twentyeleven.pot +++ b/src/wp-content/themes/twentyeleven/languages/twentyeleven.pot @@ -565,7 +565,7 @@ msgid "Number of posts to show:" msgstr "" #: search.php:18 -msgid "Search Results for: %s" +msgid "Search results for: %s" msgstr "" #: search.php:51 diff --git a/src/wp-content/themes/twentyeleven/search.php b/src/wp-content/themes/twentyeleven/search.php index f7902d35f0faa..c292beff75371 100644 --- a/src/wp-content/themes/twentyeleven/search.php +++ b/src/wp-content/themes/twentyeleven/search.php @@ -1,6 +1,6 @@ <?php /** - * Template for displaying Search Results pages + * Template for displaying Search results pages * * @package WordPress * @subpackage Twenty_Eleven @@ -18,7 +18,7 @@ <h1 class="page-title"> <?php /* translators: %s: Search query. */ - printf( __( 'Search Results for: %s', 'twentyeleven' ), '<span>' . get_search_query() . '</span>' ); + printf( __( 'Search results for: %s', 'twentyeleven' ), '<span>' . get_search_query() . '</span>' ); ?> </h1> </header> diff --git a/src/wp-content/themes/twentyfifteen/search.php b/src/wp-content/themes/twentyfifteen/search.php index 18355d351e426..facc31c66dce4 100644 --- a/src/wp-content/themes/twentyfifteen/search.php +++ b/src/wp-content/themes/twentyfifteen/search.php @@ -18,7 +18,7 @@ <h1 class="page-title"> <?php /* translators: %s: Search query. */ - printf( __( 'Search Results for: %s', 'twentyfifteen' ), get_search_query() ); + printf( __( 'Search results for: %s', 'twentyfifteen' ), get_search_query() ); ?> </h1> </header><!-- .page-header --> diff --git a/src/wp-content/themes/twentyfourteen/search.php b/src/wp-content/themes/twentyfourteen/search.php index 80dc4d1e22549..55dd9a0bd4102 100644 --- a/src/wp-content/themes/twentyfourteen/search.php +++ b/src/wp-content/themes/twentyfourteen/search.php @@ -1,6 +1,6 @@ <?php /** - * The template for displaying Search Results pages + * The template for displaying Search results pages * * @package WordPress * @subpackage Twenty_Fourteen @@ -18,7 +18,7 @@ <h1 class="page-title"> <?php /* translators: %s: Search query. */ - printf( __( 'Search Results for: %s', 'twentyfourteen' ), get_search_query() ); + printf( __( 'Search results for: %s', 'twentyfourteen' ), get_search_query() ); ?> </h1> </header><!-- .page-header --> diff --git a/src/wp-content/themes/twentyseventeen/search.php b/src/wp-content/themes/twentyseventeen/search.php index 5bf77c009cf6d..65f9eb27d0dcc 100644 --- a/src/wp-content/themes/twentyseventeen/search.php +++ b/src/wp-content/themes/twentyseventeen/search.php @@ -19,7 +19,7 @@ <h1 class="page-title"> <?php /* translators: Search query. */ - printf( __( 'Search Results for: %s', 'twentyseventeen' ), '<span>' . get_search_query() . '</span>' ); + printf( __( 'Search results for: %s', 'twentyseventeen' ), '<span>' . get_search_query() . '</span>' ); ?> </h1> <?php else : ?> diff --git a/src/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php b/src/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php index d16dc4490f0a2..dc0db3a21773b 100644 --- a/src/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php +++ b/src/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php @@ -2,7 +2,7 @@ /** * Template part for displaying posts with excerpts * - * Used in Search Results and for Recent Posts in Front Page panels. + * Used in Search results and for Recent Posts in Front Page panels. * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * diff --git a/src/wp-content/themes/twentysixteen/search.php b/src/wp-content/themes/twentysixteen/search.php index afc4a90623829..3b596d0b2f5c4 100644 --- a/src/wp-content/themes/twentysixteen/search.php +++ b/src/wp-content/themes/twentysixteen/search.php @@ -18,7 +18,7 @@ <h1 class="page-title"> <?php /* translators: %s: The search query. */ - printf( __( 'Search Results for: %s', 'twentysixteen' ), '<span>' . esc_html( get_search_query() ) . '</span>' ); + printf( __( 'Search results for: %s', 'twentysixteen' ), '<span>' . esc_html( get_search_query() ) . '</span>' ); ?> </h1> </header><!-- .page-header --> diff --git a/src/wp-content/themes/twentyten/languages/twentyten.pot b/src/wp-content/themes/twentyten/languages/twentyten.pot index 8b5abd14ab8c5..500f9c67536ef 100644 --- a/src/wp-content/themes/twentyten/languages/twentyten.pot +++ b/src/wp-content/themes/twentyten/languages/twentyten.pot @@ -376,7 +376,7 @@ msgid "<span class=\"%1$s\">Tagged</span> %2$s" msgstr "" #: search.php:16 -msgid "Search Results for: %s" +msgid "Search results for: %s" msgstr "" #: search.php:27 diff --git a/src/wp-content/themes/twentyten/search.php b/src/wp-content/themes/twentyten/search.php index 8e69824d11375..0689b8565ceb0 100644 --- a/src/wp-content/themes/twentyten/search.php +++ b/src/wp-content/themes/twentyten/search.php @@ -1,6 +1,6 @@ <?php /** - * Template for displaying Search Results pages + * Template for displaying Search results pages * * @package WordPress * @subpackage Twenty_Ten @@ -16,7 +16,7 @@ <h1 class="page-title"> <?php /* translators: %s: Search query. */ - printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' ); + printf( __( 'Search results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' ); ?> </h1> <?php diff --git a/src/wp-content/themes/twentythirteen/rtl.css b/src/wp-content/themes/twentythirteen/rtl.css index b815ea9533768..3acd58b4bdebc 100644 --- a/src/wp-content/themes/twentythirteen/rtl.css +++ b/src/wp-content/themes/twentythirteen/rtl.css @@ -22,7 +22,7 @@ See https://codex.wordpress.org/Right_to_Left_Language_Support * 5.7 - Post/Paging Navigation * 5.8 - Author Bio * 5.9 - Archives - * 5.10 - Search Results/No posts + * 5.10 - Search results/No posts * 5.12 - Comments * 6.0 - Sidebar * 6.1 - Widgets @@ -422,7 +422,7 @@ div.nav-menu > ul { /** - * 5.10 Search Results/No posts + * 5.10 Search results/No posts * ---------------------------------------------------------------------------- */ diff --git a/src/wp-content/themes/twentythirteen/search.php b/src/wp-content/themes/twentythirteen/search.php index a94d48a2c9557..a799ef102cb4d 100644 --- a/src/wp-content/themes/twentythirteen/search.php +++ b/src/wp-content/themes/twentythirteen/search.php @@ -1,6 +1,6 @@ <?php /** - * The template for displaying Search Results pages + * The template for displaying Search results pages * * @package WordPress * @subpackage Twenty_Thirteen @@ -18,7 +18,7 @@ <h1 class="page-title"> <?php /* translators: %s: Search query. */ - printf( __( 'Search Results for: %s', 'twentythirteen' ), get_search_query() ); + printf( __( 'Search results for: %s', 'twentythirteen' ), get_search_query() ); ?> </h1> </header> diff --git a/src/wp-content/themes/twentythirteen/style.css b/src/wp-content/themes/twentythirteen/style.css index 704f4a41cb4cc..e3cb7c18e6aa0 100644 --- a/src/wp-content/themes/twentythirteen/style.css +++ b/src/wp-content/themes/twentythirteen/style.css @@ -37,7 +37,7 @@ Use it to make something cool, have fun, and share what you've learned with othe * 5.7 - Post/Paging Navigation * 5.8 - Author Bio * 5.9 - Archives - * 5.10 - Search Results/No posts + * 5.10 - Search results/No posts * 5.11 - 404 * 5.12 - Comments * 5.13 - Multisite @@ -2097,7 +2097,7 @@ footer.entry-meta { /** - * 5.10 Search Results/No posts + * 5.10 Search results/No posts * ---------------------------------------------------------------------------- */ diff --git a/src/wp-content/themes/twentytwelve/search.php b/src/wp-content/themes/twentytwelve/search.php index 99acfe403467c..df65119af1f46 100644 --- a/src/wp-content/themes/twentytwelve/search.php +++ b/src/wp-content/themes/twentytwelve/search.php @@ -1,6 +1,6 @@ <?php /** - * The template for displaying Search Results pages + * The template for displaying Search results pages * * @package WordPress * @subpackage Twenty_Twelve @@ -18,7 +18,7 @@ <h1 class="page-title"> <?php /* translators: %s: Search query. */ - printf( __( 'Search Results for: %s', 'twentytwelve' ), '<span>' . get_search_query() . '</span>' ); + printf( __( 'Search results for: %s', 'twentytwelve' ), '<span>' . get_search_query() . '</span>' ); ?> </h1> </header> diff --git a/src/wp-content/themes/twentytwenty/style-rtl.css b/src/wp-content/themes/twentytwenty/style-rtl.css index abbe9bdc82fce..3aa6bcc3cf91e 100644 --- a/src/wp-content/themes/twentytwenty/style-rtl.css +++ b/src/wp-content/themes/twentytwenty/style-rtl.css @@ -2383,7 +2383,7 @@ body:not(.singular) main > article:first-of-type { } -/* Search Results ---------------------------- */ +/* Search results ---------------------------- */ .no-search-results-form { padding-top: 5rem; diff --git a/src/wp-content/themes/twentytwenty/style.css b/src/wp-content/themes/twentytwenty/style.css index 9377c75410378..822f8ad5695f5 100644 --- a/src/wp-content/themes/twentytwenty/style.css +++ b/src/wp-content/themes/twentytwenty/style.css @@ -2399,7 +2399,7 @@ body:not(.singular) main > article:first-of-type { } -/* Search Results ---------------------------- */ +/* Search results ---------------------------- */ .no-search-results-form { padding-top: 5rem; diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index 51c88ef5fcf81..edf38cd1fd06c 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/wp-includes/class-wp-customize-manager.php @@ -4591,7 +4591,7 @@ public function get_document_title_template() { $document_title_tmpl = __( 'Customize: %s' ); } else { /* translators: %s: Document title from the preview. */ - $document_title_tmpl = __( 'Live Preview: %s' ); + $document_title_tmpl = __( 'Live preview: %s' ); } $document_title_tmpl = html_entity_decode( $document_title_tmpl, ENT_QUOTES, 'UTF-8' ); // Because exported to JS and assigned to document.title. return $document_title_tmpl; diff --git a/src/wp-includes/customize/class-wp-customize-theme-control.php b/src/wp-includes/customize/class-wp-customize-theme-control.php index 81c36dd421c49..77f379bfc2a05 100644 --- a/src/wp-includes/customize/class-wp-customize-theme-control.php +++ b/src/wp-includes/customize/class-wp-customize-theme-control.php @@ -288,9 +288,9 @@ public function content_template() { <h3 class="theme-name" id="{{ data.section }}-{{ data.theme.id }}-name">{{ data.theme.name }}</h3> <div class="theme-actions"> <# if ( data.theme.compatibleWP && data.theme.compatiblePHP ) { #> - <button type="button" class="button button-primary preview-theme" aria-label="<?php echo esc_attr( $preview_label ); ?>" data-slug="{{ data.theme.id }}"><?php _e( 'Live Preview' ); ?></button> + <button type="button" class="button button-primary preview-theme" aria-label="<?php echo esc_attr( $preview_label ); ?>" data-slug="{{ data.theme.id }}"><?php _e( 'Live preview' ); ?></button> <# } else { #> - <button type="button" class="button button-primary disabled" aria-label="<?php echo esc_attr( $preview_label ); ?>"><?php _e( 'Live Preview' ); ?></button> + <button type="button" class="button button-primary disabled" aria-label="<?php echo esc_attr( $preview_label ); ?>"><?php _e( 'Live preview' ); ?></button> <# } #> </div> </div> diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 3a965a2d3da52..84412e2234897 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -1203,7 +1203,7 @@ function wp_get_document_title() { // If it's a search, use a dynamic search results title. } elseif ( is_search() ) { /* translators: %s: Search query. */ - $title['title'] = sprintf( __( 'Search Results for “%s”' ), get_search_query() ); + $title['title'] = sprintf( __( 'Search results for “%s”' ), get_search_query() ); // If on the front page, use the site title. } elseif ( is_front_page() ) { @@ -1416,7 +1416,7 @@ function wp_title( $sep = '»', $display = true, $seplocation = '' ) { // If it's a search. if ( is_search() ) { /* translators: 1: Separator, 2: Search query. */ - $title = sprintf( __( 'Search Results %1$s %2$s' ), $t_sep, strip_tags( $search ) ); + $title = sprintf( __( 'Search results %1$s %2$s' ), $t_sep, strip_tags( $search ) ); } // If it's a 404 page. @@ -3311,7 +3311,7 @@ function feed_links_extra( $args = array() ) { /* translators: 1: Site name, 2: Separator (raquo), 3: Author name. */ 'authortitle' => __( '%1$s %2$s Posts by %3$s Feed' ), /* translators: 1: Site name, 2: Separator (raquo), 3: Search query. */ - 'searchtitle' => __( '%1$s %2$s Search Results for “%3$s” Feed' ), + 'searchtitle' => __( '%1$s %2$s Search results for “%3$s” Feed' ), /* translators: 1: Site name, 2: Separator (raquo), 3: Post type name. */ 'posttypetitle' => __( '%1$s %2$s %3$s Feed' ), ); diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 62960a6b0f85d..cbe68ebe48f7f 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -1301,7 +1301,7 @@ function get_post_status( $post = null ) { function get_post_statuses() { $status = array( 'draft' => __( 'Draft' ), - 'pending' => __( 'Pending Review' ), + 'pending' => __( 'Pending review' ), 'private' => __( 'Private' ), 'publish' => __( 'Published' ), ); diff --git a/src/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php b/src/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php index 1bf10327b2ffc..52ebcab8717a9 100644 --- a/src/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php +++ b/src/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php @@ -60,7 +60,7 @@ public function get_sitemap_stylesheet() { $lang = get_language_attributes( 'html' ); $url = esc_xml( __( 'URL' ) ); - $lastmod = esc_xml( __( 'Last Modified' ) ); + $lastmod = esc_xml( __( 'Last modified' ) ); $changefreq = esc_xml( __( 'Change Frequency' ) ); $priority = esc_xml( __( 'Priority' ) ); @@ -174,7 +174,7 @@ public function get_sitemap_index_stylesheet() { $lang = get_language_attributes( 'html' ); $url = esc_xml( __( 'URL' ) ); - $lastmod = esc_xml( __( 'Last Modified' ) ); + $lastmod = esc_xml( __( 'Last modified' ) ); $xsl_content = <<<XSL <?xml version="1.0" encoding="UTF-8"?> diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php index 1e15b4b0ce6d2..e693bef715c66 100644 --- a/src/wp-includes/user.php +++ b/src/wp-includes/user.php @@ -4767,7 +4767,7 @@ function wp_user_request_action_description( $action_name ) { $description = __( 'Export Personal Data' ); break; case 'remove_personal_data': - $description = __( 'Erase Personal Data' ); + $description = __( 'Erase personal data' ); break; default: /* translators: %s: Action name. */ diff --git a/tests/phpunit/tests/admin/wpPluginsListTable.php b/tests/phpunit/tests/admin/wpPluginsListTable.php index af44861324267..3a29713bfb127 100644 --- a/tests/phpunit/tests/admin/wpPluginsListTable.php +++ b/tests/phpunit/tests/admin/wpPluginsListTable.php @@ -104,14 +104,14 @@ public function test_get_views_should_return_views_by_default() { $expected = array( 'all' => '<a href="plugins.php?plugin_status=all" class="current" aria-current="page">All <span class="count">(45)</span></a>', 'active' => '<a href="plugins.php?plugin_status=active">Active <span class="count">(1)</span></a>', - 'recently_activated' => '<a href="plugins.php?plugin_status=recently_activated">Recently Active <span class="count">(2)</span></a>', + 'recently_activated' => '<a href="plugins.php?plugin_status=recently_activated">Recently active <span class="count">(2)</span></a>', 'inactive' => '<a href="plugins.php?plugin_status=inactive">Inactive <span class="count">(3)</span></a>', - 'mustuse' => '<a href="plugins.php?plugin_status=mustuse">Must-Use <span class="count">(4)</span></a>', + 'mustuse' => '<a href="plugins.php?plugin_status=mustuse">Must-use <span class="count">(4)</span></a>', 'dropins' => '<a href="plugins.php?plugin_status=dropins">Drop-ins <span class="count">(5)</span></a>', 'paused' => '<a href="plugins.php?plugin_status=paused">Paused <span class="count">(6)</span></a>', - 'upgrade' => '<a href="plugins.php?plugin_status=upgrade">Update Available <span class="count">(7)</span></a>', - 'auto-update-enabled' => '<a href="plugins.php?plugin_status=auto-update-enabled">Auto-updates Enabled <span class="count">(8)</span></a>', - 'auto-update-disabled' => '<a href="plugins.php?plugin_status=auto-update-disabled">Auto-updates Disabled <span class="count">(9)</span></a>', + 'upgrade' => '<a href="plugins.php?plugin_status=upgrade">Update available <span class="count">(7)</span></a>', + 'auto-update-enabled' => '<a href="plugins.php?plugin_status=auto-update-enabled">Auto-updates enabled <span class="count">(8)</span></a>', + 'auto-update-disabled' => '<a href="plugins.php?plugin_status=auto-update-disabled">Auto-updates disabled <span class="count">(9)</span></a>', ); $actual = $this->table->get_views(); diff --git a/tests/phpunit/tests/general/feedLinksExtra.php b/tests/phpunit/tests/general/feedLinksExtra.php index 2711b338e10d5..b24437caac55a 100644 --- a/tests/phpunit/tests/general/feedLinksExtra.php +++ b/tests/phpunit/tests/general/feedLinksExtra.php @@ -369,11 +369,11 @@ public function data_feed_links_extra() { ), ), 'search results' => array( - 'title' => 'Test Blog » Search Results for “Search” Feed', + 'title' => 'Test Blog » Search results for “Search” Feed', 'type' => 'search', ), 'search results and a custom separator' => array( - 'title' => 'Test Blog // Search Results for “Search” Feed', + 'title' => 'Test Blog // Search results for “Search” Feed', 'type' => 'search', 'args' => array( 'separator' => '//', diff --git a/tests/phpunit/tests/general/wpGetDocumentTitle.php b/tests/phpunit/tests/general/wpGetDocumentTitle.php index b12990fd5c665..43161cb64bd3f 100644 --- a/tests/phpunit/tests/general/wpGetDocumentTitle.php +++ b/tests/phpunit/tests/general/wpGetDocumentTitle.php @@ -184,7 +184,7 @@ public function test_category_title() { public function test_search_title() { $this->go_to( '?s=test_title' ); - $this->assertSame( sprintf( 'Search Results for “test_title” – %s', $this->blog_name ), wp_get_document_title() ); + $this->assertSame( sprintf( 'Search results for “test_title” – %s', $this->blog_name ), wp_get_document_title() ); } public function test_author_title() { diff --git a/tests/phpunit/tests/multisite/wpMsThemesListTable.php b/tests/phpunit/tests/multisite/wpMsThemesListTable.php index d53cd0117a9ca..12d3a8b0898df 100644 --- a/tests/phpunit/tests/multisite/wpMsThemesListTable.php +++ b/tests/phpunit/tests/multisite/wpMsThemesListTable.php @@ -111,10 +111,10 @@ public function test_get_views_should_return_views_by_default() { 'all' => '<a href="themes.php?theme_status=all" class="current" aria-current="page">All <span class="count">(21)</span></a>', 'enabled' => '<a href="themes.php?theme_status=enabled">Enabled <span class="count">(1)</span></a>', 'disabled' => '<a href="themes.php?theme_status=disabled">Disabled <span class="count">(2)</span></a>', - 'upgrade' => '<a href="themes.php?theme_status=upgrade">Update Available <span class="count">(3)</span></a>', + 'upgrade' => '<a href="themes.php?theme_status=upgrade">Update available <span class="count">(3)</span></a>', 'broken' => '<a href="themes.php?theme_status=broken">Broken <span class="count">(4)</span></a>', - 'auto-update-enabled' => '<a href="themes.php?theme_status=auto-update-enabled">Auto-updates Enabled <span class="count">(5)</span></a>', - 'auto-update-disabled' => '<a href="themes.php?theme_status=auto-update-disabled">Auto-updates Disabled <span class="count">(6)</span></a>', + 'auto-update-enabled' => '<a href="themes.php?theme_status=auto-update-enabled">Auto-updates enabled <span class="count">(5)</span></a>', + 'auto-update-disabled' => '<a href="themes.php?theme_status=auto-update-disabled">Auto-updates disabled <span class="count">(6)</span></a>', ); $actual = $this->table->get_views(); diff --git a/tests/phpunit/tests/user/wpSendUserRequest.php b/tests/phpunit/tests/user/wpSendUserRequest.php index 11e3130f225a5..e459fdc25bf65 100644 --- a/tests/phpunit/tests/user/wpSendUserRequest.php +++ b/tests/phpunit/tests/user/wpSendUserRequest.php @@ -121,9 +121,9 @@ public function test_should_send_user_request_erase_email_when_requester_registe $this->assertTrue( $result ); $this->assertSame( self::$test_user->user_email, $mailer->get_recipient( 'to' )->address ); - $this->assertStringContainsString( 'Confirm Action: Erase Personal Data', $mailer->get_sent()->subject ); + $this->assertStringContainsString( 'Confirm Action: Erase personal data', $mailer->get_sent()->subject ); $this->assertStringContainsString( 'action=confirmaction&request_id=', $mailer->get_sent()->body ); - $this->assertStringContainsString( 'Erase Personal Data', $mailer->get_sent()->body ); + $this->assertStringContainsString( 'Erase personal data', $mailer->get_sent()->body ); } /** @@ -157,9 +157,9 @@ public function test_should_send_user_request_erase_email_when_user_not_register $this->assertTrue( $result ); $this->assertSame( self::$test_user->user_email, $mailer->get_recipient( 'to' )->address ); - $this->assertStringContainsString( 'Confirm Action: Erase Personal Data', $mailer->get_sent()->subject ); + $this->assertStringContainsString( 'Confirm Action: Erase personal data', $mailer->get_sent()->subject ); $this->assertStringContainsString( 'action=confirmaction&request_id=', $mailer->get_sent()->body ); - $this->assertStringContainsString( 'Erase Personal Data', $mailer->get_sent()->body ); + $this->assertStringContainsString( 'Erase personal data', $mailer->get_sent()->body ); } /**