diff --git a/package-lock.json b/package-lock.json
index 1af8bf6853..a9f6a559d9 100644
a
|
b
|
|
6709 | 6709 | "optional": true |
6710 | 6710 | }, |
6711 | 6711 | "grunt": { |
6712 | | "version": "1.0.3", |
6713 | | "resolved": "https://registry.npmjs.org/grunt/-/grunt-1.0.3.tgz", |
6714 | | "integrity": "sha512-/JzmZNPfKorlCrrmxWqQO4JVodO+DVd5XX4DkocL/1WlLlKVLE9+SdEIempOAxDhWPysLle6afvn/hg7Ck2k9g==", |
| 6712 | "version": "1.0.4", |
| 6713 | "resolved": "https://registry.npmjs.org/grunt/-/grunt-1.0.4.tgz", |
| 6714 | "integrity": "sha512-PYsMOrOC+MsdGEkFVwMaMyc6Ob7pKmq+deg1Sjr+vvMWp35sztfwKE7qoN51V+UEtHsyNuMcGdgMLFkBHvMxHQ==", |
6715 | 6715 | "dev": true, |
6716 | 6716 | "requires": { |
6717 | 6717 | "coffeescript": "~1.10.0", |
… |
… |
|
6725 | 6725 | "grunt-legacy-log": "~2.0.0", |
6726 | 6726 | "grunt-legacy-util": "~1.1.1", |
6727 | 6727 | "iconv-lite": "~0.4.13", |
6728 | | "js-yaml": "~3.5.2", |
| 6728 | "js-yaml": "~3.13.0", |
6729 | 6729 | "minimatch": "~3.0.2", |
6730 | 6730 | "mkdirp": "~0.5.1", |
6731 | 6731 | "nopt": "~3.0.6", |
… |
… |
|
6746 | 6746 | } |
6747 | 6747 | }, |
6748 | 6748 | "rimraf": { |
6749 | | "version": "2.6.2", |
6750 | | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", |
6751 | | "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", |
| 6749 | "version": "2.6.3", |
| 6750 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", |
| 6751 | "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", |
6752 | 6752 | "dev": true, |
6753 | 6753 | "requires": { |
6754 | | "glob": "^7.0.5" |
| 6754 | "glob": "^7.1.3" |
| 6755 | }, |
| 6756 | "dependencies": { |
| 6757 | "glob": { |
| 6758 | "version": "7.1.4", |
| 6759 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", |
| 6760 | "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", |
| 6761 | "dev": true, |
| 6762 | "requires": { |
| 6763 | "fs.realpath": "^1.0.0", |
| 6764 | "inflight": "^1.0.4", |
| 6765 | "inherits": "2", |
| 6766 | "minimatch": "^3.0.4", |
| 6767 | "once": "^1.3.0", |
| 6768 | "path-is-absolute": "^1.0.0" |
| 6769 | } |
| 6770 | } |
6755 | 6771 | } |
6756 | 6772 | } |
6757 | 6773 | } |
… |
… |
|
7166 | 7182 | } |
7167 | 7183 | }, |
7168 | 7184 | "chalk": { |
7169 | | "version": "2.4.1", |
7170 | | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", |
7171 | | "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", |
| 7185 | "version": "2.4.2", |
| 7186 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", |
| 7187 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", |
7172 | 7188 | "dev": true, |
7173 | 7189 | "requires": { |
7174 | 7190 | "ansi-styles": "^3.2.1", |
… |
… |
|
9046 | 9062 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" |
9047 | 9063 | }, |
9048 | 9064 | "js-yaml": { |
9049 | | "version": "3.5.5", |
9050 | | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.5.5.tgz", |
9051 | | "integrity": "sha1-A3fDgBfKvHMisNH7zSWkkWQfL74=", |
| 9065 | "version": "3.13.1", |
| 9066 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", |
| 9067 | "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", |
9052 | 9068 | "dev": true, |
9053 | 9069 | "requires": { |
9054 | | "argparse": "^1.0.2", |
9055 | | "esprima": "^2.6.0" |
| 9070 | "argparse": "^1.0.7", |
| 9071 | "esprima": "^4.0.0" |
9056 | 9072 | }, |
9057 | 9073 | "dependencies": { |
9058 | 9074 | "esprima": { |
9059 | | "version": "2.7.3", |
9060 | | "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz", |
9061 | | "integrity": "sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE=", |
| 9075 | "version": "4.0.1", |
| 9076 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", |
| 9077 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", |
9062 | 9078 | "dev": true |
9063 | 9079 | } |
9064 | 9080 | } |
diff --git a/package.json b/package.json
index 5dc8dc6756..76129eea10 100644
a
|
b
|
|
19 | 19 | "check-node-version": "3.2.0", |
20 | 20 | "copy-webpack-plugin": "^4.6.0", |
21 | 21 | "cssnano": "4.1.8", |
22 | | "grunt": "~1.0.3", |
| 22 | "grunt": "1.0.4", |
23 | 23 | "grunt-banner": "^0.6.0", |
24 | 24 | "grunt-contrib-clean": "~2.0.0", |
25 | 25 | "grunt-contrib-concat": "~1.0.0", |
diff --git a/src/wp-admin/admin-footer.php b/src/wp-admin/admin-footer.php
index 6014d1767d..552d874e03 100644
a
|
b
|
global $hook_suffix; |
32 | 32 | ?> |
33 | 33 | <p id="footer-left" class="alignleft"> |
34 | 34 | <?php |
| 35 | /* translators: Thank you for creating with WordPress */ |
35 | 36 | $text = sprintf( __( 'Thank you for creating with <a href="%s">WordPress</a>.' ), __( 'https://wordpress.org/' ) ); |
36 | 37 | /** |
37 | 38 | * Filters the "Thank you" text displayed in the admin footer. |
diff --git a/src/wp-admin/custom-header.php b/src/wp-admin/custom-header.php
index 2cf26600d2..5d74ac5f2e 100644
a
|
b
|
class Custom_Image_Header { |
118 | 118 | 'id' => 'set-header-text', |
119 | 119 | 'title' => __( 'Header Text' ), |
120 | 120 | 'content' => |
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>' . |
| 121 | '<p>' . sprintf( |
| 122 | /* translators: General Settings URL */ |
| 123 | __( '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 | 124 | '<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 | 125 | '<p>' . __( 'Don’t forget to click “Save Changes” when you’re done!' ) . '</p>', |
124 | 126 | ) |
… |
… |
class Custom_Image_Header { |
474 | 476 | <p> |
475 | 477 | <?php |
476 | 478 | printf( |
| 479 | /* translators: Customizer URL */ |
477 | 480 | __( 'You can now manage and live-preview Custom Header in the <a href="%1$s">Customizer</a>.' ), |
478 | 481 | admin_url( 'customize.php?autofocus[control]=header_image' ) |
479 | 482 | ); |
… |
… |
class Custom_Image_Header { |
484 | 487 | |
485 | 488 | <?php if ( ! empty( $this->updated ) ) { ?> |
486 | 489 | <div id="message" class="updated"> |
487 | | <p><?php printf( __( 'Header updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) ); ?></p> |
| 490 | <p><?php printf( |
| 491 | /* translators: Home URL */ |
| 492 | __( 'Header updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) ); ?></p> |
488 | 493 | </div> |
489 | 494 | <?php } ?> |
490 | 495 | |
… |
… |
class Custom_Image_Header { |
540 | 545 | <p><?php _e( 'You can select an image to be shown at the top of your site by uploading from your computer or choosing from your media library. After selecting an image you will be able to crop it.' ); ?><br /> |
541 | 546 | <?php |
542 | 547 | if ( ! current_theme_supports( 'custom-header', 'flex-height' ) && ! current_theme_supports( 'custom-header', 'flex-width' ) ) { |
543 | | printf( __( 'Images of exactly <strong>%1$d × %2$d pixels</strong> will be used as-is.' ) . '<br />', get_theme_support( 'custom-header', 'width' ), get_theme_support( 'custom-header', 'height' ) ); |
| 548 | printf( |
| 549 | /* translators: Custom image pixels */ |
| 550 | __( 'Images of exactly <strong>%1$d × %2$d pixels</strong> will be used as-is.' ) . '<br />', get_theme_support( 'custom-header', 'width' ), get_theme_support( 'custom-header', 'height' ) ); |
544 | 551 | } elseif ( current_theme_supports( 'custom-header', 'flex-height' ) ) { |
545 | 552 | if ( ! current_theme_supports( 'custom-header', 'flex-width' ) ) { |
546 | 553 | printf( |
… |
… |
class Custom_Image_Header { |
722 | 729 | |
723 | 730 | echo '<input type="text" name="text-color" id="text-color" value="' . esc_attr( $header_textcolor ) . '"' . $default_color_attr . ' />'; |
724 | 731 | if ( $default_color ) { |
725 | | echo ' <span class="description hide-if-js">' . sprintf( _x( 'Default: %s', 'color' ), esc_html( $default_color ) ) . '</span>'; |
| 732 | echo ' <span class="description hide-if-js">' . sprintf( |
| 733 | /* translators: Default text color */ |
| 734 | _x( 'Default: %s', 'color' ), esc_html( $default_color ) ) . '</span>'; |
726 | 735 | } |
727 | 736 | ?> |
728 | 737 | </p> |
diff --git a/src/wp-admin/edit-form-advanced.php b/src/wp-admin/edit-form-advanced.php
index b7f6fad9ab..5fc120174c 100644
a
|
b
|
$form_extra .= "<input type='hidden' id='post_ID' name='post_ID' value='" . esc |
231 | 231 | if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) { |
232 | 232 | foreach ( _wp_post_revision_fields( $post ) as $autosave_field => $_autosave_field ) { |
233 | 233 | if ( normalize_whitespace( $autosave->$autosave_field ) != normalize_whitespace( $post->$autosave_field ) ) { |
234 | | $notice = sprintf( __( 'There is an autosave of this post that is more recent than the version below. <a href="%s">View the autosave</a>' ), get_edit_post_link( $autosave->ID ) ); |
| 234 | $notice = sprintf( |
| 235 | /* translators: Autosave edit post URL */ |
| 236 | __( 'There is an autosave of this post that is more recent than the version below. <a href="%s">View the autosave</a>' ), get_edit_post_link( $autosave->ID ) ); |
235 | 237 | break; |
236 | 238 | } |
237 | 239 | } |
diff --git a/src/wp-admin/edit-link-form.php b/src/wp-admin/edit-link-form.php
index f63d71b48e..79215733aa 100644
a
|
b
|
if ( ! defined( 'ABSPATH' ) ) { |
12 | 12 | } |
13 | 13 | |
14 | 14 | if ( ! empty( $link_id ) ) { |
| 15 | /* translators: Edit Link URL */ |
15 | 16 | $heading = sprintf( __( '<a href="%s">Links</a> / Edit Link' ), 'link-manager.php' ); |
16 | 17 | $submit_text = __( 'Update Link' ); |
17 | 18 | $form_name = 'editlink'; |
18 | 19 | $nonce_action = 'update-bookmark_' . $link_id; |
19 | 20 | } else { |
| 21 | /* translators: Add New Link URL */ |
20 | 22 | $heading = sprintf( __( '<a href="%s">Links</a> / Add New Link' ), 'link-manager.php' ); |
21 | 23 | $submit_text = __( 'Add Link' ); |
22 | 24 | $form_name = 'addlink'; |
diff --git a/src/wp-admin/edit-tags.php b/src/wp-admin/edit-tags.php
index 1be66c9dfa..c507015735 100644
a
|
b
|
if ( current_user_can( $tax->cap->edit_terms ) ) { |
242 | 242 | if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $taxonomy ) { |
243 | 243 | $help = ''; |
244 | 244 | if ( 'category' == $taxonomy ) { |
245 | | $help = '<p>' . sprintf( __( 'You can use categories to define sections of your site and group related posts. The default category is “Uncategorized” until you change it in your <a href="%s">writing settings</a>.' ), 'options-writing.php' ) . '</p>'; |
| 245 | $help = '<p>' . sprintf( |
| 246 | /* translators: Wrtting settings URL */ |
| 247 | __( 'You can use categories to define sections of your site and group related posts. The default category is “Uncategorized” until you change it in your <a href="%s">writing settings</a>.' ), 'options-writing.php' ) . '</p>'; |
246 | 248 | } elseif ( 'link_category' == $taxonomy ) { |
247 | 249 | $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>'; |
248 | 250 | } else { |
… |
… |
if ( $can_edit_terms ) { |
593 | 595 | </p> |
594 | 596 | <?php if ( current_user_can( 'import' ) ) : ?> |
595 | 597 | <p> |
596 | | <?php printf( __( 'Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.' ), esc_url( $import_link ) ); ?> |
| 598 | <?php printf( |
| 599 | /* translators: Category to tag URL */ |
| 600 | __( 'Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.' ), esc_url( $import_link ) ); ?> |
597 | 601 | </p> |
598 | 602 | <?php endif; ?> |
599 | 603 | </div> |
600 | 604 | <?php elseif ( 'post_tag' == $taxonomy && current_user_can( 'import' ) ) : ?> |
601 | 605 | <div class="form-wrap edit-term-notes"> |
602 | | <p><?php printf( __( 'Tags can be selectively converted to categories using the <a href="%s">tag to category converter</a>.' ), esc_url( $import_link ) ); ?></p> |
| 606 | <p><?php printf( |
| 607 | /* translators: Category to tag URL */ |
| 608 | __( 'Tags can be selectively converted to categories using the <a href="%s">tag to category converter</a>.' ), esc_url( $import_link ) ); ?></p> |
603 | 609 | </div> |
604 | 610 | <?php |
605 | 611 | endif; |
diff --git a/src/wp-admin/import.php b/src/wp-admin/import.php
index 14555ec597..816ae311be 100644
a
|
b
|
if ( empty( $importers ) ) { |
222 | 222 | } |
223 | 223 | |
224 | 224 | if ( current_user_can( 'install_plugins' ) ) { |
225 | | echo '<p>' . sprintf( __( 'If the importer you need is not listed, <a href="%s">search the plugin directory</a> to see if an importer is available.' ), esc_url( network_admin_url( 'plugin-install.php?tab=search&type=tag&s=importer' ) ) ) . '</p>'; |
| 225 | echo '<p>' . sprintf( |
| 226 | /* translators: %s: Search importer results URL */ |
| 227 | __( 'If the importer you need is not listed, <a href="%s">search the plugin directory</a> to see if an importer is available.' ), esc_url( network_admin_url( 'plugin-install.php?tab=search&type=tag&s=importer' ) ) ) . '</p>'; |
226 | 228 | } |
227 | 229 | ?> |
228 | 230 | |