Ticket #38913: 38913.2.patch
File 38913.2.patch, 79.1 KB (added by , 22 months ago) |
---|
-
src/wp-includes/script-loader.php
1449 1449 'takenOverMessage' => __( '%s has taken over and is currently customizing.' ), 1450 1450 /* translators: %s: URL to the Customizer to load the autosaved version */ 1451 1451 'autosaveNotice' => __( 'There is a more recent autosave of your changes than the one you are previewing. <a href="%s">Restore the autosave</a>' ), 1452 'videoHeaderNotice' => __( 'This theme does n’t support video headers on this page. Navigate to the front page or another page that supports video headers.' ),1452 'videoHeaderNotice' => __( 'This theme does not support video headers on this page. Navigate to the front page or another page that supports video headers.' ), 1453 1453 // Used for overriding the file types allowed in plupload. 1454 1454 'allowedFiles' => __( 'Allowed Files' ), 1455 1455 'customCssError' => array( … … 1466 1466 'plural' => _n( 'Unable to save due to %s invalid setting.', 'Unable to save due to %s invalid settings.', 2 ), // @todo This is lacking, as some languages have a dedicated dual form. For proper handling of plurals in JS, see #20491. 1467 1467 ), 1468 1468 'scheduleDescription' => __( 'Schedule your customization changes to publish ("go live") at a future date.' ), 1469 'themePreviewUnavailable' => __( 'Sorry, you can ’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.' ),1469 '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.' ), 1470 1470 'themeInstallUnavailable' => sprintf( 1471 1471 /* translators: %s: URL to Add Themes admin screen */ 1472 __( 'You w on’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>.' ),1472 __( '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>.' ), 1473 1473 esc_url( admin_url( 'theme-install.php' ) ) 1474 1474 ), 1475 1475 'publishSettings' => __( 'Publish Settings' ), … … 2289 2289 * or country. Use the endonym (native locale name) instead of the 2290 2290 * English name if possible. 2291 2291 */ 2292 'could_not_locate_city' => __( 'We could n’t locate %s. Please try another nearby city. For example: Kansas City; Springfield; Portland.' ),2292 'could_not_locate_city' => __( 'We could not locate %s. Please try another nearby city. For example: Kansas City; Springfield; Portland.' ), 2293 2293 2294 2294 // This one is only used with wp.a11y.speak(), so it can/should be more brief. 2295 2295 /* translators: %s: the name of a city */ -
src/wp-admin/custom-background.php
90 90 '<p>' . __( 'You can customize the look of your site without touching any of your theme’s code by using a custom background. Your background can be an image or a color.' ) . '</p>' . 91 91 '<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 “Choose Image” 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>' . 92 92 '<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. “#ff0000” for red, or by choosing a color using the color picker.' ) . '</p>' . 93 '<p>' . __( 'Do n’t forget to click on the Save Changes button when you are finished.' ) . '</p>',93 '<p>' . __( 'Do not forget to click on the Save Changes button when you are finished.' ) . '</p>', 94 94 ) 95 95 ); 96 96 -
src/wp-admin/custom-header.php
109 109 '<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 “Choose Image” button.' ) . '</p>' . 110 110 '<p>' . __( 'Some themes come with additional header images bundled. If you see multiple images displayed, select the one you’d like and click the “Save Changes” button.' ) . '</p>' . 111 111 '<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 “Random” radio button next to the Uploaded Images or Default Images section to enable this feature.' ) . '</p>' . 112 '<p>' . __( 'If you do n’t want a header image to be displayed on your site at all, click the “Remove Header Image” 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 “Save Changes”.' ) . '</p>',112 '<p>' . __( 'If you do not want a header image to be displayed on your site at all, click the “Remove Header Image” 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 “Save Changes”.' ) . '</p>', 113 113 ) 114 114 ); 115 115 … … 120 120 'content' => 121 121 '<p>' . sprintf( __( 'For most themes, the header text is your Site Title and Tagline, as defined in the <a href="%1$s">General Settings</a> section.' ), admin_url( 'options-general.php' ) ) . '<p>' . 122 122 '<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. “#ff0000” for red, or by choosing a color using the color picker.' ) . '</p>' . 123 '<p>' . __( 'Do n’t forget to click “Save Changes” when you’re done!' ) . '</p>',123 '<p>' . __( 'Do not forget to click “Save Changes” when you’re done!' ) . '</p>', 124 124 ) 125 125 ); 126 126 -
src/wp-admin/edit-link-form.php
64 64 'title' => __( 'Overview' ), 65 65 'content' => 66 66 '<p>' . __( 'You can add or edit links on this screen by entering information in each of the boxes. Only the link’s web address and name (the text you want to display on your site as the link) are required fields.' ) . '</p>' . 67 '<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 n’t use in the Screen Options tab, or minimize boxes by clicking on the title bar of the box.' ) . '</p>' .67 '<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>' . 68 68 '<p>' . __( 'XFN stands for <a href="http://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>', 69 69 ) 70 70 ); … … 120 120 <h2><label for="link_url"><?php _e( 'Web Address' ); ?></label></h2> 121 121 <div class="inside"> 122 122 <input type="text" name="link_url" size="30" maxlength="255" class="code" value="<?php echo esc_attr( $link->link_url ); ?>" id="link_url" /> 123 <p><?php _e( 'Example: <code>http://wordpress.org/</code> — do n’t forget the <code>http://</code>' ); ?></p>123 <p><?php _e( 'Example: <code>http://wordpress.org/</code> — do not forget the <code>http://</code>' ); ?></p> 124 124 </div> 125 125 </div> 126 126 -
src/wp-admin/edit-tags.php
157 157 $term = get_term( $term_id ); 158 158 159 159 if ( ! $term instanceof WP_Term ) { 160 wp_die( __( 'You attempted to edit an item that does n’t exist. Perhaps it was deleted?' ) );160 wp_die( __( 'You attempted to edit an item that does not exist. Perhaps it was deleted?' ) ); 161 161 } 162 162 163 163 wp_redirect( esc_url_raw( get_edit_term_link( $term_id, $taxonomy, $post_type ) ) ); … … 177 177 178 178 $tag = get_term( $tag_ID, $taxonomy ); 179 179 if ( ! $tag ) { 180 wp_die( __( 'You attempted to edit an item that does n’t exist. Perhaps it was deleted?' ) );180 wp_die( __( 'You attempted to edit an item that does not exist. Perhaps it was deleted?' ) ); 181 181 } 182 182 183 183 $ret = wp_update_term( $tag_ID, $taxonomy, $_POST ); -
src/wp-admin/freedoms.php
92 92 $plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' ); 93 93 $themes_url = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' ); 94 94 95 printf( __( 'Every plugin and theme in WordPress.org’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’s GPL</a> first. If they do n’t respect the WordPress license, we don’t recommend them.' ), $plugins_url, $themes_url, 'https://wordpress.org/about/license/' );95 printf( __( 'Every plugin and theme in WordPress.org’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’s GPL</a> first. If they do not respect the WordPress license, we do not recommend them.' ), $plugins_url, $themes_url, 'https://wordpress.org/about/license/' ); 96 96 ?> 97 97 </p> 98 98 99 <p><?php _e( 'Do n’t you wish all software came with these freedoms? So do we! For more information, check out the <a href="https://www.fsf.org/">Free Software Foundation</a>.' ); ?></p>99 <p><?php _e( 'Do not you wish all software came with these freedoms? So do we! For more information, check out the <a href="https://www.fsf.org/">Free Software Foundation</a>.' ); ?></p> 100 100 </div> 101 101 </div> 102 102 </div> -
src/wp-admin/install.php
328 328 <p><?php _e( 'Welcome to the famous five-minute WordPress installation process! Just fill in the information below and you’ll be on your way to using the most extendable and powerful personal publishing platform in the world.' ); ?></p> 329 329 330 330 <h2><?php _e( 'Information needed' ); ?></h2> 331 <p><?php _e( 'Please provide the following information. Do n’t worry, you can always change these settings later.' ); ?></p>331 <p><?php _e( 'Please provide the following information. Do not worry, you can always change these settings later.' ); ?></p> 332 332 333 333 <?php 334 334 display_setup_form(); … … 375 375 $error = true; 376 376 } elseif ( ! is_email( $admin_email ) ) { 377 377 // TODO: poka-yoke 378 display_setup_form( __( 'Sorry, that is n’t a valid email address. Email addresses look like <code>username@example.com</code>.' ) );378 display_setup_form( __( 'Sorry, that is not a valid email address. Email addresses look like <code>username@example.com</code>.' ) ); 379 379 $error = true; 380 380 } 381 381 -
src/wp-admin/media.php
63 63 $att = get_post( $att_id ); 64 64 65 65 if ( empty( $att->ID ) ) { 66 wp_die( __( 'You attempted to edit an attachment that does n’t exist. Perhaps it was deleted?' ) );66 wp_die( __( 'You attempted to edit an attachment that does not exist. Perhaps it was deleted?' ) ); 67 67 } 68 68 if ( 'attachment' !== $att->post_type ) { 69 wp_die( __( 'You attempted to edit an item that is n’t an attachment. Please go back and try again.' ) );69 wp_die( __( 'You attempted to edit an item that is not an attachment. Please go back and try again.' ) ); 70 70 } 71 71 if ( $att->post_status == 'trash' ) { 72 wp_die( __( 'You can ’t edit this attachment because it is in the Trash. Please move it out of the Trash and try again.' ) );72 wp_die( __( 'You cannot edit this attachment because it is in the Trash. Please move it out of the Trash and try again.' ) ); 73 73 } 74 74 75 75 add_filter( 'attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2 ); -
src/wp-admin/nav-menus.php
550 550 551 551 $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>'; 552 552 $menu_management .= '<ul><li>' . __( 'To edit an existing menu, <strong>choose a menu from the drop down and click Select</strong>' ) . '</li>'; 553 $menu_management .= '<li>' . __( 'If you have n’t yet created any menus, <strong>click the ’create a new menu’ link</strong> to get started' ) . '</li></ul>';553 $menu_management .= '<li>' . __( 'If you have not yet created any menus, <strong>click the ’create a new menu’ link</strong> to get started' ) . '</li></ul>'; 554 554 $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>'; 555 555 556 556 get_current_screen()->add_help_tab( … … 751 751 <span class="add-edit-menu-action"> 752 752 <?php 753 753 printf( 754 __( 'Edit your menu below, or <a href="%s">create a new menu</a>. Do n’t forget to save your changes!' ),754 __( 'Edit your menu below, or <a href="%s">create a new menu</a>. Do not forget to save your changes!' ), 755 755 esc_url( 756 756 add_query_arg( 757 757 array( … … 812 812 <span class="add-new-menu-action"> 813 813 <?php 814 814 printf( 815 __( 'or <a href="%s">create a new menu</a>. Do n’t forget to save your changes!' ),815 __( 'or <a href="%s">create a new menu</a>. Do not forget to save your changes!' ), 816 816 esc_url( 817 817 add_query_arg( 818 818 array( -
src/wp-admin/options-discussion.php
21 21 array( 22 22 'id' => 'overview', 23 23 'title' => __( 'Overview' ), 24 '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 w on’t all fit here! :) Use the documentation links to get information on what each discussion setting does.' ) . '</p>' .24 '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>' . 25 25 '<p>' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '</p>', 26 26 ) 27 27 ); -
src/wp-admin/options-permalink.php
326 326 <?php 327 327 printf( 328 328 /* translators: 1: web.config, 2: Codex URL, 3: CTRL + a, 4: element code */ 329 __( 'If your %1$s file was <a href="%2$s">writable</a>, we could do this automatically, but it is n’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.' ),329 __( '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.' ), 330 330 '<code>web.config</code>', 331 331 __( 'https://codex.wordpress.org/Changing_File_Permissions' ), 332 332 '<kbd>CTRL + a</kbd>', … … 352 352 <?php 353 353 printf( 354 354 /* translators: 1: Codex URL, 2: web.config, 3: CTRL + a */ 355 __( 'If the root directory of your site was <a href="%1$s">writable</a>, we could do this automatically, but it is n’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.' ),355 __( '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.' ), 356 356 __( 'https://codex.wordpress.org/Changing_File_Permissions' ), 357 357 '<code>web.config</code>', 358 358 '<kbd>CTRL + a</kbd>' … … 384 384 <?php 385 385 printf( 386 386 /* translators: 1: .htaccess, 2: Codex URL, 3: CTRL + a */ 387 __( 'If your %1$s file was <a href="%2$s">writable</a>, we could do this automatically, but it is n’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.' ),387 __( '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.' ), 388 388 '<code>.htaccess</code>', 389 389 __( 'https://codex.wordpress.org/Changing_File_Permissions' ), 390 390 '<kbd>CTRL + a</kbd>' -
src/wp-admin/plugin-editor.php
123 123 'title' => __( 'Overview' ), 124 124 'content' => 125 125 '<p>' . __( 'You can use the plugin editor to make changes to any of your plugins’ individual PHP files. Be aware that if you make changes, plugins updates will overwrite your customizations.' ) . '</p>' . 126 '<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 n’t forget to save your changes (Update File) when you’re finished.' ) . '</p>' .126 '<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’re finished.' ) . '</p>' . 127 127 '<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>' . 128 128 '<p id="editor-keyboard-trap-help-1">' . __( 'When using a keyboard to navigate:' ) . '</p>' . 129 129 '<ul>' . … … 131 131 '<li id="editor-keyboard-trap-help-3">' . __( 'To move away from this area, press the Esc key followed by the Tab key.' ) . '</li>' . 132 132 '<li id="editor-keyboard-trap-help-4">' . __( 'Screen reader users: when in forms mode, you may need to press the Esc key twice.' ) . '</li>' . 133 133 '</ul>' . 134 '<p>' . __( 'If you want to make changes but do n’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>' .134 '<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>' . 135 135 ( is_network_admin() ? '<p>' . __( 'Any edits to files from this screen will be reflected on all sites in the network.' ) . '</p>' : '' ), 136 136 ) 137 137 ); … … 305 305 <div class="file-editor-warning-content"> 306 306 <div class="file-editor-warning-message"> 307 307 <h1><?php _e( 'Heads up!' ); ?></h1> 308 <p><?php _e( 'You appear to be making direct edits to your plugin in the WordPress dashboard. We recommend that you do n’t! Editing plugins directly may introduce incompatibilities that break your site and your changes may be lost in future updates.' ); ?></p>308 <p><?php _e( 'You appear to be making direct edits to your plugin in the WordPress dashboard. We recommend that you do not! Editing plugins directly may introduce incompatibilities that break your site and your changes may be lost in future updates.' ); ?></p> 309 309 <p><?php _e( 'If you absolutely have to make direct edits to this plugin, use a file manager to create a copy with a new name and hang on to the original. That way, you can re-enable a functional version if something goes wrong.' ); ?></p> 310 310 </div> 311 311 <p> -
src/wp-admin/plugins.php
453 453 '<p>' . __( 'Most of the time, plugins play nicely with the core of WordPress and with other plugins. Sometimes, though, a plugin’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>' . 454 454 '<p>' . sprintf( 455 455 /* translators: WP_PLUGIN_DIR constant value */ 456 __( 'If something goes wrong with a plugin and you can ’t use WordPress, delete or rename that file in the %s directory and it will be automatically deactivated.' ),456 __( '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.' ), 457 457 '<code>' . WP_PLUGIN_DIR . '</code>' 458 458 ) . '</p>', 459 459 ) -
src/wp-admin/post.php
115 115 } 116 116 117 117 if ( ! $post ) { 118 wp_die( __( 'You attempted to edit an item that does n’t exist. Perhaps it was deleted?' ) );118 wp_die( __( 'You attempted to edit an item that does not exist. Perhaps it was deleted?' ) ); 119 119 } 120 120 121 121 if ( ! $post_type_object ) { … … 131 131 } 132 132 133 133 if ( 'trash' == $post->post_status ) { 134 wp_die( __( 'You can ’t edit this item because it is in the Trash. Please restore it and try again.' ) );134 wp_die( __( 'You cannot edit this item because it is in the Trash. Please restore it and try again.' ) ); 135 135 } 136 136 137 137 if ( ! empty( $_GET['get-post-lock'] ) ) { -
src/wp-admin/setup-config.php
176 176 <?php 177 177 /* translators: 1: wp-config-sample.php, 2: wp-config.php */ 178 178 printf( 179 __( 'If for any reason this automatic file creation does n’t work, don’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.' ),179 __( '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.' ), 180 180 '<code>wp-config-sample.php</code>', 181 181 '<code>wp-config.php</code>' 182 182 ); … … 190 190 ); 191 191 ?> 192 192 </p> 193 <p><?php _e( 'In all likelihood, these items were supplied to you by your Web Host. If you do n’t have this information, then you will need to contact them before you can continue. If you’re all ready…' ); ?></p>193 <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’re all ready…' ); ?></p> 194 194 195 195 <p class="step"><a href="<?php echo $step_1; ?>" class="button button-large"><?php _e( 'Let’s go!' ); ?></a></p> 196 196 <?php … … 229 229 <td> 230 230 <?php 231 231 /* translators: %s: localhost */ 232 printf( __( 'You should be able to get this info from your web host, if %s does n’t work.' ), '<code>localhost</code>' );232 printf( __( 'You should be able to get this info from your web host, if %s does not work.' ), '<code>localhost</code>' ); 233 233 ?> 234 234 </td> 235 235 </tr> … … 393 393 <p> 394 394 <?php 395 395 /* translators: %s: wp-config.php */ 396 printf( __( 'Sorry, but I can ’t write the %s file.' ), '<code>wp-config.php</code>' );396 printf( __( 'Sorry, but I cannot write the %s file.' ), '<code>wp-config.php</code>' ); 397 397 ?> 398 398 </p> 399 399 <p> -
src/wp-admin/term.php
23 23 $tag = get_term( $tag_ID, $taxnow, OBJECT, 'edit' ); 24 24 25 25 if ( ! $tag instanceof WP_Term ) { 26 wp_die( __( 'You attempted to edit an item that does n’t exist. Perhaps it was deleted?' ) );26 wp_die( __( 'You attempted to edit an item that does not exist. Perhaps it was deleted?' ) ); 27 27 } 28 28 29 29 $tax = get_taxonomy( $tag->taxonomy ); -
src/wp-admin/theme-editor.php
345 345 <?php 346 346 echo sprintf( 347 347 /* translators: %s: link to documentation on child themes */ 348 __( 'You appear to be making direct edits to your theme in the WordPress dashboard. We recommend that you do n’t! Editing your theme directly could break your site and your changes may be lost in future updates. If you need to tweak more than your theme’s CSS, you might want to try <a href="%s">making a child theme</a>.' ),348 __( 'You appear to be making direct edits to your theme in the WordPress dashboard. We recommend that you do not! Editing your theme directly could break your site and your changes may be lost in future updates. If you need to tweak more than your theme’s CSS, you might want to try <a href="%s">making a child theme</a>.' ), 349 349 esc_url( __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ) ) 350 350 ); 351 351 ?> -
src/wp-admin/update-core.php
298 298 $compatible_php = ( empty( $plugin_data->update->requires_php ) || version_compare( phpversion(), $plugin_data->update->requires_php, '>=' ) ); 299 299 300 300 if ( ! $compatible_php && current_user_can( 'update_php' ) ) { 301 $compat .= '<br>' . __( 'This update does n’t work with your version of PHP.' ) . ' ';301 $compat .= '<br>' . __( 'This update does not work with your version of PHP.' ) . ' '; 302 302 /* translators: %s: Update PHP page URL */ 303 303 $compat .= sprintf( 304 304 __( '<a href="%s">Learn more about updating PHP.</a>' ), -
src/wp-admin/user-new.php
216 216 217 217 if ( is_multisite() ) { 218 218 $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’s name to Edit the user profile under Network Admin > All Users.' ) . '</p>' . 219 '<p>' . __( 'New users will receive an email letting them know they’ve been added as a user for your site. This email will also contain their password. Check the box if you do n’t want the user to receive a welcome email.' ) . '</p>';219 '<p>' . __( 'New users will receive an email letting them know they’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>'; 220 220 } else { 221 221 $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>' . 222 222 223 '<p>' . __( 'By default, new users will receive an email letting them know they’ve been added as a user for your site. This email will also contain a password reset link. Uncheck the box if you do n’t want to send the new user a welcome email.' ) . '</p>';223 '<p>' . __( 'By default, new users will receive an email letting them know they’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>'; 224 224 } 225 225 226 226 $help .= '<p>' . __( 'Remember to click the Add New User button at the bottom of this screen when you are finished.' ) . '</p>'; -
src/wp-admin/users.php
349 349 check_admin_referer( 'remove-users' ); 350 350 351 351 if ( ! is_multisite() ) { 352 wp_die( __( 'You can ’t remove users.' ), 400 );352 wp_die( __( 'You cannot remove users.' ), 400 ); 353 353 } 354 354 355 355 if ( empty( $_REQUEST['users'] ) ) { … … 381 381 check_admin_referer( 'bulk-users' ); 382 382 383 383 if ( ! is_multisite() ) { 384 wp_die( __( 'You can ’t remove users.' ), 400 );384 wp_die( __( 'You cannot remove users.' ), 400 ); 385 385 } 386 386 387 387 if ( empty( $_REQUEST['users'] ) && empty( $_REQUEST['user'] ) ) { … … 507 507 $messages[] = '<div id="message" class="updated notice is-dismissible"><p>' . __( 'Other user roles have been changed.' ) . '</p></div>'; 508 508 break; 509 509 case 'err_admin_del': 510 $messages[] = '<div id="message" class="error notice is-dismissible"><p>' . __( 'You can ’t delete the current user.' ) . '</p></div>';510 $messages[] = '<div id="message" class="error notice is-dismissible"><p>' . __( 'You cannot delete the current user.' ) . '</p></div>'; 511 511 $messages[] = '<div id="message" class="updated notice is-dismissible"><p>' . __( 'Other users have been deleted.' ) . '</p></div>'; 512 512 break; 513 513 case 'remove': … … 514 514 $messages[] = '<div id="message" class="updated notice is-dismissible fade"><p>' . __( 'User removed from this site.' ) . '</p></div>'; 515 515 break; 516 516 case 'err_admin_remove': 517 $messages[] = '<div id="message" class="error notice is-dismissible"><p>' . __( "You can 't remove the current user." ) . '</p></div>';517 $messages[] = '<div id="message" class="error notice is-dismissible"><p>' . __( "You cannot remove the current user." ) . '</p></div>'; 518 518 $messages[] = '<div id="message" class="updated notice is-dismissible fade"><p>' . __( 'Other users have been removed.' ) . '</p></div>'; 519 519 break; 520 520 } -
src/wp-admin/widgets.php
85 85 ); 86 86 87 87 if ( ! current_theme_supports( 'widgets' ) ) { 88 wp_die( __( 'The theme you are currently using is n’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please <a href="https://codex.wordpress.org/Widgetizing_Themes">follow these instructions</a>.' ) );88 wp_die( __( 'The theme you are currently using is not widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please <a href="https://codex.wordpress.org/Widgetizing_Themes">follow these instructions</a>.' ) ); 89 89 } 90 90 91 91 // These are the widgets grouped by sidebar -
src/wp-admin/includes/class-ftp.php
480 480 return FALSE; 481 481 } 482 482 if($this->_curtype!=FTP_BINARY) { 483 $this->PushError("restore", "can 't restore in ASCII mode");483 $this->PushError("restore", "cannot restore in ASCII mode"); 484 484 return FALSE; 485 485 } 486 486 if(!$this->_exec("REST ".$from, "resore")) return FALSE; … … 553 553 if (@file_exists($localfile)) $this->SendMSG("Warning : local file will be overwritten"); 554 554 $fp = @fopen($localfile, "w"); 555 555 if (!$fp) { 556 $this->PushError("get","can 't open local file", "Cannot create \"".$localfile."\"");556 $this->PushError("get","cannot open local file", "Cannot create \"".$localfile."\""); 557 557 return FALSE; 558 558 } 559 559 if($this->_can_restore and $rest!=0) fseek($fp, $rest); … … 610 610 function put($localfile, $remotefile=NULL, $rest=0) { 611 611 if(is_null($remotefile)) $remotefile=$localfile; 612 612 if (!file_exists($localfile)) { 613 $this->PushError("put","can 't open local file", "No such file or directory \"".$localfile."\"");613 $this->PushError("put","cannot open local file", "No such file or directory \"".$localfile."\""); 614 614 return FALSE; 615 615 } 616 616 $fp = @fopen($localfile, "r"); 617 617 618 618 if (!$fp) { 619 $this->PushError("put","can 't open local file", "Cannot read file \"".$localfile."\"");619 $this->PushError("put","cannot open local file", "Cannot read file \"".$localfile."\""); 620 620 return FALSE; 621 621 } 622 622 if($this->_can_restore and $rest!=0) fseek($fp, $rest); … … 649 649 function mput($local=".", $remote=NULL, $continious=false) { 650 650 $local=realpath($local); 651 651 if(!@file_exists($local)) { 652 $this->PushError("mput","can 't open local folder", "Cannot stat folder \"".$local."\"");652 $this->PushError("mput","cannot open local folder", "Cannot stat folder \"".$local."\""); 653 653 return FALSE; 654 654 } 655 655 if(!is_dir($local)) return $this->put($local, $remote); … … 662 662 } 663 663 closedir($handle); 664 664 } else { 665 $this->PushError("mput","can 't open local folder", "Cannot read folder \"".$local."\"");665 $this->PushError("mput","cannot open local folder", "Cannot read folder \"".$local."\""); 666 666 return FALSE; 667 667 } 668 668 if(empty($list)) return TRUE; … … 682 682 function mget($remote, $local=".", $continious=false) { 683 683 $list=$this->rawlist($remote, "-lA"); 684 684 if($list===false) { 685 $this->PushError("mget","can 't read remote folder list", "Can't read remote folder \"".$remote."\" contents");685 $this->PushError("mget","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents"); 686 686 return FALSE; 687 687 } 688 688 if(empty($list)) return true; 689 689 if(!@file_exists($local)) { 690 690 if(!@mkdir($local)) { 691 $this->PushError("mget","can 't create local folder", "Cannot create folder \"".$local."\"");691 $this->PushError("mget","cannot create local folder", "Cannot create folder \"".$local."\""); 692 692 return FALSE; 693 693 } 694 694 } … … 700 700 foreach($list as $el) { 701 701 if($el["type"]=="d") { 702 702 if(!$this->mget($remote."/".$el["name"], $local."/".$el["name"], $continious)) { 703 $this->PushError("mget", "can 't copy folder", "Can't copy remote folder \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\"");703 $this->PushError("mget", "cannot copy folder", "Cannot copy remote folder \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\""); 704 704 $ret=false; 705 705 if(!$continious) break; 706 706 } 707 707 } else { 708 708 if(!$this->get($remote."/".$el["name"], $local."/".$el["name"])) { 709 $this->PushError("mget", "can 't copy file", "Can't copy remote file \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\"");709 $this->PushError("mget", "cannot copy file", "Cannot copy remote file \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\""); 710 710 $ret=false; 711 711 if(!$continious) break; 712 712 } … … 721 721 function mdel($remote, $continious=false) { 722 722 $list=$this->rawlist($remote, "-la"); 723 723 if($list===false) { 724 $this->PushError("mdel","can 't read remote folder list", "Can't read remote folder \"".$remote."\" contents");724 $this->PushError("mdel","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents"); 725 725 return false; 726 726 } 727 727 … … 742 742 } 743 743 } else { 744 744 if (!$this->delete($remote."/".$el["name"])) { 745 $this->PushError("mdel", "can 't delete file", "Can't delete remote file \"".$remote."/".$el["name"]."\"");745 $this->PushError("mdel", "cannot delete file", "Cannot delete remote file \"".$remote."/".$el["name"]."\""); 746 746 $ret=false; 747 747 if(!$continious) break; 748 748 } … … 750 750 } 751 751 752 752 if(!$this->rmdir($remote)) { 753 $this->PushError("mdel", "can 't delete folder", "Can't delete remote folder \"".$remote."/".$el["name"]."\"");753 $this->PushError("mdel", "cannot delete folder", "Cannot delete remote folder \"".$remote."/".$el["name"]."\""); 754 754 $ret=false; 755 755 } 756 756 return $ret; … … 826 826 function dirlist($remote) { 827 827 $list=$this->rawlist($remote, "-la"); 828 828 if($list===false) { 829 $this->PushError("dirlist","can 't read remote folder list", "Can't read remote folder \"".$remote."\" contents");829 $this->PushError("dirlist","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents"); 830 830 return false; 831 831 } 832 832 -
src/wp-admin/includes/class-ftp-sockets.php
139 139 else $this->_ftp_temp_sock=$this->_ftp_data_sock; 140 140 } else { 141 141 if(!@socket_getsockname($this->_ftp_control_sock, $addr, $port)) { 142 $this->PushError("_data_prepare","can 't get control socket information", socket_strerror(socket_last_error($this->_ftp_control_sock)));142 $this->PushError("_data_prepare","cannot get control socket information", socket_strerror(socket_last_error($this->_ftp_control_sock))); 143 143 $this->_data_close(); 144 144 return FALSE; 145 145 } 146 146 if(!@socket_bind($this->_ftp_data_sock,$addr)){ 147 $this->PushError("_data_prepare","can 't bind data socket", socket_strerror(socket_last_error($this->_ftp_data_sock)));147 $this->PushError("_data_prepare","cannot bind data socket", socket_strerror(socket_last_error($this->_ftp_data_sock))); 148 148 $this->_data_close(); 149 149 return FALSE; 150 150 } 151 151 if(!@socket_listen($this->_ftp_data_sock)) { 152 $this->PushError("_data_prepare","can 't listen data socket", socket_strerror(socket_last_error($this->_ftp_data_sock)));152 $this->PushError("_data_prepare","cannot listen data socket", socket_strerror(socket_last_error($this->_ftp_data_sock))); 153 153 $this->_data_close(); 154 154 return FALSE; 155 155 } 156 156 if(!@socket_getsockname($this->_ftp_data_sock, $this->_datahost, $this->_dataport)) { 157 $this->PushError("_data_prepare","can 't get data socket information", socket_strerror(socket_last_error($this->_ftp_data_sock)));157 $this->PushError("_data_prepare","cannot get data socket information", socket_strerror(socket_last_error($this->_ftp_data_sock))); 158 158 $this->_data_close(); 159 159 return FALSE; 160 160 } -
src/wp-admin/includes/class-theme-upgrader.php
495 495 $this->strings['incompatible_archive'], 496 496 sprintf( 497 497 /* translators: %s: style.css */ 498 __( 'The %s stylesheet does n’t contain a valid theme header.' ),498 __( 'The %s stylesheet does not contain a valid theme header.' ), 499 499 '<code>style.css</code>' 500 500 ) 501 501 ); -
src/wp-admin/includes/class-wp-importer.php
132 132 } else { 133 133 $blog = 'http://' . preg_replace( '#^https?://#', '', $blog_id ); 134 134 if ( ( ! $parsed = parse_url( $blog ) ) || empty( $parsed['host'] ) ) { 135 fwrite( STDERR, "Error: can 135 fwrite( STDERR, "Error: cannot determine blog_id from $blog_id\n" ); 136 136 exit(); 137 137 } 138 138 if ( empty( $parsed['path'] ) ) { … … 174 174 } 175 175 176 176 if ( ! $user_id || ! wp_set_current_user( $user_id ) ) { 177 fwrite( STDERR, "Error: can 177 fwrite( STDERR, "Error: cannot find user\n" ); 178 178 exit(); 179 179 } 180 180 -
src/wp-admin/includes/class-wp-plugin-install-list-table.php
641 641 if ( ! $compatible_php || ! $compatible_wp ) { 642 642 echo '<div class="notice inline notice-error notice-alt"><p>'; 643 643 if ( ! $compatible_php && ! $compatible_wp ) { 644 _e( 'This plugin does n’t work with your versions of WordPress and PHP.' );644 _e( 'This plugin does not work with your versions of WordPress and PHP.' ); 645 645 if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { 646 646 printf( 647 647 /* translators: 1: "Update WordPress" screen URL, 2: "Update PHP" page URL */ … … 665 665 wp_update_php_annotation( '</p><p><em>', '</em>' ); 666 666 } 667 667 } elseif ( ! $compatible_wp ) { 668 _e( 'This plugin does n’t work with your version of WordPress.' );668 _e( 'This plugin does not work with your version of WordPress.' ); 669 669 if ( current_user_can( 'update_core' ) ) { 670 670 printf( 671 671 /* translators: %s: "Update WordPress" screen URL */ … … 674 674 ); 675 675 } 676 676 } elseif ( ! $compatible_php ) { 677 _e( 'This plugin does n’t work with your version of PHP.' );677 _e( 'This plugin does not work with your version of PHP.' ); 678 678 if ( current_user_can( 'update_php' ) ) { 679 679 printf( 680 680 /* translators: %s: "Update PHP" page URL */ -
src/wp-admin/includes/class-wp-site-health-auto-updates.php
288 288 } 289 289 290 290 return array( 291 'description' => __( "Your installation of WordPress does n't require FTP credentials to perform updates." ),291 'description' => __( "Your installation of WordPress does not require FTP credentials to perform updates." ), 292 292 'severity' => 'pass', 293 293 ); 294 294 } -
src/wp-admin/includes/dashboard.php
1258 1258 * that they match the expected location before including them. 1259 1259 * Use endonyms (native locale names) whenever possible. 1260 1260 */ 1261 __( 'We could n’t locate %s. Please try another nearby city. For example: Kansas City; Springfield; Portland.' ),1261 __( 'We could not locate %s. Please try another nearby city. For example: Kansas City; Springfield; Portland.' ), 1262 1262 '<em>{{data.unknownCity}}</em>' 1263 1263 ); 1264 1264 ?> … … 1291 1291 <?php 1292 1292 printf( 1293 1293 /* translators: 1: the city the user searched for, 2: meetup organization documentation URL */ 1294 __( 'There are n’t any events scheduled near %1$s at the moment. Would you like to <a href="%2$s">organize one</a>?' ),1294 __( 'There are not any events scheduled near %1$s at the moment. Would you like to <a href="%2$s">organize one</a>?' ), 1295 1295 '{{ data.location.description }}', 1296 1296 __( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' ) 1297 1297 ); … … 1301 1301 <?php 1302 1302 printf( 1303 1303 /* translators: %s: meetup organization documentation URL */ 1304 __( 'There are n’t any events scheduled near you at the moment. Would you like to <a href="%s">organize one</a>?' ),1304 __( 'There are not any events scheduled near you at the moment. Would you like to <a href="%s">organize one</a>?' ), 1305 1305 __( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' ) 1306 1306 ); 1307 1307 ?> -
src/wp-admin/includes/file.php
679 679 wp_die( __( 'Sorry, that file cannot be edited.' ) ); 680 680 681 681 // case 2 : 682 // wp_die( __('Sorry, can ’t call files with their real path.' ));682 // wp_die( __('Sorry, cannot call files with their real path.' )); 683 683 684 684 case 3: 685 685 wp_die( __( 'Sorry, that file cannot be edited.' ) ); -
src/wp-admin/includes/template.php
1100 1100 echo '<p>'; 1101 1101 if ( $plugin ) { 1102 1102 /* translators: %s: the name of the plugin that generated this meta box. */ 1103 printf( __( "This meta box, from the %s plugin, is n't compatible with the block editor." ), "<strong>{$plugin['Name']}</strong>" );1103 printf( __( "This meta box, from the %s plugin, is not compatible with the block editor." ), "<strong>{$plugin['Name']}</strong>" ); 1104 1104 } else { 1105 _e( "This meta box is n't compatible with the block editor." );1105 _e( "This meta box is not compatible with the block editor." ); 1106 1106 } 1107 1107 echo '</p>'; 1108 1108 … … 1293 1293 <p> 1294 1294 <?php 1295 1295 /* translators: %s: the name of the plugin that generated this meta box. */ 1296 printf( __( "This meta box, from the %s plugin, is n't compatible with the block editor." ), "<strong>{$plugin['Name']}</strong>" );1296 printf( __( "This meta box, from the %s plugin, is not compatible with the block editor." ), "<strong>{$plugin['Name']}</strong>" ); 1297 1297 ?> 1298 1298 </p> 1299 1299 </div> -
src/wp-admin/includes/update.php
454 454 } else { 455 455 /* translators: 1: plugin name, 2: details URL, 3: additional link attributes, 4: version number 5: Update PHP page URL */ 456 456 printf( 457 __( 'There is a new version of %1$s available, but it does n’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>.' ),457 __( '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>.' ), 458 458 $plugin_name, 459 459 esc_url( $details_url ), 460 460 sprintf( -
src/wp-admin/includes/user.php
200 200 if ( empty( $user->user_email ) ) { 201 201 $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please enter an email address.' ), array( 'form-field' => 'email' ) ); 202 202 } elseif ( ! is_email( $user->user_email ) ) { 203 $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address is n’t correct.' ), array( 'form-field' => 'email' ) );203 $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address is not correct.' ), array( 'form-field' => 'email' ) ); 204 204 } elseif ( ( $owner_id = email_exists( $user->user_email ) ) && ( ! $update || ( $owner_id != $user->ID ) ) ) { 205 205 $errors->add( 'email_exists', __( '<strong>ERROR</strong>: This email is already registered, please choose another one.' ), array( 'form-field' => 'email' ) ); 206 206 } -
src/wp-admin/network/site-new.php
37 37 check_admin_referer( 'add-blog', '_wpnonce_add-blog' ); 38 38 39 39 if ( ! is_array( $_POST['blog'] ) ) { 40 wp_die( __( 'Can ’t create an empty site.' ) );40 wp_die( __( 'Cannot create an empty site.' ) ); 41 41 } 42 42 43 43 $blog = $_POST['blog']; -
src/wp-admin/network/upgrade.php
21 21 'title' => __( 'Overview' ), 22 22 'content' => 23 23 '<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>' . 24 '<p>' . __( 'If a version update to core has not happened, clicking this button w on’t affect anything.' ) . '</p>' .24 '<p>' . __( 'If a version update to core has not happened, clicking this button will not affect anything.' ) . '</p>' . 25 25 '<p>' . __( 'If this process fails for any reason, users logging in to their sites will force the same update.' ) . '</p>', 26 26 ) 27 27 ); … … 119 119 do_action( 'wpmu_upgrade_site', $site_id ); 120 120 } 121 121 echo '</ul>'; 122 ?><p><?php _e( 'If your browser does n’t start loading the next page automatically, click this link:' ); ?> <a class="button" href="upgrade.php?action=upgrade&n=<?php echo ( $n + 5 ); ?>"><?php _e( 'Next Sites' ); ?></a></p>122 ?><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&n=<?php echo ( $n + 5 ); ?>"><?php _e( 'Next Sites' ); ?></a></p> 123 123 <script type="text/javascript"> 124 124 <!-- 125 125 function nextpage() { -
src/wp-includes/class-json.php
135 135 * bubble up with an error, so all return values 136 136 * from encode() should be checked with isError() 137 137 * - SERVICES_JSON_USE_TO_JSON: call toJSON when serializing objects 138 * It serializes the return value from the toJSON call rather 139 * than the object itself, toJSON can return associative arrays, 138 * It serializes the return value from the toJSON call rather 139 * than the object itself, toJSON can return associative arrays, 140 140 * strings or numbers, if you return an object, make sure it does 141 141 * not have a toJSON method, otherwise an error will occur. 142 142 */ … … 158 158 var $_mb_strlen = false; 159 159 var $_mb_substr = false; 160 160 var $_mb_convert_encoding = false; 161 161 162 162 /** 163 163 * convert a string from one UTF-16 char to one UTF-8 char 164 164 * … … 282 282 $ret = $this->_encode($var); 283 283 setlocale(LC_NUMERIC, $lc); 284 284 return $ret; 285 285 286 286 } 287 287 /** 288 * PRIVATE CODE that does the work of encodes an arbitrary variable into JSON format 288 * PRIVATE CODE that does the work of encodes an arbitrary variable into JSON format 289 289 * 290 290 * @param mixed $var any number, boolean, string, array, or object to be encoded. 291 291 * see argument 1 to Services_JSON() above for array-parsing behavior. … … 295 295 * @return mixed JSON string representation of input var or an error if a problem occurs 296 296 * @access public 297 297 */ 298 function _encode($var) 298 function _encode($var) 299 299 { 300 300 301 301 switch (gettype($var)) { 302 302 case 'boolean': 303 303 return $var ? 'true' : 'false'; … … 362 362 $ascii .= '?'; 363 363 break; 364 364 } 365 365 366 366 $char = pack('C*', $ord_var_c, ord($var{$c + 1})); 367 367 $c += 1; 368 368 $utf16 = $this->utf82utf16($char); … … 488 488 return '[' . join(',', $elements) . ']'; 489 489 490 490 case 'object': 491 491 492 492 // support toJSON methods. 493 493 if (($this->use & SERVICES_JSON_USE_TO_JSON) && method_exists($var, 'toJSON')) { 494 494 // this may end up allowing unlimited recursion 495 495 // so we check the return value to make sure it's not got the same method. 496 496 $recode = $var->toJSON(); 497 497 498 498 if (method_exists($recode, 'toJSON')) { 499 499 500 500 return ($this->use & SERVICES_JSON_SUPPRESS_ERRORS) 501 501 ? 'null' 502 502 : new Services_JSON_Error(get_class($var). 503 503 " toJSON returned an object with a toJSON method."); 504 504 505 505 } 506 506 507 507 return $this->_encode( $recode ); 508 } 509 508 } 509 510 510 $vars = get_object_vars($var); 511 511 512 512 $properties = array_map(array($this, 'name_value'), 513 513 array_keys($vars), 514 514 array_values($vars)); … … 524 524 default: 525 525 return ($this->use & SERVICES_JSON_SUPPRESS_ERRORS) 526 526 ? 'null' 527 : new Services_JSON_Error(gettype($var)." can 527 : new Services_JSON_Error(gettype($var)." cannot be encoded as JSON string"); 528 528 } 529 529 } 530 530 … … 772 772 // element in an associative array, 773 773 // for now 774 774 $parts = array(); 775 775 776 776 if (preg_match('/^\s*(["\'].*[^\\\]["\'])\s*:/Uis', $slice, $parts)) { 777 777 // "name":value pair 778 778 $key = $this->decode($parts[1]); … … 879 879 880 880 return false; 881 881 } 882 882 883 883 /** 884 884 * Calculates length of string in bytes 885 * @param string 885 * @param string 886 886 * @return integer length 887 887 */ 888 function strlen8( $str ) 888 function strlen8( $str ) 889 889 { 890 890 if ( $this->_mb_strlen ) { 891 891 return mb_strlen( $str, "8bit" ); … … 892 892 } 893 893 return strlen( $str ); 894 894 } 895 895 896 896 /** 897 897 * Returns part of a string, interpreting $start and $length as number of bytes. 898 * @param string 899 * @param integer start 900 * @param integer length 898 * @param string 899 * @param integer start 900 * @param integer length 901 901 * @return integer length 902 902 */ 903 function substr8( $string, $start, $length=false ) 903 function substr8( $string, $start, $length=false ) 904 904 { 905 905 if ( $length === false ) { 906 906 $length = $this->strlen8( $string ) - $start; … … 954 954 self::__construct( $message, $code, $mode, $options, $userinfo ); 955 955 } 956 956 } 957 957 958 958 } 959 959 960 960 endif; -
src/wp-includes/class-wp-customize-nav-menus.php
1049 1049 1050 1050 <script type="text/html" id="tmpl-nav-menu-create-menu-section-title"> 1051 1051 <p class="add-new-menu-notice"> 1052 <?php _e( 'It does n’t look like your site has any menus yet. Want to build one? Click the button to start.' ); ?>1052 <?php _e( 'It does not look like your site has any menus yet. Want to build one? Click the button to start.' ); ?> 1053 1053 </p> 1054 1054 <p class="add-new-menu-notice"> 1055 1055 <?php _e( 'You’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.' ); ?> -
src/wp-includes/class-wp-customize-widgets.php
724 724 */ 725 725 $some_non_rendered_areas_messages = array(); 726 726 $some_non_rendered_areas_messages[1] = html_entity_decode( 727 __( 'Your theme has 1 other widget area, but this particular page does n’t display it.' ),727 __( 'Your theme has 1 other widget area, but this particular page does not display it.' ), 728 728 ENT_QUOTES, 729 729 get_bloginfo( 'charset' ) 730 730 ); … … 734 734 sprintf( 735 735 /* translators: %s: the number of other widget areas registered but not rendered */ 736 736 _n( 737 'Your theme has %s other widget area, but this particular page does n’t display it.',738 'Your theme has %s other widget areas, but this particular page does n’t display them.',737 'Your theme has %s other widget area, but this particular page does not display it.', 738 'Your theme has %s other widget areas, but this particular page does not display them.', 739 739 $non_rendered_count 740 740 ), 741 741 number_format_i18n( $non_rendered_count ) … … 748 748 if ( 1 === $registered_sidebar_count ) { 749 749 $no_areas_shown_message = html_entity_decode( 750 750 sprintf( 751 __( 'Your theme has 1 widget area, but this particular page does n’t display it.' )751 __( 'Your theme has 1 widget area, but this particular page does not display it.' ) 752 752 ), 753 753 ENT_QUOTES, 754 754 get_bloginfo( 'charset' ) … … 758 758 sprintf( 759 759 /* translators: %s: the total number of widget areas registered */ 760 760 _n( 761 'Your theme has %s widget area, but this particular page does n’t display it.',762 'Your theme has %s widget areas, but this particular page does n’t display them.',761 'Your theme has %s widget area, but this particular page does not display it.', 762 'Your theme has %s widget areas, but this particular page does not display them.', 763 763 $registered_sidebar_count 764 764 ), 765 765 number_format_i18n( $registered_sidebar_count ) -
src/wp-includes/class-wp-image-editor-gd.php
87 87 } 88 88 89 89 if ( ! is_file( $this->file ) && ! preg_match( '|^https?://|', $this->file ) ) { 90 return new WP_Error( 'error_loading_image', __( 'File does n’t exist?' ), $this->file );90 return new WP_Error( 'error_loading_image', __( 'File does not exist?' ), $this->file ); 91 91 } 92 92 93 93 // Set artificially high because GD uses uncompressed images in memory. -
src/wp-includes/class-wp-image-editor-imagick.php
132 132 } 133 133 134 134 if ( ! is_file( $this->file ) && ! preg_match( '|^https?://|', $this->file ) ) { 135 return new WP_Error( 'error_loading_image', __( 'File does n’t exist?' ), $this->file );135 return new WP_Error( 'error_loading_image', __( 'File does not exist?' ), $this->file ); 136 136 } 137 137 138 138 /* -
src/wp-includes/class-wp-theme.php
241 241 ) 242 242 ); 243 243 if ( ! file_exists( $this->theme_root ) ) { // Don't cache this one. 244 $this->errors->add( 'theme_root_missing', __( 'ERROR: The themes directory is either empty or does n’t exist. Please check your installation.' ) );244 $this->errors->add( 'theme_root_missing', __( 'ERROR: The themes directory is either empty or does not exist. Please check your installation.' ) ); 245 245 } 246 246 return; 247 247 } elseif ( ! is_readable( $this->theme_root . '/' . $theme_file ) ) { -
src/wp-includes/class-wp-xmlrpc-server.php
6731 6731 } 6732 6732 } else { 6733 6733 // TODO: Attempt to extract a post ID from the given URL 6734 return $this->pingback_error( 33, __( 'The specified target URL cannot be used as a target. It either does n’t exist, or it is not a pingback-enabled resource.' ) );6734 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.' ) ); 6735 6735 } 6736 6736 $post_ID = (int) $post_ID; 6737 6737 … … 6738 6738 $post = get_post( $post_ID ); 6739 6739 6740 6740 if ( ! $post ) { // Post_ID not found 6741 return $this->pingback_error( 33, __( 'The specified target URL cannot be used as a target. It either does n’t exist, or it is not a pingback-enabled resource.' ) );6741 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.' ) ); 6742 6742 } 6743 6743 6744 6744 if ( $post_ID == url_to_postid( $pagelinkedfrom ) ) { … … 6747 6747 6748 6748 // Check if pings are on 6749 6749 if ( ! pings_open( $post ) ) { 6750 return $this->pingback_error( 33, __( 'The specified target URL cannot be used as a target. It either does n’t exist, or it is not a pingback-enabled resource.' ) );6750 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.' ) ); 6751 6751 } 6752 6752 6753 6753 // Let's check that the remote site didn't already pingback this entry … … 6908 6908 $post_ID = url_to_postid( $url ); 6909 6909 if ( ! $post_ID ) { 6910 6910 // We aren't sure that the resource is available and/or pingback enabled 6911 return $this->pingback_error( 33, __( 'The specified target URL cannot be used as a target. It either does n’t exist, or it is not a pingback-enabled resource.' ) );6911 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.' ) ); 6912 6912 } 6913 6913 6914 6914 $actual_post = get_post( $post_ID, ARRAY_A ); -
src/wp-includes/deprecated.php
3183 3183 3184 3184 if ( ! is_file( $file ) ) { 3185 3185 /* translators: %s: file name */ 3186 return sprintf( __( 'File “%s” does n’t exist?' ), $file );3186 return sprintf( __( 'File “%s” does not exist?' ), $file ); 3187 3187 } 3188 3188 3189 3189 if ( ! function_exists('imagecreatefromstring') ) -
src/wp-includes/rss.php
764 764 765 765 if ( ! $rss = get_transient( $cache_option ) ) { 766 766 $this->debug( 767 "Cache does n't contain: $url (cache option: $cache_option)"767 "Cache does not contain: $url (cache option: $cache_option)" 768 768 ); 769 769 return 0; 770 770 } -
src/wp-includes/user.php
2454 2454 if ( $user_email == '' ) { 2455 2455 $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please type your email address.' ) ); 2456 2456 } elseif ( ! is_email( $user_email ) ) { 2457 $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address is n’t correct.' ) );2457 $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address is not correct.' ) ); 2458 2458 $user_email = ''; 2459 2459 } elseif ( email_exists( $user_email ) ) { 2460 2460 $errors->add( 'email_exists', __( '<strong>ERROR</strong>: This email is already registered, please choose another one.' ) ); … … 2498 2498 $user_pass = wp_generate_password( 12, false ); 2499 2499 $user_id = wp_create_user( $sanitized_user_login, $user_pass, $user_email ); 2500 2500 if ( ! $user_id || is_wp_error( $user_id ) ) { 2501 $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Could n’t register you… please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) );2501 $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Could not register you… please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) ); 2502 2502 return $errors; 2503 2503 } 2504 2504 … … 2730 2730 if ( ! is_email( $_POST['email'] ) ) { 2731 2731 $errors->add( 2732 2732 'user_email', 2733 __( '<strong>ERROR</strong>: The email address is n’t correct.' ),2733 __( '<strong>ERROR</strong>: The email address is not correct.' ), 2734 2734 array( 2735 2735 'form-field' => 'email', 2736 2736 ) -
src/wp-includes/wp-db.php
1099 1099 if ( ! did_action( 'template_redirect' ) ) { 1100 1100 wp_load_translations_early(); 1101 1101 1102 $message = '<h1>' . __( 'Can ’t select database' ) . "</h1>\n";1102 $message = '<h1>' . __( 'Cannot select database' ) . "</h1>\n"; 1103 1103 1104 1104 $message .= '<p>' . sprintf( 1105 1105 /* translators: %s: database name */ … … 1127 1127 1128 1128 $message .= '<p>' . sprintf( 1129 1129 /* translators: %s: support forums URL */ 1130 __( 'If you do n’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>.' ),1130 __( '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>.' ), 1131 1131 __( 'https://wordpress.org/support/' ) 1132 1132 ) . "</p>\n"; 1133 1133 … … 1659 1659 1660 1660 $message .= '<p>' . sprintf( 1661 1661 /* translators: 1: wp-config.php, 2: database host */ 1662 __( 'This either means that the username and password information in your %1$s file is incorrect or we can ’t contact the database server at %2$s. This could mean your host’s database server is down.' ),1662 __( '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’s database server is down.' ), 1663 1663 '<code>wp-config.php</code>', 1664 1664 '<code>' . htmlspecialchars( $this->dbhost, ENT_QUOTES ) . '</code>' 1665 1665 ) . "</p>\n"; -
src/wp-includes/Text/Diff.php
262 262 function _check($from_lines, $to_lines) 263 263 { 264 264 if (serialize($from_lines) != serialize($this->getOriginal())) { 265 trigger_error("Reconstructed original does n't match", E_USER_ERROR);265 trigger_error("Reconstructed original does not match", E_USER_ERROR); 266 266 } 267 267 if (serialize($to_lines) != serialize($this->getFinal())) { 268 trigger_error("Reconstructed final does n't match", E_USER_ERROR);268 trigger_error("Reconstructed final does not match", E_USER_ERROR); 269 269 } 270 270 271 271 $rev = $this->reverse(); 272 272 if (serialize($to_lines) != serialize($rev->getOriginal())) { 273 trigger_error("Reversed original does n't match", E_USER_ERROR);273 trigger_error("Reversed original does not match", E_USER_ERROR); 274 274 } 275 275 if (serialize($from_lines) != serialize($rev->getFinal())) { 276 trigger_error("Reversed final does n't match", E_USER_ERROR);276 trigger_error("Reversed final does not match", E_USER_ERROR); 277 277 } 278 278 279 279 $prevtype = null; -
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
1062 1062 1063 1063 if ( '' !== $request['password'] ) { 1064 1064 if ( ! empty( $schema['properties']['sticky'] ) && ! empty( $request['sticky'] ) ) { 1065 return new WP_Error( 'rest_invalid_field', __( 'A post can 1065 return new WP_Error( 'rest_invalid_field', __( 'A post cannot be sticky and have a password.' ), array( 'status' => 400 ) ); 1066 1066 } 1067 1067 1068 1068 if ( ! empty( $prepared_post->ID ) && is_sticky( $prepared_post->ID ) ) { 1069 return new WP_Error( 'rest_invalid_field', __( 'A sticky post can 1069 return new WP_Error( 'rest_invalid_field', __( 'A sticky post cannot be password protected.' ), array( 'status' => 400 ) ); 1070 1070 } 1071 1071 } 1072 1072 } … … 1073 1073 1074 1074 if ( ! empty( $schema['properties']['sticky'] ) && ! empty( $request['sticky'] ) ) { 1075 1075 if ( ! empty( $prepared_post->ID ) && post_password_required( $prepared_post->ID ) ) { 1076 return new WP_Error( 'rest_invalid_field', __( 'A password protected post can 1076 return new WP_Error( 'rest_invalid_field', __( 'A password protected post cannot be set to sticky.' ), array( 'status' => 400 ) ); 1077 1077 } 1078 1078 } 1079 1079 -
src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
648 648 } 649 649 650 650 if ( ! empty( $request['username'] ) && $request['username'] !== $user->user_login ) { 651 return new WP_Error( 'rest_user_invalid_argument', __( "Username is n't editable." ), array( 'status' => 400 ) );651 return new WP_Error( 'rest_user_invalid_argument', __( "Username is not editable." ), array( 'status' => 400 ) ); 652 652 } 653 653 654 654 if ( ! empty( $request['slug'] ) && $request['slug'] !== $user->user_nicename && get_user_by( 'slug', $request['slug'] ) ) { -
src/wp-includes/theme-compat/embed-404.php
11 11 */ 12 12 ?> 13 13 <div class="wp-embed"> 14 <p class="wp-embed-heading"><?php _e( 'Oops! That embed can ’t be found.' ); ?></p>14 <p class="wp-embed-heading"><?php _e( 'Oops! That embed cannot be found.' ); ?></p> 15 15 16 16 <div class="wp-embed-excerpt"> 17 17 <p> -
src/wp-includes/widgets/class-wp-widget-media.php
73 73 'add_to_widget' => __( 'Add to Widget' ), 74 74 'missing_attachment' => sprintf( 75 75 /* translators: %s: URL to media library */ 76 __( 'We can ’t find that file. Check your <a href="%s">media library</a> and make sure it wasn’t deleted.' ),76 __( 'We cannot find that file. Check your <a href="%s">media library</a> and make sure it was not deleted.' ), 77 77 esc_url( admin_url( 'upload.php' ) ) 78 78 ), 79 79 /* translators: %d: widget count */ 80 80 'media_library_state_multi' => _n_noop( 'Media Widget (%d)', 'Media Widget (%d)' ), 81 81 'media_library_state_single' => __( 'Media Widget' ), 82 'unsupported_file_type' => __( 'Looks like this is n’t the correct kind of file. Please link to an appropriate file instead.' ),82 'unsupported_file_type' => __( 'Looks like this is not the correct kind of file. Please link to an appropriate file instead.' ), 83 83 ); 84 84 $this->l10n = array_merge( $l10n_defaults, array_filter( $this->l10n ) ); 85 85 -
src/wp-includes/widgets/class-wp-widget-media-audio.php
40 40 'edit_media' => _x( 'Edit Audio', 'label for button in the audio widget; should preferably not be longer than ~13 characters long' ), 41 41 'missing_attachment' => sprintf( 42 42 /* translators: %s: URL to media library */ 43 __( 'We can ’t find that audio file. Check your <a href="%s">media library</a> and make sure it wasn’t deleted.' ),43 __( 'We cannot find that audio file. Check your <a href="%s">media library</a> and make sure it was not deleted.' ), 44 44 esc_url( admin_url( 'upload.php' ) ) 45 45 ), 46 46 /* translators: %d: widget count */ 47 47 'media_library_state_multi' => _n_noop( 'Audio Widget (%d)', 'Audio Widget (%d)' ), 48 48 'media_library_state_single' => __( 'Audio Widget' ), 49 'unsupported_file_type' => __( 'Looks like this is n’t the correct kind of file. Please link to an audio file instead.' ),49 'unsupported_file_type' => __( 'Looks like this is not the correct kind of file. Please link to an audio file instead.' ), 50 50 ) 51 51 ); 52 52 } -
src/wp-includes/widgets/class-wp-widget-media-image.php
40 40 'edit_media' => _x( 'Edit Image', 'label for button in the image widget; should preferably not be longer than ~13 characters long' ), 41 41 'missing_attachment' => sprintf( 42 42 /* translators: %s: URL to media library */ 43 __( 'We can ’t find that image. Check your <a href="%s">media library</a> and make sure it wasn’t deleted.' ),43 __( 'We cannot find that image. Check your <a href="%s">media library</a> and make sure it was not deleted.' ), 44 44 esc_url( admin_url( 'upload.php' ) ) 45 45 ), 46 46 /* translators: %d: widget count */ -
src/wp-includes/widgets/class-wp-widget-media-video.php
40 40 'edit_media' => _x( 'Edit Video', 'label for button in the video widget; should preferably not be longer than ~13 characters long' ), 41 41 'missing_attachment' => sprintf( 42 42 /* translators: %s: URL to media library */ 43 __( 'We can ’t find that video. Check your <a href="%s">media library</a> and make sure it wasn’t deleted.' ),43 __( 'We cannot find that video. Check your <a href="%s">media library</a> and make sure it was not deleted.' ), 44 44 esc_url( admin_url( 'upload.php' ) ) 45 45 ), 46 46 /* translators: %d: widget count */ … … 47 47 'media_library_state_multi' => _n_noop( 'Video Widget (%d)', 'Video Widget (%d)' ), 48 48 'media_library_state_single' => __( 'Video Widget' ), 49 49 /* translators: %s: a list of valid video file extensions */ 50 'unsupported_file_type' => sprintf( __( 'Sorry, we can ’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>' ),50 '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>' ), 51 51 ) 52 52 ); 53 53 } -
src/wp-includes/widgets/class-wp-widget-text.php
488 488 <?php if ( ! isset( $instance['visual'] ) ) : ?> 489 489 <p><?php _e( 'This widget may contain code that may work better in the “Custom HTML” widget. How about trying that widget instead?' ); ?></p> 490 490 <?php else : ?> 491 <p><?php _e( 'This widget may have contained code that may work better in the “Custom HTML” widget. If you have n’t yet, how about trying that widget instead?' ); ?></p>491 <p><?php _e( 'This widget may have contained code that may work better in the “Custom HTML” widget. If you have not yet, how about trying that widget instead?' ); ?></p> 492 492 <?php endif; ?> 493 493 </div> 494 494 <p>