Administration: Replace contracted verb forms for better consistency.

This changeset replaces contracted verb forms like `doesn't`, `can't`, or `isn't` with non-contracted forms like `does not`, `cannot`, or `is not`, for better consistency across the WordPress administration. It also updates some corresponding unit tests strings.

Props Presskopp, socalchristina, aandrewdixon, francina, SergeyBiryukov, JeffPaul, audrasjb, hellofromTonya.
Fixes #38913.
See #39176.

Built from https://develop.svn.wordpress.org/trunk@52978


git-svn-id: http://core.svn.wordpress.org/trunk@52567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2022-03-22 16:25:03 +00:00
parent 6f5f187574
commit 223cda987f
70 changed files with 192 additions and 192 deletions

View File

@ -13,7 +13,7 @@
<p style="text-align: center">Semantic Personal Publishing Platform</p> <p style="text-align: center">Semantic Personal Publishing Platform</p>
<h2>First Things First</h2> <h2>First Things First</h2>
<p>Welcome. WordPress is a very special project to me. Every developer and contributor adds something unique to the mix, and together we create something beautiful that I&#8217;m proud to be a part of. Thousands of hours have gone into WordPress, and we&#8217;re dedicated to making it better every day. Thank you for making it part of your world.</p> <p>Welcome. WordPress is a very special project to me. Every developer and contributor adds something unique to the mix, and together we create something beautiful that I am proud to be a part of. Thousands of hours have gone into WordPress, and we are dedicated to making it better every day. Thank you for making it part of your world.</p>
<p style="text-align: right">&#8212; Matt Mullenweg</p> <p style="text-align: right">&#8212; Matt Mullenweg</p>
<h2>Installation: Famous 5-minute install</h2> <h2>Installation: Famous 5-minute install</h2>
@ -21,7 +21,7 @@
<li>Unzip the package in an empty directory and upload everything.</li> <li>Unzip the package in an empty directory and upload everything.</li>
<li>Open <span class="file"><a href="wp-admin/install.php">wp-admin/install.php</a></span> in your browser. It will take you through the process to set up a <code>wp-config.php</code> file with your database connection details. <li>Open <span class="file"><a href="wp-admin/install.php">wp-admin/install.php</a></span> in your browser. It will take you through the process to set up a <code>wp-config.php</code> file with your database connection details.
<ol> <ol>
<li>If for some reason this doesn&#8217;t work, don&#8217;t worry. It doesn&#8217;t work on all web hosts. Open up <code>wp-config-sample.php</code> with a text editor like WordPad or similar and fill in your database connection details.</li> <li>If for some reason this does not work, do not worry. It does not work on all web hosts. Open up <code>wp-config-sample.php</code> with a text editor like WordPad or similar and fill in your database connection details.</li>
<li>Save the file as <code>wp-config.php</code> and upload it.</li> <li>Save the file as <code>wp-config.php</code> and upload it.</li>
<li>Open <span class="file"><a href="wp-admin/install.php">wp-admin/install.php</a></span> in your browser.</li> <li>Open <span class="file"><a href="wp-admin/install.php">wp-admin/install.php</a></span> in your browser.</li>
</ol> </ol>
@ -65,7 +65,7 @@
</ul> </ul>
<h2>Online Resources</h2> <h2>Online Resources</h2>
<p>If you have any questions that aren&#8217;t addressed in this document, please take advantage of WordPress&#8217; numerous online resources:</p> <p>If you have any questions that are not addressed in this document, please take advantage of WordPress&#8217; numerous online resources:</p>
<dl> <dl>
<dt><a href="https://codex.wordpress.org/">The WordPress Codex</a></dt> <dt><a href="https://codex.wordpress.org/">The WordPress Codex</a></dt>
<dd>The Codex is the encyclopedia of all things WordPress. It is the most comprehensive source of information for WordPress available.</dd> <dd>The Codex is the encyclopedia of all things WordPress. It is the most comprehensive source of information for WordPress available.</dd>
@ -74,7 +74,7 @@
<dt><a href="https://planet.wordpress.org/">WordPress Planet</a></dt> <dt><a href="https://planet.wordpress.org/">WordPress Planet</a></dt>
<dd>The WordPress Planet is a news aggregator that brings together posts from WordPress blogs around the web.</dd> <dd>The WordPress Planet is a news aggregator that brings together posts from WordPress blogs around the web.</dd>
<dt><a href="https://wordpress.org/support/forums/">WordPress Support Forums</a></dt> <dt><a href="https://wordpress.org/support/forums/">WordPress Support Forums</a></dt>
<dd>If you&#8217;ve looked everywhere and still can&#8217;t find an answer, the support forums are very active and have a large community ready to help. To help them help you be sure to use a descriptive thread title and describe your question in as much detail as possible.</dd> <dd>If you&#8217;ve looked everywhere and still cannot find an answer, the support forums are very active and have a large community ready to help. To help them help you be sure to use a descriptive thread title and describe your question in as much detail as possible.</dd>
<dt><a href="https://make.wordpress.org/support/handbook/appendix/other-support-locations/introduction-to-irc/">WordPress <abbr>IRC</abbr> (Internet Relay Chat) Channel</a></dt> <dt><a href="https://make.wordpress.org/support/handbook/appendix/other-support-locations/introduction-to-irc/">WordPress <abbr>IRC</abbr> (Internet Relay Chat) Channel</a></dt>
<dd>There is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (<a href="https://web.libera.chat/#wordpress">irc.libera.chat #wordpress</a>)</dd> <dd>There is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (<a href="https://web.libera.chat/#wordpress">irc.libera.chat #wordpress</a>)</dd>
</dl> </dl>

View File

@ -43,7 +43,7 @@ if ( isset( $_REQUEST['c'] ) ) {
// Prevent actions on a comment associated with a trashed post. // Prevent actions on a comment associated with a trashed post.
if ( $comment && 'trash' === get_post_status( $comment->comment_post_ID ) ) { if ( $comment && 'trash' === get_post_status( $comment->comment_post_ID ) ) {
wp_die( wp_die(
__( 'You can&#8217;t edit this comment because the associated post is in the Trash. Please restore the post first, then try again.' ) __( 'You cannot edit this comment because the associated post is in the Trash. Please restore the post first, then try again.' )
); );
} }
} else { } else {

View File

@ -297,7 +297,7 @@ if ( 'post' === $post_type ) {
$title_and_editor .= '<p>' . __( 'You can enable distraction-free writing mode using the icon to the right. This feature is not available for old browsers or devices with small screens, and requires that the full-height editor be enabled in Screen Options.' ) . '</p>'; $title_and_editor .= '<p>' . __( 'You can enable distraction-free writing mode using the icon to the right. This feature is not available for old browsers or devices with small screens, and requires that the full-height editor be enabled in Screen Options.' ) . '</p>';
$title_and_editor .= '<p>' . sprintf( $title_and_editor .= '<p>' . sprintf(
/* translators: %s: Alt + F10 */ /* translators: %s: Alt + F10 */
__( 'Keyboard users: When you&#8217;re working in the visual editor, you can use %s to access the toolbar.' ), __( 'Keyboard users: When you are working in the visual editor, you can use %s to access the toolbar.' ),
'<kbd>Alt + F10</kbd>' '<kbd>Alt + F10</kbd>'
) . '</p>'; ) . '</p>';
@ -447,8 +447,8 @@ if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create
<div id="message" class="updated notice notice-success is-dismissible"><p><?php echo $message; ?></p></div> <div id="message" class="updated notice notice-success is-dismissible"><p><?php echo $message; ?></p></div>
<?php endif; ?> <?php endif; ?>
<div id="lost-connection-notice" class="error hidden"> <div id="lost-connection-notice" class="error hidden">
<p><span class="spinner"></span> <?php _e( '<strong>Connection lost.</strong> Saving has been disabled until you&#8217;re reconnected.' ); ?> <p><span class="spinner"></span> <?php _e( '<strong>Connection lost.</strong> Saving has been disabled until you are reconnected.' ); ?>
<span class="hide-if-no-sessionstorage"><?php _e( 'We&#8217;re backing up this post in your browser, just in case.' ); ?></span> <span class="hide-if-no-sessionstorage"><?php _e( 'We are backing up this post in your browser, just in case.' ); ?></span>
</p> </p>
</div> </div>
<form name="post" action="post.php" method="post" id="post" <form name="post" action="post.php" method="post" id="post"

View File

@ -66,7 +66,7 @@ get_current_screen()->add_help_tab(
'title' => __( 'Overview' ), 'title' => __( 'Overview' ),
'content' => 'content' =>
'<p>' . __( 'You can add or edit links on this screen by entering information in each of the boxes. Only the link&#8217;s web address and name (the text you want to display on your site as the link) are required fields.' ) . '</p>' . '<p>' . __( 'You can add or edit links on this screen by entering information in each of the boxes. Only the link&#8217;s web address and name (the text you want to display on your site as the link) are required fields.' ) . '</p>' .
'<p>' . __( 'The boxes for link name, web address, and description have fixed positions, while the others may be repositioned using drag and drop. You can also hide boxes you don&#8217;t use in the Screen Options tab, or minimize boxes by clicking on the title bar of the box.' ) . '</p>' . '<p>' . __( 'The boxes for link name, web address, and description have fixed positions, while the others may be repositioned using drag and drop. You can also hide boxes you do not use in the Screen Options tab, or minimize boxes by clicking on the title bar of the box.' ) . '</p>' .
'<p>' . __( 'XFN stands for <a href="https://gmpg.org/xfn/">XHTML Friends Network</a>, which is optional. WordPress allows the generation of XFN attributes to show how you are related to the authors/owners of the site to which you are linking.' ) . '</p>', '<p>' . __( 'XFN stands for <a href="https://gmpg.org/xfn/">XHTML Friends Network</a>, which is optional. WordPress allows the generation of XFN attributes to show how you are related to the authors/owners of the site to which you are linking.' ) . '</p>',
) )
); );
@ -122,7 +122,7 @@ wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
<h2 class="postbox-header"><label for="link_url"><?php _e( 'Web Address' ); ?></label></h2> <h2 class="postbox-header"><label for="link_url"><?php _e( 'Web Address' ); ?></label></h2>
<div class="inside"> <div class="inside">
<input type="text" name="link_url" size="30" maxlength="255" class="code" value="<?php echo esc_attr( $link->link_url ); ?>" id="link_url" /> <input type="text" name="link_url" size="30" maxlength="255" class="code" value="<?php echo esc_attr( $link->link_url ); ?>" id="link_url" />
<p><?php _e( 'Example: <code>https://wordpress.org/</code> &#8212; don&#8217;t forget the <code>https://</code>' ); ?></p> <p><?php _e( 'Example: <code>https://wordpress.org/</code> &#8212; do not forget the <code>https://</code>' ); ?></p>
</div> </div>
</div> </div>

View File

@ -157,7 +157,7 @@ switch ( $wp_list_table->current_action() ) {
$term = get_term( $term_id ); $term = get_term( $term_id );
if ( ! $term instanceof WP_Term ) { if ( ! $term instanceof WP_Term ) {
wp_die( __( 'You attempted to edit an item that doesn&#8217;t exist. Perhaps it was deleted?' ) ); wp_die( __( 'You attempted to edit an item that does not exist. Perhaps it was deleted?' ) );
} }
wp_redirect( esc_url_raw( get_edit_term_link( $term_id, $taxonomy, $post_type ) ) ); wp_redirect( esc_url_raw( get_edit_term_link( $term_id, $taxonomy, $post_type ) ) );
@ -177,7 +177,7 @@ switch ( $wp_list_table->current_action() ) {
$tag = get_term( $tag_ID, $taxonomy ); $tag = get_term( $tag_ID, $taxonomy );
if ( ! $tag ) { if ( ! $tag ) {
wp_die( __( 'You attempted to edit an item that doesn&#8217;t exist. Perhaps it was deleted?' ) ); wp_die( __( 'You attempted to edit an item that does not exist. Perhaps it was deleted?' ) );
} }
$ret = wp_update_term( $tag_ID, $taxonomy, $_POST ); $ret = wp_update_term( $tag_ID, $taxonomy, $_POST );
@ -253,7 +253,7 @@ if ( 'category' === $taxonomy || 'link_category' === $taxonomy || 'post_tag' ===
} elseif ( 'link_category' === $taxonomy ) { } elseif ( 'link_category' === $taxonomy ) {
$help = '<p>' . __( 'You can create groups of links by using Link Categories. Link Category names must be unique and Link Categories are separate from the categories you use for posts.' ) . '</p>'; $help = '<p>' . __( 'You can create groups of links by using Link Categories. Link Category names must be unique and Link Categories are separate from the categories you use for posts.' ) . '</p>';
} else { } else {
$help = '<p>' . __( 'You can assign keywords to your posts using <strong>tags</strong>. Unlike categories, tags have no hierarchy, meaning there&#8217;s no relationship from one tag to another.' ) . '</p>'; $help = '<p>' . __( 'You can assign keywords to your posts using <strong>tags</strong>. Unlike categories, tags have no hierarchy, meaning there is no relationship from one tag to another.' ) . '</p>';
} }
if ( 'link_category' === $taxonomy ) { if ( 'link_category' === $taxonomy ) {

View File

@ -84,7 +84,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<?php <?php
printf( printf(
/* translators: %s: https://wordpressfoundation.org/trademark-policy/ */ /* translators: %s: https://wordpressfoundation.org/trademark-policy/ */
__( 'WordPress grows when people like you tell their friends about it, and the thousands of businesses and services that are built on and around WordPress share that fact with their users. We&#8217;re flattered every time someone spreads the good word, just make sure to <a href="%s">check out our trademark guidelines</a> first.' ), __( 'WordPress grows when people like you tell their friends about it, and the thousands of businesses and services that are built on and around WordPress share that fact with their users. We are flattered every time someone spreads the good word, just make sure to <a href="%s">check out our trademark guidelines</a> first.' ),
'https://wordpressfoundation.org/trademark-policy/' 'https://wordpressfoundation.org/trademark-policy/'
); );
?> ?>
@ -96,7 +96,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
$themes_url = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' ); $themes_url = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
printf( printf(
/* translators: 1: URL to Plugins screen, 2: URL to Themes screen, 3: https://wordpress.org/about/license/ */ /* translators: 1: URL to Plugins screen, 2: URL to Themes screen, 3: https://wordpress.org/about/license/ */
__( 'Every plugin and theme in WordPress.org&#8217;s directory is 100%% GPL or a similarly free and compatible license, so you can feel safe finding <a href="%1$s">plugins</a> and <a href="%2$s">themes</a> there. If you get a plugin or theme from another source, make sure to <a href="%3$s">ask them if it&#8217;s GPL</a> first. If they don&#8217;t respect the WordPress license, we don&#8217;t recommend them.' ), __( 'Every plugin and theme in WordPress.org&#8217;s directory is 100%% GPL or a similarly free and compatible license, so you can feel safe finding <a href="%1$s">plugins</a> and <a href="%2$s">themes</a> there. If you get a plugin or theme from another source, make sure to <a href="%3$s">ask them if it&#8217;s GPL</a> first. If they do not respect the WordPress license, we do not recommend them.' ),
$plugins_url, $plugins_url,
$themes_url, $themes_url,
__( 'https://wordpress.org/about/license/' ) __( 'https://wordpress.org/about/license/' )

View File

@ -1281,7 +1281,7 @@ function wp_ajax_replyto_comment( $action ) {
if ( empty( $post->post_status ) ) { if ( empty( $post->post_status ) ) {
wp_die( 1 ); wp_die( 1 );
} elseif ( in_array( $post->post_status, array( 'draft', 'pending', 'trash' ), true ) ) { } elseif ( in_array( $post->post_status, array( 'draft', 'pending', 'trash' ), true ) ) {
wp_die( __( 'Error: You can&#8217;t reply to a comment on a draft post.' ) ); wp_die( __( 'Error: You cannot reply to a comment on a draft post.' ) );
} }
$user = wp_get_current_user(); $user = wp_get_current_user();

View File

@ -90,7 +90,7 @@ class Custom_Background {
'<p>' . __( 'You can customize the look of your site without touching any of your theme&#8217;s code by using a custom background. Your background can be an image or a color.' ) . '</p>' . '<p>' . __( 'You can customize the look of your site without touching any of your theme&#8217;s code by using a custom background. Your background can be an image or a color.' ) . '</p>' .
'<p>' . __( 'To use a background image, simply upload it or choose an image that has already been uploaded to your Media Library by clicking the &#8220;Choose Image&#8221; button. You can display a single instance of your image, or tile it to fill the screen. You can have your background fixed in place, so your site content moves on top of it, or you can have it scroll with your site.' ) . '</p>' . '<p>' . __( 'To use a background image, simply upload it or choose an image that has already been uploaded to your Media Library by clicking the &#8220;Choose Image&#8221; button. You can display a single instance of your image, or tile it to fill the screen. You can have your background fixed in place, so your site content moves on top of it, or you can have it scroll with your site.' ) . '</p>' .
'<p>' . __( 'You can also choose a background color by clicking the Select Color button and either typing in a legitimate HTML hex value, e.g. &#8220;#ff0000&#8221; for red, or by choosing a color using the color picker.' ) . '</p>' . '<p>' . __( 'You can also choose a background color by clicking the Select Color button and either typing in a legitimate HTML hex value, e.g. &#8220;#ff0000&#8221; for red, or by choosing a color using the color picker.' ) . '</p>' .
'<p>' . __( 'Don&#8217;t forget to click on the Save Changes button when you are finished.' ) . '</p>', '<p>' . __( 'Do not forget to click on the Save Changes button when you are finished.' ) . '</p>',
) )
); );

View File

@ -109,9 +109,9 @@ class Custom_Image_Header {
'title' => __( 'Header Image' ), 'title' => __( 'Header Image' ),
'content' => 'content' =>
'<p>' . __( 'You can set a custom image header for your site. Simply upload the image and crop it, and the new header will go live immediately. Alternatively, you can use an image that has already been uploaded to your Media Library by clicking the &#8220;Choose Image&#8221; button.' ) . '</p>' . '<p>' . __( 'You can set a custom image header for your site. Simply upload the image and crop it, and the new header will go live immediately. Alternatively, you can use an image that has already been uploaded to your Media Library by clicking the &#8220;Choose Image&#8221; button.' ) . '</p>' .
'<p>' . __( 'Some themes come with additional header images bundled. If you see multiple images displayed, select the one you&#8217;d like and click the &#8220;Save Changes&#8221; button.' ) . '</p>' . '<p>' . __( 'Some themes come with additional header images bundled. If you see multiple images displayed, select the one you would like and click the &#8220;Save Changes&#8221; button.' ) . '</p>' .
'<p>' . __( 'If your theme has more than one default header image, or you have uploaded more than one custom header image, you have the option of having WordPress display a randomly different image on each page of your site. Click the &#8220;Random&#8221; radio button next to the Uploaded Images or Default Images section to enable this feature.' ) . '</p>' . '<p>' . __( 'If your theme has more than one default header image, or you have uploaded more than one custom header image, you have the option of having WordPress display a randomly different image on each page of your site. Click the &#8220;Random&#8221; radio button next to the Uploaded Images or Default Images section to enable this feature.' ) . '</p>' .
'<p>' . __( 'If you don&#8217;t want a header image to be displayed on your site at all, click the &#8220;Remove Header Image&#8221; button at the bottom of the Header Image section of this page. If you want to re-enable the header image later, you just have to select one of the other image options and click &#8220;Save Changes&#8221;.' ) . '</p>', '<p>' . __( 'If you do not want a header image to be displayed on your site at all, click the &#8220;Remove Header Image&#8221; button at the bottom of the Header Image section of this page. If you want to re-enable the header image later, you just have to select one of the other image options and click &#8220;Save Changes&#8221;.' ) . '</p>',
) )
); );
@ -127,7 +127,7 @@ class Custom_Image_Header {
) . ) .
'</p>' . '</p>' .
'<p>' . __( 'In the Header Text section of this page, you can choose whether to display this text or hide it. You can also choose a color for the text by clicking the Select Color button and either typing in a legitimate HTML hex value, e.g. &#8220;#ff0000&#8221; for red, or by choosing a color using the color picker.' ) . '</p>' . '<p>' . __( 'In the Header Text section of this page, you can choose whether to display this text or hide it. You can also choose a color for the text by clicking the Select Color button and either typing in a legitimate HTML hex value, e.g. &#8220;#ff0000&#8221; for red, or by choosing a color using the color picker.' ) . '</p>' .
'<p>' . __( 'Don&#8217;t forget to click &#8220;Save Changes&#8221; when you&#8217;re done!' ) . '</p>', '<p>' . __( 'Do not forget to click &#8220;Save Changes&#8221; when you are done!' ) . '</p>',
) )
); );

View File

@ -139,22 +139,22 @@ class ftp_sockets extends ftp_base {
else $this->_ftp_temp_sock=$this->_ftp_data_sock; else $this->_ftp_temp_sock=$this->_ftp_data_sock;
} else { } else {
if(!@socket_getsockname($this->_ftp_control_sock, $addr, $port)) { if(!@socket_getsockname($this->_ftp_control_sock, $addr, $port)) {
$this->PushError("_data_prepare","can't get control socket information", socket_strerror(socket_last_error($this->_ftp_control_sock))); $this->PushError("_data_prepare","cannot get control socket information", socket_strerror(socket_last_error($this->_ftp_control_sock)));
$this->_data_close(); $this->_data_close();
return FALSE; return FALSE;
} }
if(!@socket_bind($this->_ftp_data_sock,$addr)){ if(!@socket_bind($this->_ftp_data_sock,$addr)){
$this->PushError("_data_prepare","can't bind data socket", socket_strerror(socket_last_error($this->_ftp_data_sock))); $this->PushError("_data_prepare","cannot bind data socket", socket_strerror(socket_last_error($this->_ftp_data_sock)));
$this->_data_close(); $this->_data_close();
return FALSE; return FALSE;
} }
if(!@socket_listen($this->_ftp_data_sock)) { if(!@socket_listen($this->_ftp_data_sock)) {
$this->PushError("_data_prepare","can't listen data socket", socket_strerror(socket_last_error($this->_ftp_data_sock))); $this->PushError("_data_prepare","cannot listen data socket", socket_strerror(socket_last_error($this->_ftp_data_sock)));
$this->_data_close(); $this->_data_close();
return FALSE; return FALSE;
} }
if(!@socket_getsockname($this->_ftp_data_sock, $this->_datahost, $this->_dataport)) { if(!@socket_getsockname($this->_ftp_data_sock, $this->_datahost, $this->_dataport)) {
$this->PushError("_data_prepare","can't get data socket information", socket_strerror(socket_last_error($this->_ftp_data_sock))); $this->PushError("_data_prepare","cannot get data socket information", socket_strerror(socket_last_error($this->_ftp_data_sock)));
$this->_data_close(); $this->_data_close();
return FALSE; return FALSE;
} }

View File

@ -334,7 +334,7 @@ class ftp_base {
} while($this->_code<200); } while($this->_code<200);
$this->_ready=true; $this->_ready=true;
$syst=$this->systype(); $syst=$this->systype();
if(!$syst) $this->SendMSG("Can't detect remote OS"); if(!$syst) $this->SendMSG("Cannot detect remote OS");
else { else {
if(preg_match("/win|dos|novell/i", $syst[0])) $this->OS_remote=FTP_OS_Windows; if(preg_match("/win|dos|novell/i", $syst[0])) $this->OS_remote=FTP_OS_Windows;
elseif(preg_match("/os/i", $syst[0])) $this->OS_remote=FTP_OS_Mac; elseif(preg_match("/os/i", $syst[0])) $this->OS_remote=FTP_OS_Mac;
@ -342,7 +342,7 @@ class ftp_base {
else $this->OS_remote=FTP_OS_Mac; else $this->OS_remote=FTP_OS_Mac;
$this->SendMSG("Remote OS: ".$this->OS_FullName[$this->OS_remote]); $this->SendMSG("Remote OS: ".$this->OS_FullName[$this->OS_remote]);
} }
if(!$this->features()) $this->SendMSG("Can't get features list. All supported - disabled"); if(!$this->features()) $this->SendMSG("Cannot get features list. All supported - disabled");
else $this->SendMSG("Supported features: ".implode(", ", array_keys($this->_features))); else $this->SendMSG("Supported features: ".implode(", ", array_keys($this->_features)));
return TRUE; return TRUE;
} }
@ -371,7 +371,7 @@ class ftp_base {
} }
$this->SendMSG("Authentication succeeded"); $this->SendMSG("Authentication succeeded");
if(empty($this->_features)) { if(empty($this->_features)) {
if(!$this->features()) $this->SendMSG("Can't get features list. All supported - disabled"); if(!$this->features()) $this->SendMSG("Cannot get features list. All supported - disabled");
else $this->SendMSG("Supported features: ".implode(", ", array_keys($this->_features))); else $this->SendMSG("Supported features: ".implode(", ", array_keys($this->_features)));
} }
return TRUE; return TRUE;
@ -480,7 +480,7 @@ class ftp_base {
return FALSE; return FALSE;
} }
if($this->_curtype!=FTP_BINARY) { if($this->_curtype!=FTP_BINARY) {
$this->PushError("restore", "can't restore in ASCII mode"); $this->PushError("restore", "cannot restore in ASCII mode");
return FALSE; return FALSE;
} }
if(!$this->_exec("REST ".$from, "resore")) return FALSE; if(!$this->_exec("REST ".$from, "resore")) return FALSE;
@ -553,7 +553,7 @@ class ftp_base {
if (@file_exists($localfile)) $this->SendMSG("Warning : local file will be overwritten"); if (@file_exists($localfile)) $this->SendMSG("Warning : local file will be overwritten");
$fp = @fopen($localfile, "w"); $fp = @fopen($localfile, "w");
if (!$fp) { if (!$fp) {
$this->PushError("get","can't open local file", "Cannot create \"".$localfile."\""); $this->PushError("get","cannot open local file", "Cannot create \"".$localfile."\"");
return FALSE; return FALSE;
} }
if($this->_can_restore and $rest!=0) fseek($fp, $rest); if($this->_can_restore and $rest!=0) fseek($fp, $rest);
@ -610,13 +610,13 @@ class ftp_base {
function put($localfile, $remotefile=NULL, $rest=0) { function put($localfile, $remotefile=NULL, $rest=0) {
if(is_null($remotefile)) $remotefile=$localfile; if(is_null($remotefile)) $remotefile=$localfile;
if (!file_exists($localfile)) { if (!file_exists($localfile)) {
$this->PushError("put","can't open local file", "No such file or directory \"".$localfile."\""); $this->PushError("put","cannot open local file", "No such file or directory \"".$localfile."\"");
return FALSE; return FALSE;
} }
$fp = @fopen($localfile, "r"); $fp = @fopen($localfile, "r");
if (!$fp) { if (!$fp) {
$this->PushError("put","can't open local file", "Cannot read file \"".$localfile."\""); $this->PushError("put","cannot open local file", "Cannot read file \"".$localfile."\"");
return FALSE; return FALSE;
} }
if($this->_can_restore and $rest!=0) fseek($fp, $rest); if($this->_can_restore and $rest!=0) fseek($fp, $rest);
@ -649,7 +649,7 @@ class ftp_base {
function mput($local=".", $remote=NULL, $continious=false) { function mput($local=".", $remote=NULL, $continious=false) {
$local=realpath($local); $local=realpath($local);
if(!@file_exists($local)) { if(!@file_exists($local)) {
$this->PushError("mput","can't open local folder", "Cannot stat folder \"".$local."\""); $this->PushError("mput","cannot open local folder", "Cannot stat folder \"".$local."\"");
return FALSE; return FALSE;
} }
if(!is_dir($local)) return $this->put($local, $remote); if(!is_dir($local)) return $this->put($local, $remote);
@ -662,7 +662,7 @@ class ftp_base {
} }
closedir($handle); closedir($handle);
} else { } else {
$this->PushError("mput","can't open local folder", "Cannot read folder \"".$local."\""); $this->PushError("mput","cannot open local folder", "Cannot read folder \"".$local."\"");
return FALSE; return FALSE;
} }
if(empty($list)) return TRUE; if(empty($list)) return TRUE;
@ -682,13 +682,13 @@ class ftp_base {
function mget($remote, $local=".", $continious=false) { function mget($remote, $local=".", $continious=false) {
$list=$this->rawlist($remote, "-lA"); $list=$this->rawlist($remote, "-lA");
if($list===false) { if($list===false) {
$this->PushError("mget","can't read remote folder list", "Can't read remote folder \"".$remote."\" contents"); $this->PushError("mget","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents");
return FALSE; return FALSE;
} }
if(empty($list)) return true; if(empty($list)) return true;
if(!@file_exists($local)) { if(!@file_exists($local)) {
if(!@mkdir($local)) { if(!@mkdir($local)) {
$this->PushError("mget","can't create local folder", "Cannot create folder \"".$local."\""); $this->PushError("mget","cannot create local folder", "Cannot create folder \"".$local."\"");
return FALSE; return FALSE;
} }
} }
@ -700,13 +700,13 @@ class ftp_base {
foreach($list as $el) { foreach($list as $el) {
if($el["type"]=="d") { if($el["type"]=="d") {
if(!$this->mget($remote."/".$el["name"], $local."/".$el["name"], $continious)) { if(!$this->mget($remote."/".$el["name"], $local."/".$el["name"], $continious)) {
$this->PushError("mget", "can't copy folder", "Can't copy remote folder \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\""); $this->PushError("mget", "cannot copy folder", "Cannot copy remote folder \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\"");
$ret=false; $ret=false;
if(!$continious) break; if(!$continious) break;
} }
} else { } else {
if(!$this->get($remote."/".$el["name"], $local."/".$el["name"])) { if(!$this->get($remote."/".$el["name"], $local."/".$el["name"])) {
$this->PushError("mget", "can't copy file", "Can't copy remote file \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\""); $this->PushError("mget", "cannot copy file", "Cannot copy remote file \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\"");
$ret=false; $ret=false;
if(!$continious) break; if(!$continious) break;
} }
@ -721,7 +721,7 @@ class ftp_base {
function mdel($remote, $continious=false) { function mdel($remote, $continious=false) {
$list=$this->rawlist($remote, "-la"); $list=$this->rawlist($remote, "-la");
if($list===false) { if($list===false) {
$this->PushError("mdel","can't read remote folder list", "Can't read remote folder \"".$remote."\" contents"); $this->PushError("mdel","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents");
return false; return false;
} }
@ -742,7 +742,7 @@ class ftp_base {
} }
} else { } else {
if (!$this->delete($remote."/".$el["name"])) { if (!$this->delete($remote."/".$el["name"])) {
$this->PushError("mdel", "can't delete file", "Can't delete remote file \"".$remote."/".$el["name"]."\""); $this->PushError("mdel", "cannot delete file", "Cannot delete remote file \"".$remote."/".$el["name"]."\"");
$ret=false; $ret=false;
if(!$continious) break; if(!$continious) break;
} }
@ -750,7 +750,7 @@ class ftp_base {
} }
if(!$this->rmdir($remote)) { if(!$this->rmdir($remote)) {
$this->PushError("mdel", "can't delete folder", "Can't delete remote folder \"".$remote."/".$el["name"]."\""); $this->PushError("mdel", "cannot delete folder", "Cannot delete remote folder \"".$remote."/".$el["name"]."\"");
$ret=false; $ret=false;
} }
return $ret; return $ret;
@ -826,7 +826,7 @@ class ftp_base {
function dirlist($remote) { function dirlist($remote) {
$list=$this->rawlist($remote, "-la"); $list=$this->rawlist($remote, "-la");
if($list===false) { if($list===false) {
$this->PushError("dirlist","can't read remote folder list", "Can't read remote folder \"".$remote."\" contents"); $this->PushError("dirlist","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents");
return false; return false;
} }

View File

@ -560,7 +560,7 @@ class Theme_Upgrader extends WP_Upgrader {
$this->strings['incompatible_archive'], $this->strings['incompatible_archive'],
sprintf( sprintf(
/* translators: %s: style.css */ /* translators: %s: style.css */
__( 'The %s stylesheet doesn&#8217;t contain a valid theme header.' ), __( 'The %s stylesheet does not contain a valid theme header.' ),
'<code>style.css</code>' '<code>style.css</code>'
) )
); );

View File

@ -671,7 +671,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
if ( ! $compatible_php || ! $compatible_wp ) { if ( ! $compatible_php || ! $compatible_wp ) {
echo '<div class="notice inline notice-error notice-alt"><p>'; echo '<div class="notice inline notice-error notice-alt"><p>';
if ( ! $compatible_php && ! $compatible_wp ) { if ( ! $compatible_php && ! $compatible_wp ) {
_e( 'This plugin doesn&#8217;t work with your versions of WordPress and PHP.' ); _e( 'This plugin does not work with your versions of WordPress and PHP.' );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
printf( printf(
/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
@ -695,7 +695,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
wp_update_php_annotation( '</p><p><em>', '</em>' ); wp_update_php_annotation( '</p><p><em>', '</em>' );
} }
} elseif ( ! $compatible_wp ) { } elseif ( ! $compatible_wp ) {
_e( 'This plugin doesn&#8217;t work with your version of WordPress.' ); _e( 'This plugin does not work with your version of WordPress.' );
if ( current_user_can( 'update_core' ) ) { if ( current_user_can( 'update_core' ) ) {
printf( printf(
/* translators: %s: URL to WordPress Updates screen. */ /* translators: %s: URL to WordPress Updates screen. */
@ -704,7 +704,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
); );
} }
} elseif ( ! $compatible_php ) { } elseif ( ! $compatible_php ) {
_e( 'This plugin doesn&#8217;t work with your version of PHP.' ); _e( 'This plugin does not work with your version of PHP.' );
if ( current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_php' ) ) {
printf( printf(
/* translators: %s: URL to Update PHP page. */ /* translators: %s: URL to Update PHP page. */

View File

@ -292,7 +292,7 @@ class WP_Site_Health_Auto_Updates {
} }
return array( return array(
'description' => __( "Your installation of WordPress doesn't require FTP credentials to perform updates." ), 'description' => __( 'Your installation of WordPress does not require FTP credentials to perform updates.' ),
'severity' => 'pass', 'severity' => 'pass',
); );
} }

View File

@ -467,7 +467,7 @@ class WP_Site_Health {
), ),
$unused_plugins $unused_plugins
), ),
__( 'Inactive plugins are tempting targets for attackers. If you&#8217;re not going to use a plugin, you should consider removing it.' ) __( 'Inactive plugins are tempting targets for attackers. If you are not going to use a plugin, you should consider removing it.' )
); );
$result['actions'] .= sprintf( $result['actions'] .= sprintf(
@ -634,7 +634,7 @@ class WP_Site_Health {
), ),
sprintf( sprintf(
/* translators: 1: The currently active theme. 2: The active theme's parent theme. */ /* translators: 1: The currently active theme. 2: The active theme's parent theme. */
__( 'To enhance your site&#8217;s security, you should consider removing any themes you&#8217;re not using. You should keep your active theme, %1$s, and %2$s, its parent theme.' ), __( 'To enhance your site&#8217;s security, you should consider removing any themes you are not using. You should keep your active theme, %1$s, and %2$s, its parent theme.' ),
$active_theme->name, $active_theme->name,
$active_theme->parent()->name $active_theme->parent()->name
) )
@ -653,7 +653,7 @@ class WP_Site_Health {
), ),
sprintf( sprintf(
/* translators: 1: The default theme for WordPress. 2: The currently active theme. 3: The active theme's parent theme. */ /* translators: 1: The default theme for WordPress. 2: The currently active theme. 3: The active theme's parent theme. */
__( 'To enhance your site&#8217;s security, you should consider removing any themes you&#8217;re not using. You should keep %1$s, the default WordPress theme, %2$s, your active theme, and %3$s, its parent theme.' ), __( 'To enhance your site&#8217;s security, you should consider removing any themes you are not using. You should keep %1$s, the default WordPress theme, %2$s, your active theme, and %3$s, its parent theme.' ),
$default_theme ? $default_theme->name : WP_DEFAULT_THEME, $default_theme ? $default_theme->name : WP_DEFAULT_THEME,
$active_theme->name, $active_theme->name,
$active_theme->parent()->name $active_theme->parent()->name

View File

@ -1414,7 +1414,7 @@ function wp_print_community_events_templates() {
* that they match the expected location before including them. * that they match the expected location before including them.
* Use endonyms (native locale names) whenever possible. * Use endonyms (native locale names) whenever possible.
*/ */
__( 'We couldn&#8217;t locate %s. Please try another nearby city. For example: Kansas City; Springfield; Portland.' ), __( 'We could not locate %s. Please try another nearby city. For example: Kansas City; Springfield; Portland.' ),
'<em>{{data.unknownCity}}</em>' '<em>{{data.unknownCity}}</em>'
); );
?> ?>
@ -1462,7 +1462,7 @@ function wp_print_community_events_templates() {
<?php <?php
printf( printf(
/* translators: 1: The city the user searched for, 2: Meetup organization documentation URL. */ /* translators: 1: The city the user searched for, 2: Meetup organization documentation URL. */
__( 'There aren&#8217;t any events scheduled near %1$s at the moment. Would you like to <a href="%2$s">organize a WordPress event</a>?' ), __( 'There are not any events scheduled near %1$s at the moment. Would you like to <a href="%2$s">organize a WordPress event</a>?' ),
'{{ data.location.description }}', '{{ data.location.description }}',
__( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' ) __( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' )
); );
@ -1472,7 +1472,7 @@ function wp_print_community_events_templates() {
<?php <?php
printf( printf(
/* translators: %s: Meetup organization documentation URL. */ /* translators: %s: Meetup organization documentation URL. */
__( 'There aren&#8217;t any events scheduled near you at the moment. Would you like to <a href="%s">organize a WordPress event</a>?' ), __( 'There are not any events scheduled near you at the moment. Would you like to <a href="%s">organize a WordPress event</a>?' ),
__( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' ) __( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' )
); );
?> ?>

View File

@ -715,7 +715,7 @@ function validate_file_to_edit( $file, $allowed_files = array() ) {
wp_die( __( 'Sorry, that file cannot be edited.' ) ); wp_die( __( 'Sorry, that file cannot be edited.' ) );
// case 2 : // case 2 :
// wp_die( __('Sorry, can&#8217;t call files with their real path.' )); // wp_die( __('Sorry, cannot call files with their real path.' ));
case 3: case 3:
wp_die( __( 'Sorry, that file cannot be edited.' ) ); wp_die( __( 'Sorry, that file cannot be edited.' ) );

View File

@ -287,7 +287,7 @@ function post_submit_meta_box( $post, $args = array() ) {
<?php <?php
printf( printf(
/* translators: %s: URL to the Customizer. */ /* translators: %s: URL to the Customizer. */
__( 'This draft comes from your <a href="%s">unpublished customization changes</a>. You can edit, but there&#8217;s no need to publish now. It will be published automatically with those changes.' ), __( 'This draft comes from your <a href="%s">unpublished customization changes</a>. You can edit, but there is no need to publish now. It will be published automatically with those changes.' ),
esc_url( esc_url(
add_query_arg( add_query_arg(
'changeset_uuid', 'changeset_uuid',

View File

@ -2337,7 +2337,7 @@ function the_block_editor_meta_boxes() {
} }
/** /**
* Sadly we probably can not add this data directly into editor settings. * Sadly we probably cannot add this data directly into editor settings.
* *
* Some meta boxes need admin_head to fire for meta box registry. * Some meta boxes need admin_head to fire for meta box registry.
* admin_head fires after admin_enqueue_scripts, which is where we create our * admin_head fires after admin_enqueue_scripts, which is where we create our

View File

@ -195,7 +195,7 @@ function wp_terms_checklist( $post_id = 0, $args = array() ) {
* *
* If the $echo argument is true then the elements for a list of checkbox * If the $echo argument is true then the elements for a list of checkbox
* `<input>` elements labelled with the names of the selected terms is output. * `<input>` elements labelled with the names of the selected terms is output.
* If the $post_ID global isn't empty then the terms associated with that * If the $post_ID global is not empty then the terms associated with that
* post will be marked as checked. * post will be marked as checked.
* *
* @since 2.5.0 * @since 2.5.0
@ -1144,9 +1144,9 @@ function do_block_editor_incompatible_meta_box( $object, $box ) {
echo '<p>'; echo '<p>';
if ( $plugin ) { if ( $plugin ) {
/* translators: %s: The name of the plugin that generated this meta box. */ /* translators: %s: The name of the plugin that generated this meta box. */
printf( __( "This meta box, from the %s plugin, isn't compatible with the block editor." ), "<strong>{$plugin['Name']}</strong>" ); printf( __( 'This meta box, from the %s plugin, is not compatible with the block editor.' ), "<strong>{$plugin['Name']}</strong>" );
} else { } else {
_e( "This meta box isn't compatible with the block editor." ); _e( 'This meta box is not compatible with the block editor.' );
} }
echo '</p>'; echo '</p>';
@ -1388,7 +1388,7 @@ function do_meta_boxes( $screen, $context, $object ) {
<p> <p>
<?php <?php
/* translators: %s: The name of the plugin that generated this meta box. */ /* translators: %s: The name of the plugin that generated this meta box. */
printf( __( "This meta box, from the %s plugin, isn't compatible with the block editor." ), "<strong>{$plugin['Name']}</strong>" ); printf( __( 'This meta box, from the %s plugin, is not compatible with the block editor.' ), "<strong>{$plugin['Name']}</strong>" );
?> ?>
</p> </p>
</div> </div>

View File

@ -877,7 +877,7 @@ function customize_themes_print_templates() {
<?php <?php
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your versions of WordPress and PHP.' ), __( 'There is a new version of %s available, but it does not work with your versions of WordPress and PHP.' ),
'{{{ data.name }}}' '{{{ data.name }}}'
); );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
@ -907,7 +907,7 @@ function customize_themes_print_templates() {
<?php <?php
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your version of WordPress.' ), __( 'There is a new version of %s available, but it does not work with your version of WordPress.' ),
'{{{ data.name }}}' '{{{ data.name }}}'
); );
if ( current_user_can( 'update_core' ) ) { if ( current_user_can( 'update_core' ) ) {
@ -922,7 +922,7 @@ function customize_themes_print_templates() {
<?php <?php
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your version of PHP.' ), __( 'There is a new version of %s available, but it does not work with your version of PHP.' ),
'{{{ data.name }}}' '{{{ data.name }}}'
); );
if ( current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_php' ) ) {
@ -956,7 +956,7 @@ function customize_themes_print_templates() {
<div class="notice notice-error notice-alt notice-large"><p> <div class="notice notice-error notice-alt notice-large"><p>
<# if ( ! data.compatibleWP && ! data.compatiblePHP ) { #> <# if ( ! data.compatibleWP && ! data.compatiblePHP ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your versions of WordPress and PHP.' ); _e( 'This theme does not work with your versions of WordPress and PHP.' );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
printf( printf(
/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
@ -982,7 +982,7 @@ function customize_themes_print_templates() {
?> ?>
<# } else if ( ! data.compatibleWP ) { #> <# } else if ( ! data.compatibleWP ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your version of WordPress.' ); _e( 'This theme does not work with your version of WordPress.' );
if ( current_user_can( 'update_core' ) ) { if ( current_user_can( 'update_core' ) ) {
printf( printf(
/* translators: %s: URL to WordPress Updates screen. */ /* translators: %s: URL to WordPress Updates screen. */
@ -993,7 +993,7 @@ function customize_themes_print_templates() {
?> ?>
<# } else if ( ! data.compatiblePHP ) { #> <# } else if ( ! data.compatiblePHP ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your version of PHP.' ); _e( 'This theme does not work with your version of PHP.' );
if ( current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_php' ) ) {
printf( printf(
/* translators: %s: URL to Update PHP page. */ /* translators: %s: URL to Update PHP page. */

View File

@ -534,7 +534,7 @@ function wp_plugin_update_row( $file, $plugin_data ) {
} else { } else {
printf( printf(
/* translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number 5: URL to Update PHP page. */ /* translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number 5: URL to Update PHP page. */
__( 'There is a new version of %1$s available, but it doesn&#8217;t work with your version of PHP. <a href="%2$s" %3$s>View version %4$s details</a> or <a href="%5$s">learn more about updating PHP</a>.' ), __( 'There is a new version of %1$s available, but it does not work with your version of PHP. <a href="%2$s" %3$s>View version %4$s details</a> or <a href="%5$s">learn more about updating PHP</a>.' ),
$plugin_name, $plugin_name,
esc_url( $details_url ), esc_url( $details_url ),
sprintf( sprintf(
@ -722,7 +722,7 @@ function wp_theme_update_row( $theme_key, $theme ) {
if ( ! $compatible_wp && ! $compatible_php ) { if ( ! $compatible_wp && ! $compatible_php ) {
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your versions of WordPress and PHP.' ), __( 'There is a new version of %s available, but it does not work with your versions of WordPress and PHP.' ),
$theme['Name'] $theme['Name']
); );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
@ -750,7 +750,7 @@ function wp_theme_update_row( $theme_key, $theme ) {
} elseif ( ! $compatible_wp ) { } elseif ( ! $compatible_wp ) {
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your version of WordPress.' ), __( 'There is a new version of %s available, but it does not work with your version of WordPress.' ),
$theme['Name'] $theme['Name']
); );
if ( current_user_can( 'update_core' ) ) { if ( current_user_can( 'update_core' ) ) {
@ -763,7 +763,7 @@ function wp_theme_update_row( $theme_key, $theme ) {
} elseif ( ! $compatible_php ) { } elseif ( ! $compatible_php ) {
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your version of PHP.' ), __( 'There is a new version of %s available, but it does not work with your version of PHP.' ),
$theme['Name'] $theme['Name']
); );
if ( current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_php' ) ) {

View File

@ -174,7 +174,7 @@ function edit_user( $user_id = 0 ) {
// Checking the password has been typed twice the same. // Checking the password has been typed twice the same.
if ( ( $update || ! empty( $pass1 ) ) && $pass1 != $pass2 ) { if ( ( $update || ! empty( $pass1 ) ) && $pass1 != $pass2 ) {
$errors->add( 'pass', __( '<strong>Error</strong>: Passwords don&#8217;t match. Please enter the same password in both password fields.' ), array( 'form-field' => 'pass1' ) ); $errors->add( 'pass', __( '<strong>Error</strong>: Passwords do not match. Please enter the same password in both password fields.' ), array( 'form-field' => 'pass1' ) );
} }
if ( ! empty( $pass1 ) ) { if ( ! empty( $pass1 ) ) {
@ -200,7 +200,7 @@ function edit_user( $user_id = 0 ) {
if ( empty( $user->user_email ) ) { if ( empty( $user->user_email ) ) {
$errors->add( 'empty_email', __( '<strong>Error</strong>: Please enter an email address.' ), array( 'form-field' => 'email' ) ); $errors->add( 'empty_email', __( '<strong>Error</strong>: Please enter an email address.' ), array( 'form-field' => 'email' ) );
} elseif ( ! is_email( $user->user_email ) ) { } elseif ( ! is_email( $user->user_email ) ) {
$errors->add( 'invalid_email', __( '<strong>Error</strong>: The email address isn&#8217;t correct.' ), array( 'form-field' => 'email' ) ); $errors->add( 'invalid_email', __( '<strong>Error</strong>: The email address is not correct.' ), array( 'form-field' => 'email' ) );
} else { } else {
$owner_id = email_exists( $user->user_email ); $owner_id = email_exists( $user->user_email );
if ( $owner_id && ( ! $update || ( $owner_id != $user->ID ) ) ) { if ( $owner_id && ( ! $update || ( $owner_id != $user->ID ) ) ) {

View File

@ -358,7 +358,7 @@ switch ( $step ) {
<p><?php _e( 'Welcome to the famous five-minute WordPress installation process! Just fill in the information below and you&#8217;ll be on your way to using the most extendable and powerful personal publishing platform in the world.' ); ?></p> <p><?php _e( 'Welcome to the famous five-minute WordPress installation process! Just fill in the information below and you&#8217;ll be on your way to using the most extendable and powerful personal publishing platform in the world.' ); ?></p>
<h2><?php _e( 'Information needed' ); ?></h2> <h2><?php _e( 'Information needed' ); ?></h2>
<p><?php _e( 'Please provide the following information. Don&#8217;t worry, you can always change these settings later.' ); ?></p> <p><?php _e( 'Please provide the following information. Do not worry, you can always change these settings later.' ); ?></p>
<?php <?php
display_setup_form(); display_setup_form();
@ -405,7 +405,7 @@ switch ( $step ) {
$error = true; $error = true;
} elseif ( ! is_email( $admin_email ) ) { } elseif ( ! is_email( $admin_email ) ) {
// TODO: Poka-yoke. // TODO: Poka-yoke.
display_setup_form( __( 'Sorry, that isn&#8217;t a valid email address. Email addresses look like <code>username@example.com</code>.' ) ); display_setup_form( __( 'Sorry, that is not a valid email address. Email addresses look like <code>username@example.com</code>.' ) );
$error = true; $error = true;
} }

View File

@ -65,13 +65,13 @@ switch ( $action ) {
$att = get_post( $att_id ); $att = get_post( $att_id );
if ( empty( $att->ID ) ) { if ( empty( $att->ID ) ) {
wp_die( __( 'You attempted to edit an attachment that doesn&#8217;t exist. Perhaps it was deleted?' ) ); wp_die( __( 'You attempted to edit an attachment that does not exist. Perhaps it was deleted?' ) );
} }
if ( 'attachment' !== $att->post_type ) { if ( 'attachment' !== $att->post_type ) {
wp_die( __( 'You attempted to edit an item that isn&#8217;t an attachment. Please go back and try again.' ) ); wp_die( __( 'You attempted to edit an item that is not an attachment. Please go back and try again.' ) );
} }
if ( 'trash' === $att->post_status ) { if ( 'trash' === $att->post_status ) {
wp_die( __( 'You can&#8217;t edit this attachment because it is in the Trash. Please move it out of the Trash and try again.' ) ); wp_die( __( 'You cannot edit this attachment because it is in the Trash. Please move it out of the Trash and try again.' ) );
} }
add_filter( 'attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2 ); add_filter( 'attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2 );

View File

@ -625,7 +625,7 @@ if ( ! $locations_screen ) : // Main tab.
$menu_management = '<p>' . __( 'The menu management box at the top of the screen is used to control which menu is opened in the editor below.' ) . '</p>'; $menu_management = '<p>' . __( 'The menu management box at the top of the screen is used to control which menu is opened in the editor below.' ) . '</p>';
$menu_management .= '<ul><li>' . __( 'To edit an existing menu, <strong>choose a menu from the drop down and click Select</strong>' ) . '</li>'; $menu_management .= '<ul><li>' . __( 'To edit an existing menu, <strong>choose a menu from the drop down and click Select</strong>' ) . '</li>';
$menu_management .= '<li>' . __( 'If you haven&#8217;t yet created any menus, <strong>click the &#8217;create a new menu&#8217; link</strong> to get started' ) . '</li></ul>'; $menu_management .= '<li>' . __( 'If you have not yet created any menus, <strong>click the &#8217;create a new menu&#8217; link</strong> to get started' ) . '</li></ul>';
$menu_management .= '<p>' . __( 'You can assign theme locations to individual menus by <strong>selecting the desired settings</strong> at the bottom of the menu editor. To assign menus to all theme locations at once, <strong>visit the Manage Locations tab</strong> at the top of the screen.' ) . '</p>'; $menu_management .= '<p>' . __( 'You can assign theme locations to individual menus by <strong>selecting the desired settings</strong> at the bottom of the menu editor. To assign menus to all theme locations at once, <strong>visit the Manage Locations tab</strong> at the top of the screen.' ) . '</p>';
get_current_screen()->add_help_tab( get_current_screen()->add_help_tab(
@ -652,7 +652,7 @@ if ( ! $locations_screen ) : // Main tab.
); );
else : // Locations tab. else : // Locations tab.
$locations_overview = '<p>' . __( 'This screen is used for globally assigning menus to locations defined by your theme.' ) . '</p>'; $locations_overview = '<p>' . __( 'This screen is used for globally assigning menus to locations defined by your theme.' ) . '</p>';
$locations_overview .= '<ul><li>' . __( 'To assign menus to one or more theme locations, <strong>select a menu from each location&#8217;s drop down.</strong> When you&#8217;re finished, <strong>click Save Changes</strong>' ) . '</li>'; $locations_overview .= '<ul><li>' . __( 'To assign menus to one or more theme locations, <strong>select a menu from each location&#8217;s drop down.</strong> When you are finished, <strong>click Save Changes</strong>' ) . '</li>';
$locations_overview .= '<li>' . __( 'To edit a menu currently assigned to a theme location, <strong>click the adjacent &#8217;Edit&#8217; link</strong>' ) . '</li>'; $locations_overview .= '<li>' . __( 'To edit a menu currently assigned to a theme location, <strong>click the adjacent &#8217;Edit&#8217; link</strong>' ) . '</li>';
$locations_overview .= '<li>' . __( 'To add a new menu instead of assigning an existing one, <strong>click the &#8217;Use new menu&#8217; link</strong>. Your new menu will be automatically assigned to that theme location' ) . '</li></ul>'; $locations_overview .= '<li>' . __( 'To add a new menu instead of assigning an existing one, <strong>click the &#8217;Use new menu&#8217; link</strong>. Your new menu will be automatically assigned to that theme location' ) . '</li></ul>';
@ -842,7 +842,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<?php <?php
printf( printf(
/* translators: %s: URL to create a new menu. */ /* translators: %s: URL to create a new menu. */
__( 'Edit your menu below, or <a href="%s">create a new menu</a>. Don&#8217;t forget to save your changes!' ), __( 'Edit your menu below, or <a href="%s">create a new menu</a>. Do not forget to save your changes!' ),
esc_url( esc_url(
add_query_arg( add_query_arg(
array( array(
@ -907,7 +907,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<?php <?php
printf( printf(
/* translators: %s: URL to create a new menu. */ /* translators: %s: URL to create a new menu. */
__( 'or <a href="%s">create a new menu</a>. Don&#8217;t forget to save your changes!' ), __( 'or <a href="%s">create a new menu</a>. Do not forget to save your changes!' ),
esc_url( esc_url(
add_query_arg( add_query_arg(
array( array(

View File

@ -37,7 +37,7 @@ if ( isset( $_REQUEST['action'] ) && 'add-site' === $_REQUEST['action'] ) {
check_admin_referer( 'add-blog', '_wpnonce_add-blog' ); check_admin_referer( 'add-blog', '_wpnonce_add-blog' );
if ( ! is_array( $_POST['blog'] ) ) { if ( ! is_array( $_POST['blog'] ) ) {
wp_die( __( 'Can&#8217;t create an empty site.' ) ); wp_die( __( 'Cannot create an empty site.' ) );
} }
$blog = $_POST['blog']; $blog = $_POST['blog'];

View File

@ -22,7 +22,7 @@ get_current_screen()->add_help_tab(
'title' => __( 'Overview' ), 'title' => __( 'Overview' ),
'content' => 'content' =>
'<p>' . __( 'Only use this screen once you have updated to a new version of WordPress through Updates/Available Updates (via the Network Administration navigation menu or the Toolbar). Clicking the Upgrade Network button will step through each site in the network, five at a time, and make sure any database updates are applied.' ) . '</p>' . '<p>' . __( 'Only use this screen once you have updated to a new version of WordPress through Updates/Available Updates (via the Network Administration navigation menu or the Toolbar). Clicking the Upgrade Network button will step through each site in the network, five at a time, and make sure any database updates are applied.' ) . '</p>' .
'<p>' . __( 'If a version update to core has not happened, clicking this button won&#8217;t affect anything.' ) . '</p>' . '<p>' . __( 'If a version update to core has not happened, clicking this button will not affect anything.' ) . '</p>' .
'<p>' . __( 'If this process fails for any reason, users logging in to their sites will force the same update.' ) . '</p>', '<p>' . __( 'If this process fails for any reason, users logging in to their sites will force the same update.' ) . '</p>',
) )
); );
@ -122,7 +122,7 @@ switch ( $action ) {
do_action( 'wpmu_upgrade_site', $site_id ); do_action( 'wpmu_upgrade_site', $site_id );
} }
echo '</ul>'; echo '</ul>';
?><p><?php _e( 'If your browser doesn&#8217;t start loading the next page automatically, click this link:' ); ?> <a class="button" href="upgrade.php?action=upgrade&amp;n=<?php echo ( $n + 5 ); ?>"><?php _e( 'Next Sites' ); ?></a></p> ?><p><?php _e( 'If your browser does not start loading the next page automatically, click this link:' ); ?> <a class="button" href="upgrade.php?action=upgrade&amp;n=<?php echo ( $n + 5 ); ?>"><?php _e( 'Next Sites' ); ?></a></p>
<script type="text/javascript"> <script type="text/javascript">
<!-- <!--
function nextpage() { function nextpage() {

View File

@ -22,7 +22,7 @@ get_current_screen()->add_help_tab(
array( array(
'id' => 'overview', 'id' => 'overview',
'title' => __( 'Overview' ), 'title' => __( 'Overview' ),
'content' => '<p>' . __( 'This screen provides many options for controlling the management and display of comments and links to your posts/pages. So many, in fact, they won&#8217;t all fit here! :) Use the documentation links to get information on what each discussion setting does.' ) . '</p>' . 'content' => '<p>' . __( 'This screen provides many options for controlling the management and display of comments and links to your posts/pages. So many, in fact, they will not all fit here! :) Use the documentation links to get information on what each discussion setting does.' ) . '</p>' .
'<p>' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '</p>', '<p>' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '</p>',
) )
); );

View File

@ -368,7 +368,7 @@ printf( __( 'If you like, you may enter custom structures for your category and
<?php <?php
printf( printf(
/* translators: 1: web.config, 2: Documentation URL, 3: Ctrl + A, 4: Element code. */ /* translators: 1: web.config, 2: Documentation URL, 3: Ctrl + A, 4: Element code. */
__( 'If your %1$s file was <a href="%2$s">writable</a>, we could do this automatically, but it isn&#8217;t so this is the url rewrite rule you should have in your %1$s file. Click in the field and press %3$s to select all. Then insert this rule inside of the %4$s element in %1$s file.' ), __( 'If your %1$s file was <a href="%2$s">writable</a>, we could do this automatically, but it is not so this is the url rewrite rule you should have in your %1$s file. Click in the field and press %3$s to select all. Then insert this rule inside of the %4$s element in %1$s file.' ),
'<code>web.config</code>', '<code>web.config</code>',
__( 'https://wordpress.org/support/article/changing-file-permissions/' ), __( 'https://wordpress.org/support/article/changing-file-permissions/' ),
'<kbd>Ctrl + A</kbd>', '<kbd>Ctrl + A</kbd>',
@ -394,7 +394,7 @@ printf( __( 'If you like, you may enter custom structures for your category and
<?php <?php
printf( printf(
/* translators: 1: Documentation URL, 2: web.config, 3: Ctrl + A */ /* translators: 1: Documentation URL, 2: web.config, 3: Ctrl + A */
__( 'If the root directory of your site was <a href="%1$s">writable</a>, we could do this automatically, but it isn&#8217;t so this is the url rewrite rule you should have in your %2$s file. Create a new file, called %2$s in the root directory of your site. Click in the field and press %3$s to select all. Then insert this code into the %2$s file.' ), __( 'If the root directory of your site was <a href="%1$s">writable</a>, we could do this automatically, but it is not so this is the url rewrite rule you should have in your %2$s file. Create a new file, called %2$s in the root directory of your site. Click in the field and press %3$s to select all. Then insert this code into the %2$s file.' ),
__( 'https://wordpress.org/support/article/changing-file-permissions/' ), __( 'https://wordpress.org/support/article/changing-file-permissions/' ),
'<code>web.config</code>', '<code>web.config</code>',
'<kbd>Ctrl + A</kbd>' '<kbd>Ctrl + A</kbd>'
@ -424,7 +424,7 @@ else :
<?php <?php
printf( printf(
/* translators: 1: .htaccess, 2: Documentation URL, 3: Ctrl + A */ /* translators: 1: .htaccess, 2: Documentation URL, 3: Ctrl + A */
__( 'If your %1$s file was <a href="%2$s">writable</a>, we could do this automatically, but it isn&#8217;t so these are the mod_rewrite rules you should have in your %1$s file. Click in the field and press %3$s to select all.' ), __( 'If your %1$s file was <a href="%2$s">writable</a>, we could do this automatically, but it is not so these are the mod_rewrite rules you should have in your %1$s file. Click in the field and press %3$s to select all.' ),
'<code>.htaccess</code>', '<code>.htaccess</code>',
__( 'https://wordpress.org/support/article/changing-file-permissions/' ), __( 'https://wordpress.org/support/article/changing-file-permissions/' ),
'<kbd>Ctrl + A</kbd>' '<kbd>Ctrl + A</kbd>'

View File

@ -125,7 +125,7 @@ get_current_screen()->add_help_tab(
'title' => __( 'Overview' ), 'title' => __( 'Overview' ),
'content' => 'content' =>
'<p>' . __( 'You can use the plugin file editor to make changes to any of your plugins&#8217; individual PHP files. Be aware that if you make changes, plugins updates will overwrite your customizations.' ) . '</p>' . '<p>' . __( 'You can use the plugin file editor to make changes to any of your plugins&#8217; individual PHP files. Be aware that if you make changes, plugins updates will overwrite your customizations.' ) . '</p>' .
'<p>' . __( 'Choose a plugin to edit from the dropdown menu and click the Select button. Click once on any file name to load it in the editor, and make your changes. Don&#8217;t forget to save your changes (Update File) when you&#8217;re finished.' ) . '</p>' . '<p>' . __( 'Choose a plugin to edit from the dropdown menu and click the Select button. Click once on any file name to load it in the editor, and make your changes. Do not forget to save your changes (Update File) when you are finished.' ) . '</p>' .
'<p>' . __( 'The Documentation menu below the editor lists the PHP functions recognized in the plugin file. Clicking Look Up takes you to a web page about that particular function.' ) . '</p>' . '<p>' . __( 'The Documentation menu below the editor lists the PHP functions recognized in the plugin file. Clicking Look Up takes you to a web page about that particular function.' ) . '</p>' .
'<p id="editor-keyboard-trap-help-1">' . __( 'When using a keyboard to navigate:' ) . '</p>' . '<p id="editor-keyboard-trap-help-1">' . __( 'When using a keyboard to navigate:' ) . '</p>' .
'<ul>' . '<ul>' .
@ -133,7 +133,7 @@ get_current_screen()->add_help_tab(
'<li id="editor-keyboard-trap-help-3">' . __( 'To move away from this area, press the Esc key followed by the Tab key.' ) . '</li>' . '<li id="editor-keyboard-trap-help-3">' . __( 'To move away from this area, press the Esc key followed by the Tab key.' ) . '</li>' .
'<li id="editor-keyboard-trap-help-4">' . __( 'Screen reader users: when in forms mode, you may need to press the Esc key twice.' ) . '</li>' . '<li id="editor-keyboard-trap-help-4">' . __( 'Screen reader users: when in forms mode, you may need to press the Esc key twice.' ) . '</li>' .
'</ul>' . '</ul>' .
'<p>' . __( 'If you want to make changes but don&#8217;t want them to be overwritten when the plugin is updated, you may be ready to think about writing your own plugin. For information on how to edit plugins, write your own from scratch, or just better understand their anatomy, check out the links below.' ) . '</p>' . '<p>' . __( 'If you want to make changes but do not want them to be overwritten when the plugin is updated, you may be ready to think about writing your own plugin. For information on how to edit plugins, write your own from scratch, or just better understand their anatomy, check out the links below.' ) . '</p>' .
( is_network_admin() ? '<p>' . __( 'Any edits to files from this screen will be reflected on all sites in the network.' ) . '</p>' : '' ), ( is_network_admin() ? '<p>' . __( 'Any edits to files from this screen will be reflected on all sites in the network.' ) . '</p>' : '' ),
) )
); );

View File

@ -109,7 +109,7 @@ get_current_screen()->add_help_tab(
'id' => 'adding-plugins', 'id' => 'adding-plugins',
'title' => __( 'Adding Plugins' ), 'title' => __( 'Adding Plugins' ),
'content' => 'content' =>
'<p>' . __( 'If you know what you&#8217;re 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 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&#8217;s available, you can browse Featured and Popular plugins by using the links above the plugins list. These sections rotate regularly.' ) . '</p>' . '<p>' . __( 'If you just want to get an idea of what&#8217;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&#8217;s favorite plugins, by using the Favorites link above the plugins list and entering their WordPress.org username.' ) . '</p>' . '<p>' . __( 'You can also browse a user&#8217;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&#8217;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&#8217;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>',

View File

@ -560,7 +560,7 @@ get_current_screen()->add_help_tab(
'<p>' . __( 'Most of the time, plugins play nicely with the core of WordPress and with other plugins. Sometimes, though, a plugin&#8217;s code will get in the way of another plugin, causing compatibility issues. If your site starts doing strange things, this may be the problem. Try deactivating all your plugins and re-activating them in various combinations until you isolate which one(s) caused the issue.' ) . '</p>' . '<p>' . __( 'Most of the time, plugins play nicely with the core of WordPress and with other plugins. Sometimes, though, a plugin&#8217;s code will get in the way of another plugin, causing compatibility issues. If your site starts doing strange things, this may be the problem. Try deactivating all your plugins and re-activating them in various combinations until you isolate which one(s) caused the issue.' ) . '</p>' .
'<p>' . sprintf( '<p>' . sprintf(
/* translators: %s: WP_PLUGIN_DIR constant value. */ /* translators: %s: WP_PLUGIN_DIR constant value. */
__( 'If something goes wrong with a plugin and you can&#8217;t use WordPress, delete or rename that file in the %s directory and it will be automatically deactivated.' ), __( 'If something goes wrong with a plugin and you cannot use WordPress, delete or rename that file in the %s directory and it will be automatically deactivated.' ),
'<code>' . WP_PLUGIN_DIR . '</code>' '<code>' . WP_PLUGIN_DIR . '</code>'
) . '</p>', ) . '</p>',
) )

View File

@ -124,7 +124,7 @@ switch ( $action ) {
} }
if ( ! $post ) { if ( ! $post ) {
wp_die( __( 'You attempted to edit an item that doesn&#8217;t exist. Perhaps it was deleted?' ) ); wp_die( __( 'You attempted to edit an item that does not exist. Perhaps it was deleted?' ) );
} }
if ( ! $post_type_object ) { if ( ! $post_type_object ) {
@ -140,7 +140,7 @@ switch ( $action ) {
} }
if ( 'trash' === $post->post_status ) { if ( 'trash' === $post->post_status ) {
wp_die( __( 'You can&#8217;t edit this item because it is in the Trash. Please restore it and try again.' ) ); wp_die( __( 'You cannot edit this item because it is in the Trash. Please restore it and try again.' ) );
} }
if ( ! empty( $_GET['get-post-lock'] ) ) { if ( ! empty( $_GET['get-post-lock'] ) ) {

View File

@ -170,7 +170,7 @@ switch ( $step ) {
<?php <?php
printf( printf(
/* translators: %s: wp-config.php */ /* translators: %s: wp-config.php */
__( 'We&#8217;re going to use this information to create a %s file.' ), __( 'We are going to use this information to create a %s file.' ),
'<code>wp-config.php</code>' '<code>wp-config.php</code>'
); );
?> ?>
@ -178,7 +178,7 @@ switch ( $step ) {
<?php <?php
printf( printf(
/* translators: 1: wp-config-sample.php, 2: wp-config.php */ /* translators: 1: wp-config-sample.php, 2: wp-config.php */
__( 'If for any reason this automatic file creation doesn&#8217;t work, don&#8217;t worry. All this does is fill in the database information to a configuration file. You may also simply open %1$s in a text editor, fill in your information, and save it as %2$s.' ), __( 'If for any reason this automatic file creation does not work, do not worry. All this does is fill in the database information to a configuration file. You may also simply open %1$s in a text editor, fill in your information, and save it as %2$s.' ),
'<code>wp-config-sample.php</code>', '<code>wp-config-sample.php</code>',
'<code>wp-config.php</code>' '<code>wp-config.php</code>'
); );
@ -192,7 +192,7 @@ switch ( $step ) {
); );
?> ?>
</p> </p>
<p><?php _e( 'In all likelihood, these items were supplied to you by your web host. If you don&#8217;t have this information, then you will need to contact them before you can continue. If you&#8217;re all ready&hellip;' ); ?></p> <p><?php _e( 'In all likelihood, these items were supplied to you by your web host. If you do not have this information, then you will need to contact them before you can continue. If you are ready&hellip;' ); ?></p>
<p class="step"><a href="<?php echo $step_1; ?>" class="button button-large"><?php _e( 'Let&#8217;s go!' ); ?></a></p> <p class="step"><a href="<?php echo $step_1; ?>" class="button button-large"><?php _e( 'Let&#8217;s go!' ); ?></a></p>
<?php <?php
@ -208,7 +208,7 @@ switch ( $step ) {
?> ?>
<h1 class="screen-reader-text"><?php _e( 'Set up your database connection' ); ?></h1> <h1 class="screen-reader-text"><?php _e( 'Set up your database connection' ); ?></h1>
<form method="post" action="setup-config.php?step=2"> <form method="post" action="setup-config.php?step=2">
<p><?php _e( 'Below you should enter your database connection details. If you&#8217;re not sure about these, contact your host.' ); ?></p> <p><?php _e( 'Below you should enter your database connection details. If you are not sure about these, contact your host.' ); ?></p>
<table class="form-table" role="presentation"> <table class="form-table" role="presentation">
<tr> <tr>
<th scope="row"><label for="dbname"><?php _e( 'Database Name' ); ?></label></th> <th scope="row"><label for="dbname"><?php _e( 'Database Name' ); ?></label></th>
@ -231,7 +231,7 @@ switch ( $step ) {
<td id="dbhost-desc"> <td id="dbhost-desc">
<?php <?php
/* translators: %s: localhost */ /* translators: %s: localhost */
printf( __( 'You should be able to get this info from your web host, if %s doesn&#8217;t work.' ), '<code>localhost</code>' ); printf( __( 'You should be able to get this info from your web host, if %s does not work.' ), '<code>localhost</code>' );
?> ?>
</td> </td>
</tr> </tr>

View File

@ -28,7 +28,7 @@ $tag_ID = absint( $_REQUEST['tag_ID'] );
$tag = get_term( $tag_ID, $taxnow, OBJECT, 'edit' ); $tag = get_term( $tag_ID, $taxnow, OBJECT, 'edit' );
if ( ! $tag instanceof WP_Term ) { if ( ! $tag instanceof WP_Term ) {
wp_die( __( 'You attempted to edit an item that doesn&#8217;t exist. Perhaps it was deleted?' ) ); wp_die( __( 'You attempted to edit an item that does not exist. Perhaps it was deleted?' ) );
} }
$tax = get_taxonomy( $tag->taxonomy ); $tax = get_taxonomy( $tag->taxonomy );

View File

@ -203,7 +203,7 @@ if ( $file_description !== $file_show ) {
<?php <?php
printf( printf(
/* translators: %s: Link to Custom CSS section in the Customizer. */ /* translators: %s: Link to Custom CSS section in the Customizer. */
__( 'There&#8217;s no need to change your CSS here &mdash; you can edit and live preview CSS changes in the <a href="%s">built-in CSS editor</a>.' ), __( 'There is no need to change your CSS here &mdash; you can edit and live preview CSS changes in the <a href="%s">built-in CSS editor</a>.' ),
esc_url( add_query_arg( 'autofocus[section]', 'custom_css', admin_url( 'customize.php' ) ) ) esc_url( add_query_arg( 'autofocus[section]', 'custom_css', admin_url( 'customize.php' ) ) )
); );
?> ?>

View File

@ -125,7 +125,7 @@ get_current_screen()->add_help_tab(
); );
$help_installing = $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&#8217;re 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>' . __( '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&#8217;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&#8217;s thumbnail image.' ) . '</p>'; '<p>' . __( 'To install the theme so you can preview it with your site&#8217;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&#8217;s thumbnail image.' ) . '</p>';
get_current_screen()->add_help_tab( get_current_screen()->add_help_tab(
@ -296,7 +296,7 @@ if ( $tab ) {
<div class="notice notice-error notice-alt"><p> <div class="notice notice-error notice-alt"><p>
<# if ( ! data.compatible_wp && ! data.compatible_php ) { #> <# if ( ! data.compatible_wp && ! data.compatible_php ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your versions of WordPress and PHP.' ); _e( 'This theme does not work with your versions of WordPress and PHP.' );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
printf( printf(
/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
@ -322,7 +322,7 @@ if ( $tab ) {
?> ?>
<# } else if ( ! data.compatible_wp ) { #> <# } else if ( ! data.compatible_wp ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your version of WordPress.' ); _e( 'This theme does not work with your version of WordPress.' );
if ( current_user_can( 'update_core' ) ) { if ( current_user_can( 'update_core' ) ) {
printf( printf(
/* translators: %s: URL to WordPress Updates screen. */ /* translators: %s: URL to WordPress Updates screen. */
@ -333,7 +333,7 @@ if ( $tab ) {
?> ?>
<# } else if ( ! data.compatible_php ) { #> <# } else if ( ! data.compatible_php ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your version of PHP.' ); _e( 'This theme does not work with your version of PHP.' );
if ( current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_php' ) ) {
printf( printf(
/* translators: %s: URL to Update PHP page. */ /* translators: %s: URL to Update PHP page. */
@ -484,7 +484,7 @@ if ( $tab ) {
<div class="notice notice-error notice-alt notice-large"><p> <div class="notice notice-error notice-alt notice-large"><p>
<# if ( ! data.compatible_wp && ! data.compatible_php ) { #> <# if ( ! data.compatible_wp && ! data.compatible_php ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your versions of WordPress and PHP.' ); _e( 'This theme does not work with your versions of WordPress and PHP.' );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
printf( printf(
/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
@ -510,7 +510,7 @@ if ( $tab ) {
?> ?>
<# } else if ( ! data.compatible_wp ) { #> <# } else if ( ! data.compatible_wp ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your version of WordPress.' ); _e( 'This theme does not work with your version of WordPress.' );
if ( current_user_can( 'update_core' ) ) { if ( current_user_can( 'update_core' ) ) {
printf( printf(
/* translators: %s: URL to WordPress Updates screen. */ /* translators: %s: URL to WordPress Updates screen. */
@ -521,7 +521,7 @@ if ( $tab ) {
?> ?>
<# } else if ( ! data.compatible_php ) { #> <# } else if ( ! data.compatible_php ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your version of PHP.' ); _e( 'This theme does not work with your version of PHP.' );
if ( current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_php' ) ) {
printf( printf(
/* translators: %s: URL to Update PHP page. */ /* translators: %s: URL to Update PHP page. */

View File

@ -409,7 +409,7 @@ foreach ( $themes as $theme ) :
if ( ! $theme['updateResponse']['compatibleWP'] && ! $theme['updateResponse']['compatiblePHP'] ) { if ( ! $theme['updateResponse']['compatibleWP'] && ! $theme['updateResponse']['compatiblePHP'] ) {
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your versions of WordPress and PHP.' ), __( 'There is a new version of %s available, but it does not work with your versions of WordPress and PHP.' ),
$theme['name'] $theme['name']
); );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
@ -437,7 +437,7 @@ foreach ( $themes as $theme ) :
} elseif ( ! $theme['updateResponse']['compatibleWP'] ) { } elseif ( ! $theme['updateResponse']['compatibleWP'] ) {
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your version of WordPress.' ), __( 'There is a new version of %s available, but it does not work with your version of WordPress.' ),
$theme['name'] $theme['name']
); );
if ( current_user_can( 'update_core' ) ) { if ( current_user_can( 'update_core' ) ) {
@ -450,7 +450,7 @@ foreach ( $themes as $theme ) :
} elseif ( ! $theme['updateResponse']['compatiblePHP'] ) { } elseif ( ! $theme['updateResponse']['compatiblePHP'] ) {
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your version of PHP.' ), __( 'There is a new version of %s available, but it does not work with your version of PHP.' ),
$theme['name'] $theme['name']
); );
if ( current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_php' ) ) {
@ -471,7 +471,7 @@ foreach ( $themes as $theme ) :
if ( ! $theme['compatibleWP'] || ! $theme['compatiblePHP'] ) { if ( ! $theme['compatibleWP'] || ! $theme['compatiblePHP'] ) {
echo '<div class="notice inline notice-error notice-alt"><p>'; echo '<div class="notice inline notice-error notice-alt"><p>';
if ( ! $theme['compatibleWP'] && ! $theme['compatiblePHP'] ) { if ( ! $theme['compatibleWP'] && ! $theme['compatiblePHP'] ) {
_e( 'This theme doesn&#8217;t work with your versions of WordPress and PHP.' ); _e( 'This theme does not work with your versions of WordPress and PHP.' );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
printf( printf(
/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
@ -495,7 +495,7 @@ foreach ( $themes as $theme ) :
wp_update_php_annotation( '</p><p><em>', '</em>' ); wp_update_php_annotation( '</p><p><em>', '</em>' );
} }
} elseif ( ! $theme['compatibleWP'] ) { } elseif ( ! $theme['compatibleWP'] ) {
_e( 'This theme doesn&#8217;t work with your version of WordPress.' ); _e( 'This theme does not work with your version of WordPress.' );
if ( current_user_can( 'update_core' ) ) { if ( current_user_can( 'update_core' ) ) {
printf( printf(
/* translators: %s: URL to WordPress Updates screen. */ /* translators: %s: URL to WordPress Updates screen. */
@ -504,7 +504,7 @@ foreach ( $themes as $theme ) :
); );
} }
} elseif ( ! $theme['compatiblePHP'] ) { } elseif ( ! $theme['compatiblePHP'] ) {
_e( 'This theme doesn&#8217;t work with your version of PHP.' ); _e( 'This theme does not work with your version of PHP.' );
if ( current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_php' ) ) {
printf( printf(
/* translators: %s: URL to Update PHP page. */ /* translators: %s: URL to Update PHP page. */
@ -760,7 +760,7 @@ function wp_theme_auto_update_setting_template() {
<?php <?php
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your versions of WordPress and PHP.' ), __( 'There is a new version of %s available, but it does not work with your versions of WordPress and PHP.' ),
'{{{ data.name }}}' '{{{ data.name }}}'
); );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
@ -790,7 +790,7 @@ function wp_theme_auto_update_setting_template() {
<?php <?php
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your version of WordPress.' ), __( 'There is a new version of %s available, but it does not work with your version of WordPress.' ),
'{{{ data.name }}}' '{{{ data.name }}}'
); );
if ( current_user_can( 'update_core' ) ) { if ( current_user_can( 'update_core' ) ) {
@ -805,7 +805,7 @@ function wp_theme_auto_update_setting_template() {
<?php <?php
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your version of PHP.' ), __( 'There is a new version of %s available, but it does not work with your version of PHP.' ),
'{{{ data.name }}}' '{{{ data.name }}}'
); );
if ( current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_php' ) ) {
@ -826,7 +826,7 @@ function wp_theme_auto_update_setting_template() {
<div class="notice notice-error notice-alt"><p> <div class="notice notice-error notice-alt"><p>
<# if ( ! data.compatibleWP && ! data.compatiblePHP ) { #> <# if ( ! data.compatibleWP && ! data.compatiblePHP ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your versions of WordPress and PHP.' ); _e( 'This theme does not work with your versions of WordPress and PHP.' );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
printf( printf(
/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
@ -852,7 +852,7 @@ function wp_theme_auto_update_setting_template() {
?> ?>
<# } else if ( ! data.compatibleWP ) { #> <# } else if ( ! data.compatibleWP ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your version of WordPress.' ); _e( 'This theme does not work with your version of WordPress.' );
if ( current_user_can( 'update_core' ) ) { if ( current_user_can( 'update_core' ) ) {
printf( printf(
/* translators: %s: URL to WordPress Updates screen. */ /* translators: %s: URL to WordPress Updates screen. */
@ -863,7 +863,7 @@ function wp_theme_auto_update_setting_template() {
?> ?>
<# } else if ( ! data.compatiblePHP ) { #> <# } else if ( ! data.compatiblePHP ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your version of PHP.' ); _e( 'This theme does not work with your version of PHP.' );
if ( current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_php' ) ) {
printf( printf(
/* translators: %s: URL to Update PHP page. */ /* translators: %s: URL to Update PHP page. */
@ -974,7 +974,7 @@ function wp_theme_auto_update_setting_template() {
<div class="notice notice-error notice-alt notice-large"><p> <div class="notice notice-error notice-alt notice-large"><p>
<# if ( ! data.compatibleWP && ! data.compatiblePHP ) { #> <# if ( ! data.compatibleWP && ! data.compatiblePHP ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your versions of WordPress and PHP.' ); _e( 'This theme does not work with your versions of WordPress and PHP.' );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
printf( printf(
/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
@ -1000,7 +1000,7 @@ function wp_theme_auto_update_setting_template() {
?> ?>
<# } else if ( ! data.compatibleWP ) { #> <# } else if ( ! data.compatibleWP ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your version of WordPress.' ); _e( 'This theme does not work with your version of WordPress.' );
if ( current_user_can( 'update_core' ) ) { if ( current_user_can( 'update_core' ) ) {
printf( printf(
/* translators: %s: URL to WordPress Updates screen. */ /* translators: %s: URL to WordPress Updates screen. */
@ -1011,7 +1011,7 @@ function wp_theme_auto_update_setting_template() {
?> ?>
<# } else if ( ! data.compatiblePHP ) { #> <# } else if ( ! data.compatiblePHP ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your version of PHP.' ); _e( 'This theme does not work with your version of PHP.' );
if ( current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_php' ) ) {
printf( printf(
/* translators: %s: URL to Update PHP page. */ /* translators: %s: URL to Update PHP page. */
@ -1039,7 +1039,7 @@ function wp_theme_auto_update_setting_template() {
<?php <?php
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your versions of WordPress and PHP.' ), __( 'There is a new version of %s available, but it does not work with your versions of WordPress and PHP.' ),
'{{{ data.name }}}' '{{{ data.name }}}'
); );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
@ -1069,7 +1069,7 @@ function wp_theme_auto_update_setting_template() {
<?php <?php
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your version of WordPress.' ), __( 'There is a new version of %s available, but it does not work with your version of WordPress.' ),
'{{{ data.name }}}' '{{{ data.name }}}'
); );
if ( current_user_can( 'update_core' ) ) { if ( current_user_can( 'update_core' ) ) {
@ -1084,7 +1084,7 @@ function wp_theme_auto_update_setting_template() {
<?php <?php
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your version of PHP.' ), __( 'There is a new version of %s available, but it does not work with your version of PHP.' ),
'{{{ data.name }}}' '{{{ data.name }}}'
); );
if ( current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_php' ) ) {

View File

@ -535,7 +535,7 @@ function list_plugin_updates() {
$compatible_php = is_php_version_compatible( $requires_php ); $compatible_php = is_php_version_compatible( $requires_php );
if ( ! $compatible_php && current_user_can( 'update_php' ) ) { if ( ! $compatible_php && current_user_can( 'update_php' ) ) {
$compat .= '<br>' . __( 'This update doesn&#8217;t work with your version of PHP.' ) . '&nbsp;'; $compat .= '<br>' . __( 'This update does not work with your version of PHP.' ) . '&nbsp;';
$compat .= sprintf( $compat .= sprintf(
/* translators: %s: URL to Update PHP page. */ /* translators: %s: URL to Update PHP page. */
__( '<a href="%s">Learn more about updating PHP</a>.' ), __( '<a href="%s">Learn more about updating PHP</a>.' ),
@ -681,7 +681,7 @@ function list_theme_updates() {
$compat = ''; $compat = '';
if ( ! $compatible_wp && ! $compatible_php ) { if ( ! $compatible_wp && ! $compatible_php ) {
$compat .= '<br>' . __( 'This update doesn&#8217;t work with your versions of WordPress and PHP.' ) . '&nbsp;'; $compat .= '<br>' . __( 'This update does not work with your versions of WordPress and PHP.' ) . '&nbsp;';
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
$compat .= sprintf( $compat .= sprintf(
/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
@ -715,7 +715,7 @@ function list_theme_updates() {
} }
} }
} elseif ( ! $compatible_wp ) { } elseif ( ! $compatible_wp ) {
$compat .= '<br>' . __( 'This update doesn&#8217;t work with your version of WordPress.' ) . '&nbsp;'; $compat .= '<br>' . __( 'This update does not work with your version of WordPress.' ) . '&nbsp;';
if ( current_user_can( 'update_core' ) ) { if ( current_user_can( 'update_core' ) ) {
$compat .= sprintf( $compat .= sprintf(
/* translators: %s: URL to WordPress Updates screen. */ /* translators: %s: URL to WordPress Updates screen. */
@ -724,7 +724,7 @@ function list_theme_updates() {
); );
} }
} elseif ( ! $compatible_php ) { } elseif ( ! $compatible_php ) {
$compat .= '<br>' . __( 'This update doesn&#8217;t work with your version of PHP.' ) . '&nbsp;'; $compat .= '<br>' . __( 'This update does not work with your version of PHP.' ) . '&nbsp;';
if ( current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_php' ) ) {
$compat .= sprintf( $compat .= sprintf(
/* translators: %s: URL to Update PHP page. */ /* translators: %s: URL to Update PHP page. */

View File

@ -258,11 +258,11 @@ $help = '<p>' . __( 'To add a new user to your site, fill in the form on this sc
if ( is_multisite() ) { if ( is_multisite() ) {
$help .= '<p>' . __( 'Because this is a multisite installation, you may add accounts that already exist on the Network by specifying a username or email, and defining a role. For more options, such as specifying a password, you have to be a Network Administrator and use the hover link under an existing user&#8217;s name to Edit the user profile under Network Admin > All Users.' ) . '</p>' . $help .= '<p>' . __( 'Because this is a multisite installation, you may add accounts that already exist on the Network by specifying a username or email, and defining a role. For more options, such as specifying a password, you have to be a Network Administrator and use the hover link under an existing user&#8217;s name to Edit the user profile under Network Admin > All Users.' ) . '</p>' .
'<p>' . __( 'New users will receive an email letting them know they&#8217;ve been added as a user for your site. This email will also contain their password. Check the box if you don&#8217;t want the user to receive a welcome email.' ) . '</p>'; '<p>' . __( 'New users will receive an email letting them know they&#8217;ve been added as a user for your site. This email will also contain their password. Check the box if you do not want the user to receive a welcome email.' ) . '</p>';
} else { } else {
$help .= '<p>' . __( 'New users are automatically assigned a password, which they can change after logging in. You can view or edit the assigned password by clicking the Show Password button. The username cannot be changed once the user has been added.' ) . '</p>' . $help .= '<p>' . __( 'New users are automatically assigned a password, which they can change after logging in. You can view or edit the assigned password by clicking the Show Password button. The username cannot be changed once the user has been added.' ) . '</p>' .
'<p>' . __( 'By default, new users will receive an email letting them know they&#8217;ve been added as a user for your site. This email will also contain a password reset link. Uncheck the box if you don&#8217;t want to send the new user a welcome email.' ) . '</p>'; '<p>' . __( 'By default, new users will receive an email letting them know they&#8217;ve been added as a user for your site. This email will also contain a password reset link. Uncheck the box if you do not want to send the new user a welcome email.' ) . '</p>';
} }
$help .= '<p>' . __( 'Remember to click the Add New User button at the bottom of this screen when you are finished.' ) . '</p>'; $help .= '<p>' . __( 'Remember to click the Add New User button at the bottom of this screen when you are finished.' ) . '</p>';

View File

@ -402,7 +402,7 @@ switch ( $wp_list_table->current_action() ) {
check_admin_referer( 'remove-users' ); check_admin_referer( 'remove-users' );
if ( ! is_multisite() ) { if ( ! is_multisite() ) {
wp_die( __( 'You can&#8217;t remove users.' ), 400 ); wp_die( __( 'You cannot remove users.' ), 400 );
} }
if ( empty( $_REQUEST['users'] ) ) { if ( empty( $_REQUEST['users'] ) ) {
@ -434,7 +434,7 @@ switch ( $wp_list_table->current_action() ) {
check_admin_referer( 'bulk-users' ); check_admin_referer( 'bulk-users' );
if ( ! is_multisite() ) { if ( ! is_multisite() ) {
wp_die( __( 'You can&#8217;t remove users.' ), 400 ); wp_die( __( 'You cannot remove users.' ), 400 );
} }
if ( empty( $_REQUEST['users'] ) && empty( $_REQUEST['user'] ) ) { if ( empty( $_REQUEST['users'] ) && empty( $_REQUEST['user'] ) ) {
@ -575,14 +575,14 @@ switch ( $wp_list_table->current_action() ) {
$messages[] = '<div id="message" class="updated notice is-dismissible"><p>' . __( 'Other user roles have been changed.' ) . '</p></div>'; $messages[] = '<div id="message" class="updated notice is-dismissible"><p>' . __( 'Other user roles have been changed.' ) . '</p></div>';
break; break;
case 'err_admin_del': case 'err_admin_del':
$messages[] = '<div id="message" class="error notice is-dismissible"><p>' . __( 'You can&#8217;t delete the current user.' ) . '</p></div>'; $messages[] = '<div id="message" class="error notice is-dismissible"><p>' . __( 'You cannot delete the current user.' ) . '</p></div>';
$messages[] = '<div id="message" class="updated notice is-dismissible"><p>' . __( 'Other users have been deleted.' ) . '</p></div>'; $messages[] = '<div id="message" class="updated notice is-dismissible"><p>' . __( 'Other users have been deleted.' ) . '</p></div>';
break; break;
case 'remove': case 'remove':
$messages[] = '<div id="message" class="updated notice is-dismissible fade"><p>' . __( 'User removed from this site.' ) . '</p></div>'; $messages[] = '<div id="message" class="updated notice is-dismissible fade"><p>' . __( 'User removed from this site.' ) . '</p></div>';
break; break;
case 'err_admin_remove': case 'err_admin_remove':
$messages[] = '<div id="message" class="error notice is-dismissible"><p>' . __( "You can't remove the current user." ) . '</p></div>'; $messages[] = '<div id="message" class="error notice is-dismissible"><p>' . __( 'You cannot remove the current user.' ) . '</p></div>';
$messages[] = '<div id="message" class="updated notice is-dismissible fade"><p>' . __( 'Other users have been removed.' ) . '</p></div>'; $messages[] = '<div id="message" class="updated notice is-dismissible fade"><p>' . __( 'Other users have been removed.' ) . '</p></div>';
break; break;
} }

View File

@ -260,18 +260,18 @@ class Text_Diff {
function _check($from_lines, $to_lines) function _check($from_lines, $to_lines)
{ {
if (serialize($from_lines) != serialize($this->getOriginal())) { if (serialize($from_lines) != serialize($this->getOriginal())) {
trigger_error("Reconstructed original doesn't match", E_USER_ERROR); trigger_error("Reconstructed original does not match", E_USER_ERROR);
} }
if (serialize($to_lines) != serialize($this->getFinal())) { if (serialize($to_lines) != serialize($this->getFinal())) {
trigger_error("Reconstructed final doesn't match", E_USER_ERROR); trigger_error("Reconstructed final does not match", E_USER_ERROR);
} }
$rev = $this->reverse(); $rev = $this->reverse();
if (serialize($to_lines) != serialize($rev->getOriginal())) { if (serialize($to_lines) != serialize($rev->getOriginal())) {
trigger_error("Reversed original doesn't match", E_USER_ERROR); trigger_error("Reversed original does not match", E_USER_ERROR);
} }
if (serialize($from_lines) != serialize($rev->getFinal())) { if (serialize($from_lines) != serialize($rev->getFinal())) {
trigger_error("Reversed final doesn't match", E_USER_ERROR); trigger_error("Reversed final does not match", E_USER_ERROR);
} }
$prevtype = null; $prevtype = null;

View File

@ -1119,7 +1119,7 @@ final class WP_Customize_Nav_Menus {
<script type="text/html" id="tmpl-nav-menu-create-menu-section-title"> <script type="text/html" id="tmpl-nav-menu-create-menu-section-title">
<p class="add-new-menu-notice"> <p class="add-new-menu-notice">
<?php _e( 'It doesn&#8217;t look like your site has any menus yet. Want to build one? Click the button to start.' ); ?> <?php _e( 'It does not look like your site has any menus yet. Want to build one? Click the button to start.' ); ?>
</p> </p>
<p class="add-new-menu-notice"> <p class="add-new-menu-notice">
<?php _e( 'You&#8217;ll create a menu, assign it a location, and add menu items like links to pages and categories. If your theme has multiple menu areas, you might need to create more than one.' ); ?> <?php _e( 'You&#8217;ll create a menu, assign it a location, and add menu items like links to pages and categories. If your theme has multiple menu areas, you might need to create more than one.' ); ?>

View File

@ -747,7 +747,7 @@ final class WP_Customize_Widgets {
*/ */
$some_non_rendered_areas_messages = array(); $some_non_rendered_areas_messages = array();
$some_non_rendered_areas_messages[1] = html_entity_decode( $some_non_rendered_areas_messages[1] = html_entity_decode(
__( 'Your theme has 1 other widget area, but this particular page doesn&#8217;t display it.' ), __( 'Your theme has 1 other widget area, but this particular page does not display it.' ),
ENT_QUOTES, ENT_QUOTES,
get_bloginfo( 'charset' ) get_bloginfo( 'charset' )
); );
@ -757,8 +757,8 @@ final class WP_Customize_Widgets {
sprintf( sprintf(
/* translators: %s: The number of other widget areas registered but not rendered. */ /* translators: %s: The number of other widget areas registered but not rendered. */
_n( _n(
'Your theme has %s other widget area, but this particular page doesn&#8217;t display it.', 'Your theme has %s other widget area, but this particular page does not display it.',
'Your theme has %s other widget areas, but this particular page doesn&#8217;t display them.', 'Your theme has %s other widget areas, but this particular page does not display them.',
$non_rendered_count $non_rendered_count
), ),
number_format_i18n( $non_rendered_count ) number_format_i18n( $non_rendered_count )
@ -771,7 +771,7 @@ final class WP_Customize_Widgets {
if ( 1 === $registered_sidebar_count ) { if ( 1 === $registered_sidebar_count ) {
$no_areas_shown_message = html_entity_decode( $no_areas_shown_message = html_entity_decode(
sprintf( sprintf(
__( 'Your theme has 1 widget area, but this particular page doesn&#8217;t display it.' ) __( 'Your theme has 1 widget area, but this particular page does not display it.' )
), ),
ENT_QUOTES, ENT_QUOTES,
get_bloginfo( 'charset' ) get_bloginfo( 'charset' )
@ -781,8 +781,8 @@ final class WP_Customize_Widgets {
sprintf( sprintf(
/* translators: %s: The total number of widget areas registered. */ /* translators: %s: The total number of widget areas registered. */
_n( _n(
'Your theme has %s widget area, but this particular page doesn&#8217;t display it.', 'Your theme has %s widget area, but this particular page does not display it.',
'Your theme has %s widget areas, but this particular page doesn&#8217;t display them.', 'Your theme has %s widget areas, but this particular page does not display them.',
$registered_sidebar_count $registered_sidebar_count
), ),
number_format_i18n( $registered_sidebar_count ) number_format_i18n( $registered_sidebar_count )

View File

@ -1355,7 +1355,7 @@ final class _WP_Editors {
'Words: {0}' => sprintf( __( 'Words: %s' ), '{0}' ), 'Words: {0}' => sprintf( __( 'Words: %s' ), '{0}' ),
'Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.' => 'Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.' =>
__( 'Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.' ) . "\n\n" . __( 'Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.' ) . "\n\n" .
__( 'If you&#8217;re looking to paste rich content from Microsoft Word, try turning this option off. The editor will clean up text pasted from Word automatically.' ), __( 'If you are looking to paste rich content from Microsoft Word, try turning this option off. The editor will clean up text pasted from Word automatically.' ),
'Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help' => 'Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help' =>
__( 'Rich Text Area. Press Alt-Shift-H for help.' ), __( 'Rich Text Area. Press Alt-Shift-H for help.' ),
'Rich Text Area. Press Control-Option-H for help.' => __( 'Rich Text Area. Press Control-Option-H for help.' ), 'Rich Text Area. Press Control-Option-H for help.' => __( 'Rich Text Area. Press Control-Option-H for help.' ),

View File

@ -89,7 +89,7 @@ class WP_Image_Editor_GD extends WP_Image_Editor {
} }
if ( ! is_file( $this->file ) && ! preg_match( '|^https?://|', $this->file ) ) { if ( ! is_file( $this->file ) && ! preg_match( '|^https?://|', $this->file ) ) {
return new WP_Error( 'error_loading_image', __( 'File doesn&#8217;t exist?' ), $this->file ); return new WP_Error( 'error_loading_image', __( 'File does not exist?' ), $this->file );
} }
// Set artificially high because GD uses uncompressed images in memory. // Set artificially high because GD uses uncompressed images in memory.
@ -98,7 +98,7 @@ class WP_Image_Editor_GD extends WP_Image_Editor {
$file_contents = @file_get_contents( $this->file ); $file_contents = @file_get_contents( $this->file );
if ( ! $file_contents ) { if ( ! $file_contents ) {
return new WP_Error( 'error_loading_image', __( 'File doesn&#8217;t exist?' ), $this->file ); return new WP_Error( 'error_loading_image', __( 'File does not exist?' ), $this->file );
} }
// WebP may not work with imagecreatefromstring(). // WebP may not work with imagecreatefromstring().

View File

@ -129,7 +129,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
} }
if ( ! is_file( $this->file ) && ! wp_is_stream( $this->file ) ) { if ( ! is_file( $this->file ) && ! wp_is_stream( $this->file ) ) {
return new WP_Error( 'error_loading_image', __( 'File doesn&#8217;t exist?' ), $this->file ); return new WP_Error( 'error_loading_image', __( 'File does not exist?' ), $this->file );
} }
/* /*

View File

@ -282,7 +282,7 @@ final class WP_Theme implements ArrayAccess {
) )
); );
if ( ! file_exists( $this->theme_root ) ) { // Don't cache this one. if ( ! file_exists( $this->theme_root ) ) { // Don't cache this one.
$this->errors->add( 'theme_root_missing', __( 'Error: The themes directory is either empty or doesn&#8217;t exist. Please check your installation.' ) ); $this->errors->add( 'theme_root_missing', __( 'Error: The themes directory is either empty or does not exist. Please check your installation.' ) );
} }
return; return;
} elseif ( ! is_readable( $this->theme_root . '/' . $theme_file ) ) { } elseif ( ! is_readable( $this->theme_root . '/' . $theme_file ) ) {

View File

@ -6894,14 +6894,14 @@ class wp_xmlrpc_server extends IXR_Server {
} }
} else { } else {
// TODO: Attempt to extract a post ID from the given URL. // TODO: Attempt to extract a post ID from the given URL.
return $this->pingback_error( 33, __( 'The specified target URL cannot be used as a target. It either doesn&#8217;t exist, or it is not a pingback-enabled resource.' ) ); return $this->pingback_error( 33, __( 'The specified target URL cannot be used as a target. It either does not exist, or it is not a pingback-enabled resource.' ) );
} }
$post_ID = (int) $post_ID; $post_ID = (int) $post_ID;
$post = get_post( $post_ID ); $post = get_post( $post_ID );
if ( ! $post ) { // Post not found. if ( ! $post ) { // Post not found.
return $this->pingback_error( 33, __( 'The specified target URL cannot be used as a target. It either doesn&#8217;t exist, or it is not a pingback-enabled resource.' ) ); return $this->pingback_error( 33, __( 'The specified target URL cannot be used as a target. It either does not exist, or it is not a pingback-enabled resource.' ) );
} }
if ( url_to_postid( $pagelinkedfrom ) == $post_ID ) { if ( url_to_postid( $pagelinkedfrom ) == $post_ID ) {
@ -6910,7 +6910,7 @@ class wp_xmlrpc_server extends IXR_Server {
// Check if pings are on. // Check if pings are on.
if ( ! pings_open( $post ) ) { if ( ! pings_open( $post ) ) {
return $this->pingback_error( 33, __( 'The specified target URL cannot be used as a target. It either doesn&#8217;t exist, or it is not a pingback-enabled resource.' ) ); return $this->pingback_error( 33, __( 'The specified target URL cannot be used as a target. It either does not exist, or it is not a pingback-enabled resource.' ) );
} }
// Let's check that the remote site didn't already pingback this entry. // Let's check that the remote site didn't already pingback this entry.
@ -7075,7 +7075,7 @@ class wp_xmlrpc_server extends IXR_Server {
$post_ID = url_to_postid( $url ); $post_ID = url_to_postid( $url );
if ( ! $post_ID ) { if ( ! $post_ID ) {
// We aren't sure that the resource is available and/or pingback enabled. // We aren't sure that the resource is available and/or pingback enabled.
return $this->pingback_error( 33, __( 'The specified target URL cannot be used as a target. It either doesn&#8217;t exist, or it is not a pingback-enabled resource.' ) ); return $this->pingback_error( 33, __( 'The specified target URL cannot be used as a target. It either does not exist, or it is not a pingback-enabled resource.' ) );
} }
$actual_post = get_post( $post_ID, ARRAY_A ); $actual_post = get_post( $post_ID, ARRAY_A );

View File

@ -43,7 +43,7 @@ class WP_Customize_Nav_Menu_Control extends WP_Customize_Control {
<?php <?php
printf( printf(
/* translators: %s: "Add Items" button text. */ /* translators: %s: "Add Items" button text. */
__( 'Time to add some links! Click &#8220;%s&#8221; to start putting pages, categories, and custom links in your menu. Add as many things as you&#8217;d like.' ), __( 'Time to add some links! Click &#8220;%s&#8221; to start putting pages, categories, and custom links in your menu. Add as many things as you would like.' ),
$add_items $add_items
); );
?> ?>

View File

@ -61,7 +61,7 @@ class WP_Customize_Nav_Menu_Locations_Control extends WP_Customize_Control {
?> ?>
</p> </p>
<# } else { #> <# } else { #>
<p><?php echo _x( 'Here&#8217;s where this menu appears. If you&#8217;d like to change that, pick another location.', 'menu locations' ); ?></p> <p><?php echo _x( 'Here&#8217;s where this menu appears. If you would like to change that, pick another location.', 'menu locations' ); ?></p>
<# } #> <# } #>
</li> </li>

View File

@ -113,7 +113,7 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
<?php <?php
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your versions of WordPress and PHP.' ), __( 'There is a new version of %s available, but it does not work with your versions of WordPress and PHP.' ),
'{{{ data.theme.name }}}' '{{{ data.theme.name }}}'
); );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
@ -143,7 +143,7 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
<?php <?php
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your version of WordPress.' ), __( 'There is a new version of %s available, but it does not work with your version of WordPress.' ),
'{{{ data.theme.name }}}' '{{{ data.theme.name }}}'
); );
if ( current_user_can( 'update_core' ) ) { if ( current_user_can( 'update_core' ) ) {
@ -158,7 +158,7 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
<?php <?php
printf( printf(
/* translators: %s: Theme name. */ /* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it doesn&#8217;t work with your version of PHP.' ), __( 'There is a new version of %s available, but it does not work with your version of PHP.' ),
'{{{ data.theme.name }}}' '{{{ data.theme.name }}}'
); );
if ( current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_php' ) ) {
@ -180,7 +180,7 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
<div class="notice notice-error notice-alt"><p> <div class="notice notice-error notice-alt"><p>
<# if ( ! data.theme.compatibleWP && ! data.theme.compatiblePHP ) { #> <# if ( ! data.theme.compatibleWP && ! data.theme.compatiblePHP ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your versions of WordPress and PHP.' ); _e( 'This theme does not work with your versions of WordPress and PHP.' );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
printf( printf(
/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
@ -206,7 +206,7 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
?> ?>
<# } else if ( ! data.theme.compatibleWP ) { #> <# } else if ( ! data.theme.compatibleWP ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your version of WordPress.' ); _e( 'This theme does not work with your version of WordPress.' );
if ( current_user_can( 'update_core' ) ) { if ( current_user_can( 'update_core' ) ) {
printf( printf(
/* translators: %s: URL to WordPress Updates screen. */ /* translators: %s: URL to WordPress Updates screen. */
@ -217,7 +217,7 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
?> ?>
<# } else if ( ! data.theme.compatiblePHP ) { #> <# } else if ( ! data.theme.compatiblePHP ) { #>
<?php <?php
_e( 'This theme doesn&#8217;t work with your version of PHP.' ); _e( 'This theme does not work with your version of PHP.' );
if ( current_user_can( 'update_php' ) ) { if ( current_user_can( 'update_php' ) ) {
printf( printf(
/* translators: %s: URL to Update PHP page. */ /* translators: %s: URL to Update PHP page. */

View File

@ -3192,7 +3192,7 @@ function wp_load_image( $file ) {
if ( ! is_file( $file ) ) { if ( ! is_file( $file ) ) {
/* translators: %s: File name. */ /* translators: %s: File name. */
return sprintf( __( 'File &#8220;%s&#8221; doesn&#8217;t exist?' ), $file ); return sprintf( __( 'File &#8220;%s&#8221; does not exist?' ), $file );
} }
if ( ! function_exists('imagecreatefromstring') ) if ( ! function_exists('imagecreatefromstring') )

View File

@ -495,7 +495,7 @@ function ms_not_installed( $domain, $path ) {
__( 'Read the <a href="%s" target="_blank">Debugging a WordPress Network</a> article. Some of the suggestions there may help you figure out what went wrong.' ), __( 'Read the <a href="%s" target="_blank">Debugging a WordPress Network</a> article. Some of the suggestions there may help you figure out what went wrong.' ),
__( 'https://wordpress.org/support/article/debugging-a-wordpress-network/' ) __( 'https://wordpress.org/support/article/debugging-a-wordpress-network/' )
); );
$msg .= ' ' . __( 'If you&#8217;re still stuck with this message, then check that your database contains the following tables:' ) . '</p><ul>'; $msg .= ' ' . __( 'If you are still stuck with this message, then check that your database contains the following tables:' ) . '</p><ul>';
foreach ( $wpdb->tables( 'global' ) as $t => $table ) { foreach ( $wpdb->tables( 'global' ) as $t => $table ) {
if ( 'sitecategories' === $t ) { if ( 'sitecategories' === $t ) {
continue; continue;

View File

@ -1713,7 +1713,7 @@ function register_post_type( $post_type, $args = array() ) {
/** /**
* Unregisters a post type. * Unregisters a post type.
* *
* Can not be used to unregister built-in post types. * Cannot be used to unregister built-in post types.
* *
* @since 4.5.0 * @since 4.5.0
* *

View File

@ -738,7 +738,7 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
if ( ! empty( $request['username'] ) && $request['username'] !== $user->user_login ) { if ( ! empty( $request['username'] ) && $request['username'] !== $user->user_login ) {
return new WP_Error( return new WP_Error(
'rest_user_invalid_argument', 'rest_user_invalid_argument',
__( "Username isn't editable." ), __( 'Username is not editable.' ),
array( 'status' => 400 ) array( 'status' => 400 )
); );
} }

View File

@ -761,7 +761,7 @@ class RSSCache {
if ( ! $rss = get_transient( $cache_option ) ) { if ( ! $rss = get_transient( $cache_option ) ) {
$this->debug( $this->debug(
"Cache doesn't contain: $url (cache option: $cache_option)" "Cache does not contain: $url (cache option: $cache_option)"
); );
return 0; return 0;
} }

View File

@ -1192,7 +1192,7 @@ function wp_default_scripts( $scripts ) {
'takenOverMessage' => __( '%s has taken over and is currently customizing.' ), 'takenOverMessage' => __( '%s has taken over and is currently customizing.' ),
/* translators: %s: URL to the Customizer to load the autosaved version. */ /* translators: %s: URL to the Customizer to load the autosaved version. */
'autosaveNotice' => __( 'There is a more recent autosave of your changes than the one you are previewing. <a href="%s">Restore the autosave</a>' ), 'autosaveNotice' => __( 'There is a more recent autosave of your changes than the one you are previewing. <a href="%s">Restore the autosave</a>' ),
'videoHeaderNotice' => __( 'This theme doesn&#8217;t support video headers on this page. Navigate to the front page or another page that supports video headers.' ), 'videoHeaderNotice' => __( 'This theme does not support video headers on this page. Navigate to the front page or another page that supports video headers.' ),
// Used for overriding the file types allowed in Plupload. // Used for overriding the file types allowed in Plupload.
'allowedFiles' => __( 'Allowed Files' ), 'allowedFiles' => __( 'Allowed Files' ),
'customCssError' => array( 'customCssError' => array(
@ -1211,10 +1211,10 @@ function wp_default_scripts( $scripts ) {
// @todo This is lacking, as some languages have a dedicated dual form. For proper handling of plurals in JS, see #20491. // @todo This is lacking, as some languages have a dedicated dual form. For proper handling of plurals in JS, see #20491.
), ),
'scheduleDescription' => __( 'Schedule your customization changes to publish ("go live") at a future date.' ), 'scheduleDescription' => __( 'Schedule your customization changes to publish ("go live") at a future date.' ),
'themePreviewUnavailable' => __( 'Sorry, you can&#8217;t preview new themes when you have changes scheduled or saved as a draft. Please publish your changes, or wait until they publish to preview new themes.' ), 'themePreviewUnavailable' => __( 'Sorry, you cannot preview new themes when you have changes scheduled or saved as a draft. Please publish your changes, or wait until they publish to preview new themes.' ),
'themeInstallUnavailable' => sprintf( 'themeInstallUnavailable' => sprintf(
/* translators: %s: URL to Add Themes admin screen. */ /* translators: %s: URL to Add Themes admin screen. */
__( 'You won&#8217;t be able to install new themes from here yet since your install requires SFTP credentials. For now, please <a href="%s">add themes in the admin</a>.' ), __( 'You will not be able to install new themes from here yet since your install requires SFTP credentials. For now, please <a href="%s">add themes in the admin</a>.' ),
esc_url( admin_url( 'theme-install.php' ) ) esc_url( admin_url( 'theme-install.php' ) )
), ),
'publishSettings' => __( 'Publish Settings' ), 'publishSettings' => __( 'Publish Settings' ),

View File

@ -11,7 +11,7 @@
*/ */
?> ?>
<div class="wp-embed"> <div class="wp-embed">
<p class="wp-embed-heading"><?php _e( 'Oops! That embed can&#8217;t be found.' ); ?></p> <p class="wp-embed-heading"><?php _e( 'Oops! That embed cannot be found.' ); ?></p>
<div class="wp-embed-excerpt"> <div class="wp-embed-excerpt">
<p> <p>

View File

@ -3177,7 +3177,7 @@ function register_new_user( $user_login, $user_email ) {
if ( '' === $user_email ) { if ( '' === $user_email ) {
$errors->add( 'empty_email', __( '<strong>Error</strong>: Please type your email address.' ) ); $errors->add( 'empty_email', __( '<strong>Error</strong>: Please type your email address.' ) );
} elseif ( ! is_email( $user_email ) ) { } elseif ( ! is_email( $user_email ) ) {
$errors->add( 'invalid_email', __( '<strong>Error</strong>: The email address isn&#8217;t correct.' ) ); $errors->add( 'invalid_email', __( '<strong>Error</strong>: The email address is not correct.' ) );
$user_email = ''; $user_email = '';
} elseif ( email_exists( $user_email ) ) { } elseif ( email_exists( $user_email ) ) {
$errors->add( $errors->add(
@ -3232,7 +3232,7 @@ function register_new_user( $user_login, $user_email ) {
'registerfail', 'registerfail',
sprintf( sprintf(
/* translators: %s: Admin email address. */ /* translators: %s: Admin email address. */
__( '<strong>Error</strong>: Couldn&#8217;t register you&hellip; please contact the <a href="mailto:%s">site admin</a>!' ), __( '<strong>Error</strong>: Could not register you&hellip; please contact the <a href="mailto:%s">site admin</a>!' ),
get_option( 'admin_email' ) get_option( 'admin_email' )
) )
); );
@ -3475,7 +3475,7 @@ function send_confirmation_on_profile_email() {
if ( ! is_email( $_POST['email'] ) ) { if ( ! is_email( $_POST['email'] ) ) {
$errors->add( $errors->add(
'user_email', 'user_email',
__( '<strong>Error</strong>: The email address isn&#8217;t correct.' ), __( '<strong>Error</strong>: The email address is not correct.' ),
array( array(
'form-field' => 'email', 'form-field' => 'email',
) )

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.0-alpha-52977'; $wp_version = '6.0-alpha-52978';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -41,13 +41,13 @@ class WP_Widget_Media_Audio extends WP_Widget_Media {
'edit_media' => _x( 'Edit Audio', 'label for button in the audio widget; should preferably not be longer than ~13 characters long' ), 'edit_media' => _x( 'Edit Audio', 'label for button in the audio widget; should preferably not be longer than ~13 characters long' ),
'missing_attachment' => sprintf( 'missing_attachment' => sprintf(
/* translators: %s: URL to media library. */ /* translators: %s: URL to media library. */
__( 'We can&#8217;t find that audio file. Check your <a href="%s">media library</a> and make sure it wasn&#8217;t deleted.' ), __( 'We cannot find that audio file. Check your <a href="%s">media library</a> and make sure it was not deleted.' ),
esc_url( admin_url( 'upload.php' ) ) esc_url( admin_url( 'upload.php' ) )
), ),
/* translators: %d: Widget count. */ /* translators: %d: Widget count. */
'media_library_state_multi' => _n_noop( 'Audio Widget (%d)', 'Audio Widget (%d)' ), 'media_library_state_multi' => _n_noop( 'Audio Widget (%d)', 'Audio Widget (%d)' ),
'media_library_state_single' => __( 'Audio Widget' ), 'media_library_state_single' => __( 'Audio Widget' ),
'unsupported_file_type' => __( 'Looks like this isn&#8217;t the correct kind of file. Please link to an audio file instead.' ), 'unsupported_file_type' => __( 'Looks like this is not the correct kind of file. Please link to an audio file instead.' ),
) )
); );
} }

View File

@ -41,7 +41,7 @@ class WP_Widget_Media_Image extends WP_Widget_Media {
'edit_media' => _x( 'Edit Image', 'label for button in the image widget; should preferably not be longer than ~13 characters long' ), 'edit_media' => _x( 'Edit Image', 'label for button in the image widget; should preferably not be longer than ~13 characters long' ),
'missing_attachment' => sprintf( 'missing_attachment' => sprintf(
/* translators: %s: URL to media library. */ /* translators: %s: URL to media library. */
__( 'We can&#8217;t find that image. Check your <a href="%s">media library</a> and make sure it wasn&#8217;t deleted.' ), __( 'We cannot find that image. Check your <a href="%s">media library</a> and make sure it was not deleted.' ),
esc_url( admin_url( 'upload.php' ) ) esc_url( admin_url( 'upload.php' ) )
), ),
/* translators: %d: Widget count. */ /* translators: %d: Widget count. */

View File

@ -41,14 +41,14 @@ class WP_Widget_Media_Video extends WP_Widget_Media {
'edit_media' => _x( 'Edit Video', 'label for button in the video widget; should preferably not be longer than ~13 characters long' ), 'edit_media' => _x( 'Edit Video', 'label for button in the video widget; should preferably not be longer than ~13 characters long' ),
'missing_attachment' => sprintf( 'missing_attachment' => sprintf(
/* translators: %s: URL to media library. */ /* translators: %s: URL to media library. */
__( 'We can&#8217;t find that video. Check your <a href="%s">media library</a> and make sure it wasn&#8217;t deleted.' ), __( 'We cannot find that video. Check your <a href="%s">media library</a> and make sure it was not deleted.' ),
esc_url( admin_url( 'upload.php' ) ) esc_url( admin_url( 'upload.php' ) )
), ),
/* translators: %d: Widget count. */ /* translators: %d: Widget count. */
'media_library_state_multi' => _n_noop( 'Video Widget (%d)', 'Video Widget (%d)' ), 'media_library_state_multi' => _n_noop( 'Video Widget (%d)', 'Video Widget (%d)' ),
'media_library_state_single' => __( 'Video Widget' ), 'media_library_state_single' => __( 'Video Widget' ),
/* translators: %s: A list of valid video file extensions. */ /* translators: %s: A list of valid video file extensions. */
'unsupported_file_type' => sprintf( __( 'Sorry, we can&#8217;t load the video at the supplied URL. Please check that the URL is for a supported video file (%s) or stream (e.g. YouTube and Vimeo).' ), '<code>.' . implode( '</code>, <code>.', wp_get_video_extensions() ) . '</code>' ), 'unsupported_file_type' => sprintf( __( 'Sorry, we cannot load the video at the supplied URL. Please check that the URL is for a supported video file (%s) or stream (e.g. YouTube and Vimeo).' ), '<code>.' . implode( '</code>, <code>.', wp_get_video_extensions() ) . '</code>' ),
) )
); );
} }

View File

@ -74,13 +74,13 @@ abstract class WP_Widget_Media extends WP_Widget {
'add_to_widget' => __( 'Add to Widget' ), 'add_to_widget' => __( 'Add to Widget' ),
'missing_attachment' => sprintf( 'missing_attachment' => sprintf(
/* translators: %s: URL to media library. */ /* translators: %s: URL to media library. */
__( 'We can&#8217;t find that file. Check your <a href="%s">media library</a> and make sure it wasn&#8217;t deleted.' ), __( 'We cannot find that file. Check your <a href="%s">media library</a> and make sure it was not deleted.' ),
esc_url( admin_url( 'upload.php' ) ) esc_url( admin_url( 'upload.php' ) )
), ),
/* translators: %d: Widget count. */ /* translators: %d: Widget count. */
'media_library_state_multi' => _n_noop( 'Media Widget (%d)', 'Media Widget (%d)' ), 'media_library_state_multi' => _n_noop( 'Media Widget (%d)', 'Media Widget (%d)' ),
'media_library_state_single' => __( 'Media Widget' ), 'media_library_state_single' => __( 'Media Widget' ),
'unsupported_file_type' => __( 'Looks like this isn&#8217;t the correct kind of file. Please link to an appropriate file instead.' ), 'unsupported_file_type' => __( 'Looks like this is not the correct kind of file. Please link to an appropriate file instead.' ),
); );
$this->l10n = array_merge( $l10n_defaults, array_filter( $this->l10n ) ); $this->l10n = array_merge( $l10n_defaults, array_filter( $this->l10n ) );

View File

@ -496,7 +496,7 @@ class WP_Widget_Text extends WP_Widget {
<?php if ( ! isset( $instance['visual'] ) ) : ?> <?php if ( ! isset( $instance['visual'] ) ) : ?>
<p><?php _e( 'This widget may contain code that may work better in the &#8220;Custom HTML&#8221; widget. How about trying that widget instead?' ); ?></p> <p><?php _e( 'This widget may contain code that may work better in the &#8220;Custom HTML&#8221; widget. How about trying that widget instead?' ); ?></p>
<?php else : ?> <?php else : ?>
<p><?php _e( 'This widget may have contained code that may work better in the &#8220;Custom HTML&#8221; widget. If you haven&#8217;t yet, how about trying that widget instead?' ); ?></p> <p><?php _e( 'This widget may have contained code that may work better in the &#8220;Custom HTML&#8221; widget. If you have not yet, how about trying that widget instead?' ); ?></p>
<?php endif; ?> <?php endif; ?>
</div> </div>
<p> <p>

View File

@ -1182,7 +1182,7 @@ class wpdb {
if ( ! did_action( 'template_redirect' ) ) { if ( ! did_action( 'template_redirect' ) ) {
wp_load_translations_early(); wp_load_translations_early();
$message = '<h1>' . __( 'Can&#8217;t select database' ) . "</h1>\n"; $message = '<h1>' . __( 'Cannot select database' ) . "</h1>\n";
$message .= '<p>' . sprintf( $message .= '<p>' . sprintf(
/* translators: %s: Database name. */ /* translators: %s: Database name. */
@ -1210,7 +1210,7 @@ class wpdb {
$message .= '<p>' . sprintf( $message .= '<p>' . sprintf(
/* translators: %s: Support forums URL. */ /* translators: %s: Support forums URL. */
__( 'If you don&#8217;t know how to set up a database you should <strong>contact your host</strong>. If all else fails you may find help at the <a href="%s">WordPress Support Forums</a>.' ), __( 'If you do not know how to set up a database you should <strong>contact your host</strong>. If all else fails you may find help at the <a href="%s">WordPress Support Forums</a>.' ),
__( 'https://wordpress.org/support/forums/' ) __( 'https://wordpress.org/support/forums/' )
) . "</p>\n"; ) . "</p>\n";
@ -1802,7 +1802,7 @@ class wpdb {
$message .= '<p>' . sprintf( $message .= '<p>' . sprintf(
/* translators: 1: wp-config.php, 2: Database host. */ /* translators: 1: wp-config.php, 2: Database host. */
__( 'This either means that the username and password information in your %1$s file is incorrect or we can&#8217;t contact the database server at %2$s. This could mean your host&#8217;s database server is down.' ), __( 'This either means that the username and password information in your %1$s file is incorrect or we cannot contact the database server at %2$s. This could mean your host&#8217;s database server is down.' ),
'<code>wp-config.php</code>', '<code>wp-config.php</code>',
'<code>' . htmlspecialchars( $this->dbhost, ENT_QUOTES ) . '</code>' '<code>' . htmlspecialchars( $this->dbhost, ENT_QUOTES ) . '</code>'
) . "</p>\n"; ) . "</p>\n";
@ -1815,7 +1815,7 @@ class wpdb {
$message .= '<p>' . sprintf( $message .= '<p>' . sprintf(
/* translators: %s: Support forums URL. */ /* translators: %s: Support forums URL. */
__( 'If you&#8217;re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the <a href="%s">WordPress Support Forums</a>.' ), __( 'If you are unsure what these terms mean you should probably contact your host. If you still need help you can always visit the <a href="%s">WordPress Support Forums</a>.' ),
__( 'https://wordpress.org/support/forums/' ) __( 'https://wordpress.org/support/forums/' )
) . "</p>\n"; ) . "</p>\n";
@ -1972,7 +1972,7 @@ class wpdb {
$message .= '<p>' . sprintf( $message .= '<p>' . sprintf(
/* translators: %s: Support forums URL. */ /* translators: %s: Support forums URL. */
__( 'If you&#8217;re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the <a href="%s">WordPress Support Forums</a>.' ), __( 'If you are unsure what these terms mean you should probably contact your host. If you still need help you can always visit the <a href="%s">WordPress Support Forums</a>.' ),
__( 'https://wordpress.org/support/forums/' ) __( 'https://wordpress.org/support/forums/' )
) . "</p>\n"; ) . "</p>\n";

View File

@ -62,7 +62,7 @@ if ( false === $count ) {
if ( 0 === $count ) { if ( 0 === $count ) {
$pop3->quit(); $pop3->quit();
wp_die( __( 'There doesn&#8217;t seem to be any new mail.' ) ); wp_die( __( 'There does not seem to be any new mail.' ) );
} }
for ( $i = 1; $i <= $count; $i++ ) { for ( $i = 1; $i <= $count; $i++ ) {

View File

@ -373,7 +373,7 @@ function signup_another_blog( $blogname = '', $blog_title = '', $errors = '' ) {
</ul> </ul>
<?php } ?> <?php } ?>
<p><?php _e( 'If you&#8217;re not going to use a great site domain, leave it for a new user. Now have at it!' ); ?></p> <p><?php _e( 'If you are not going to use a great site domain, leave it for a new user. Now have at it!' ); ?></p>
<form id="setupform" method="post" action="wp-signup.php"> <form id="setupform" method="post" action="wp-signup.php">
<input type="hidden" name="stage" value="gimmeanotherblog" /> <input type="hidden" name="stage" value="gimmeanotherblog" />
<?php <?php
@ -842,7 +842,7 @@ function confirm_blog_signup( $domain, $path, $blog_title, $user_name = '', $use
<p><?php _e( 'If you do not activate your site within two days, you will have to sign up again.' ); ?></p> <p><?php _e( 'If you do not activate your site within two days, you will have to sign up again.' ); ?></p>
<h2><?php _e( 'Still waiting for your email?' ); ?></h2> <h2><?php _e( 'Still waiting for your email?' ); ?></h2>
<p> <p>
<?php _e( 'If you haven&#8217;t received your email yet, there are a number of things you can do:' ); ?> <?php _e( 'If you have not received your email yet, there are a number of things you can do:' ); ?>
<ul id="noemail-tips"> <ul id="noemail-tips">
<li><p><strong><?php _e( 'Wait a little longer. Sometimes delivery of email can be delayed by processes outside of our control.' ); ?></strong></p></li> <li><p><strong><?php _e( 'Wait a little longer. Sometimes delivery of email can be delayed by processes outside of our control.' ); ?></strong></p></li>
<li><p><?php _e( 'Check the junk or spam folder of your email client. Sometime emails wind up there by mistake.' ); ?></p></li> <li><p><?php _e( 'Check the junk or spam folder of your email client. Sometime emails wind up there by mistake.' ); ?></p></li>