-
diff --git a/wp-admin/about.php b/wp-admin/about.php
old mode 100644
new mode 100755
index 960cacf9e3..40daf88642
a
|
b
|
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); |
18 | 18 | include( ABSPATH . 'wp-admin/admin-header.php' ); |
19 | 19 | ?> |
20 | 20 | <div class="wrap about-wrap full-width-layout"> |
| 21 | <?php /* translators: %s: WordPress version number */ ?> |
21 | 22 | <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> |
22 | 23 | |
| 24 | <?php /* translators: %s: WordPress version number */ ?> |
23 | 25 | <p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s will smooth your design workflow and keep you safe from coding errors.' ), $display_version ); ?></p> |
| 26 | <?php /* translators: %s: WordPress version number */ ?> |
24 | 27 | <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div> |
25 | 28 | |
26 | 29 | <h2 class="nav-tab-wrapper wp-clearfix"> |
… |
… |
include( ABSPATH . 'wp-admin/admin-header.php' ); |
185 | 188 | <p> |
186 | 189 | <?php |
187 | 190 | printf( |
| 191 | /* translators: 1: the Gutenberg plugin page, 2: the Gutenberg github page. */ |
188 | 192 | __( 'WordPress is working on a new way to create and control your content and we’d love to have your help. Interested in being an <a href="%1$s">early tester</a> or getting involved with the Gutenberg project? <a href="%2$s">Contribute on GitHub</a>.' ), |
189 | 193 | __( 'https://wordpress.org/plugins/gutenberg/' ), |
190 | 194 | 'https://github.com/WordPress/gutenberg' |
-
diff --git a/wp-admin/admin-footer.php b/wp-admin/admin-footer.php
old mode 100644
new mode 100755
index 6014d1767d..d6a0ef7320
a
|
b
|
global $hook_suffix; |
32 | 32 | ?> |
33 | 33 | <p id="footer-left" class="alignleft"> |
34 | 34 | <?php |
| 35 | /* translators: %s: link to the WordPress.org website */ |
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/wp-admin/admin.php b/wp-admin/admin.php
old mode 100644
new mode 100755
index a3dab04d3d..38314fcd6b
a
|
b
|
if ( isset( $plugin_page ) ) { |
243 | 243 | } |
244 | 244 | |
245 | 245 | if ( ! ( file_exists( WP_PLUGIN_DIR . "/$plugin_page" ) && is_file( WP_PLUGIN_DIR . "/$plugin_page" ) ) && ! ( file_exists( WPMU_PLUGIN_DIR . "/$plugin_page" ) && is_file( WPMU_PLUGIN_DIR . "/$plugin_page" ) ) ) { |
| 246 | /* translators: %s: the plugin page */ |
246 | 247 | wp_die( sprintf( __( 'Cannot load %s.' ), htmlentities( $plugin_page ) ) ); |
247 | 248 | } |
248 | 249 | |
-
diff --git a/wp-admin/async-upload.php b/wp-admin/async-upload.php
old mode 100644
new mode 100755
index cf4670bbb1..23e7e7d86d
a
|
b
|
$id = media_handle_upload( 'async-upload', $post_id ); |
91 | 91 | if ( is_wp_error( $id ) ) { |
92 | 92 | echo '<div class="error-div error"> |
93 | 93 | <button type="button" class="dismiss button-link" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">' . __( 'Dismiss' ) . '</button> |
94 | | <strong>' . sprintf( __( '“%s” has failed to upload.' ), esc_html( $_FILES['async-upload']['name'] ) ) . '</strong><br />' . |
| 94 | <strong>' |
| 95 | /* translators: %s: name of file that failed to upload */ |
| 96 | . sprintf( __( '“%s” has failed to upload.' ), esc_html( $_FILES['async-upload']['name'] ) ) |
| 97 | . '</strong><br />' . |
95 | 98 | esc_html( $id->get_error_message() ) . '</div>'; |
96 | 99 | exit; |
97 | 100 | } |
-
diff --git a/wp-admin/comment.php b/wp-admin/comment.php
old mode 100644
new mode 100755
index d95ae0ded0..cfcd8ac284
a
|
b
|
if ( $comment->comment_approved != '0' ) { // if not unapproved |
202 | 202 | <th scope="row"><?php _e( 'Submitted on' ); ?></th> |
203 | 203 | <td> |
204 | 204 | <?php |
205 | | /* translators: 1: comment date, 2: comment time */ |
206 | 205 | $submitted = sprintf( |
| 206 | /* translators: 1: comment date, 2: comment time */ |
207 | 207 | __( '%1$s at %2$s' ), |
208 | 208 | /* translators: comment date format. See https://secure.php.net/date */ |
209 | 209 | get_comment_date( __( 'Y/m/d' ), $comment ), |
-
diff --git a/wp-admin/credits.php b/wp-admin/credits.php
old mode 100644
new mode 100755
index 1b9646027f..231970560b
a
|
b
|
include( ABSPATH . 'wp-admin/admin-header.php' ); |
18 | 18 | ?> |
19 | 19 | <div class="wrap about-wrap full-width-layout"> |
20 | 20 | |
| 21 | <?php /* translators: %s: WordPress version number */ ?> |
21 | 22 | <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> |
22 | 23 | |
| 24 | <?php /* translators: %s: WordPress version number */ ?> |
23 | 25 | <p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s will smooth your design workflow and keep you safe from coding errors.' ), $display_version ); ?></p> |
24 | 26 | |
| 27 | <?php /* translators: %s: WordPress version number */ ?> |
25 | 28 | <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div> |
26 | 29 | |
27 | 30 | <h2 class="nav-tab-wrapper wp-clearfix"> |
… |
… |
$credits = wp_credits(); |
38 | 41 | |
39 | 42 | if ( ! $credits ) { |
40 | 43 | echo '<p class="about-description">'; |
41 | | /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */ |
42 | 44 | printf( |
| 45 | /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */ |
43 | 46 | __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ), |
44 | 47 | 'https://wordpress.org/about/', |
45 | 48 | __( 'https://make.wordpress.org/' ) |
… |
… |
return; |
120 | 123 | |
121 | 124 | // These are strings returned by the API that we want to be translatable |
122 | 125 | __( 'Project Leaders' ); |
| 126 | /* translators: %s: WordPress version number */ |
123 | 127 | __( 'Core Contributors to WordPress %s' ); |
124 | 128 | __( 'Noteworthy Contributors' ); |
125 | 129 | __( 'Cofounder, Project Lead' ); |
-
diff --git a/wp-admin/custom-background.php b/wp-admin/custom-background.php
old mode 100644
new mode 100755
index a813897fe9..a178e31b31
a
|
b
|
class Custom_Background { |
230 | 230 | <p> |
231 | 231 | <?php |
232 | 232 | printf( |
| 233 | /* translators: %s: customizer background image configuration url */ |
233 | 234 | __( 'You can now manage and live-preview Custom Backgrounds in the <a href="%1$s">Customizer</a>.' ), |
234 | 235 | admin_url( 'customize.php?autofocus[control]=background_image' ) |
235 | 236 | ); |
… |
… |
class Custom_Background { |
240 | 241 | |
241 | 242 | <?php if ( ! empty( $this->updated ) ) { ?> |
242 | 243 | <div id="message" class="updated"> |
| 244 | <?php /* translators: %s: website home url */ ?> |
243 | 245 | <p><?php printf( __( 'Background updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) ); ?></p> |
244 | 246 | </div> |
245 | 247 | <?php } ?> |
-
diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php
old mode 100644
new mode 100755
index 2930dada8f..e56c04adfc
a
|
b
|
class Custom_Image_Header { |
118 | 118 | 'id' => 'set-header-text', |
119 | 119 | 'title' => __( 'Header Text' ), |
120 | 120 | 'content' => |
| 121 | /* translators: %s: link to the General Settings page */ |
121 | 122 | '<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 | 123 | '<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 | 124 | '<p>' . __( 'Don’t forget to click “Save Changes” when you’re done!' ) . '</p>', |
… |
… |
class Custom_Image_Header { |
474 | 475 | <p> |
475 | 476 | <?php |
476 | 477 | printf( |
| 478 | /* translators: %s: website home url */ |
477 | 479 | __( 'You can now manage and live-preview Custom Header in the <a href="%1$s">Customizer</a>.' ), |
478 | 480 | admin_url( 'customize.php?autofocus[control]=header_image' ) |
479 | 481 | ); |
… |
… |
class Custom_Image_Header { |
484 | 486 | |
485 | 487 | <?php if ( ! empty( $this->updated ) ) { ?> |
486 | 488 | <div id="message" class="updated"> |
| 489 | <?php /* translators: %s: website home url */ ?> |
487 | 490 | <p><?php printf( __( 'Header updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) ); ?></p> |
488 | 491 | </div> |
489 | 492 | <?php } ?> |
… |
… |
class Custom_Image_Header { |
540 | 543 | <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 | 544 | <?php |
542 | 545 | if ( ! current_theme_supports( 'custom-header', 'flex-height' ) && ! current_theme_supports( 'custom-header', 'flex-width' ) ) { |
| 546 | /* translators: 1: image width in pixels, 2: image height in pixels. */ |
543 | 547 | 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' ) ); |
544 | 548 | } elseif ( current_theme_supports( 'custom-header', 'flex-height' ) ) { |
545 | 549 | if ( ! current_theme_supports( 'custom-header', 'flex-width' ) ) { |
… |
… |
if ( $default_image && get_header_image() != $default_image ) : |
721 | 725 | |
722 | 726 | echo '<input type="text" name="text-color" id="text-color" value="' . esc_attr( $header_textcolor ) . '"' . $default_color_attr . ' />'; |
723 | 727 | if ( $default_color ) { |
| 728 | /* translators: %s is the default header text color */ |
724 | 729 | echo ' <span class="description hide-if-js">' . sprintf( _x( 'Default: %s', 'color' ), esc_html( $default_color ) ) . '</span>'; |
725 | 730 | } |
726 | 731 | ?> |
-
diff --git a/wp-admin/customize.php b/wp-admin/customize.php
old mode 100644
new mode 100755
index 2486f90145..dd2f4ef11b
a
|
b
|
do_action( 'customize_controls_print_scripts' ); |
207 | 207 | <div class="accordion-section-title"> |
208 | 208 | <span class="preview-notice"> |
209 | 209 | <?php |
| 210 | /* translators: %s: website title */ |
210 | 211 | echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name', 'display' ) . '</strong>' ); |
211 | 212 | ?> |
212 | 213 | </span> |
-
diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php
old mode 100644
new mode 100755
index 6b82c15fe5..e221c7b998
a
|
b
|
if ( $post_id ) { |
146 | 146 | $comments_count = wp_count_comments( $post_id ); |
147 | 147 | $draft_or_post_title = wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' ); |
148 | 148 | if ( $comments_count->moderated > 0 ) { |
149 | | /* translators: 1: comments count, 2: post title */ |
150 | 149 | $title = sprintf( |
| 150 | /* translators: 1: comments count, 2: post title */ |
151 | 151 | __( 'Comments (%1$s) on “%2$s”' ), |
152 | 152 | number_format_i18n( $comments_count->moderated ), |
153 | 153 | $draft_or_post_title |
154 | 154 | ); |
155 | 155 | } else { |
156 | | /* translators: %s: post title */ |
157 | 156 | $title = sprintf( |
| 157 | /* translators: %s: post title */ |
158 | 158 | __( 'Comments on “%s”' ), |
159 | 159 | $draft_or_post_title |
160 | 160 | ); |
… |
… |
if ( $post_id ) { |
162 | 162 | } else { |
163 | 163 | $comments_count = wp_count_comments(); |
164 | 164 | if ( $comments_count->moderated > 0 ) { |
165 | | /* translators: %s: comments count */ |
166 | 165 | $title = sprintf( |
| 166 | /* translators: %s: comments count */ |
167 | 167 | __( 'Comments (%s)' ), |
168 | 168 | number_format_i18n( $comments_count->moderated ) |
169 | 169 | ); |
… |
… |
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
219 | 219 | <h1 class="wp-heading-inline"> |
220 | 220 | <?php |
221 | 221 | if ( $post_id ) { |
222 | | /* translators: %s: link to post */ |
223 | 222 | printf( |
| 223 | /* translators: %s: link to post */ |
224 | 224 | __( 'Comments on “%s”' ), |
225 | 225 | sprintf( |
226 | 226 | '<a href="%1$s">%2$s</a>', |
… |
… |
if ( $post_id ) { |
237 | 237 | <?php |
238 | 238 | if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { |
239 | 239 | echo '<span class="subtitle">'; |
240 | | /* translators: %s: search keywords */ |
241 | 240 | printf( |
| 241 | /* translators: %s: search keywords */ |
242 | 242 | __( 'Search results for “%s”' ), |
243 | 243 | wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '…' ) |
244 | 244 | ); |
-
diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php
old mode 100644
new mode 100755
index 677e3dfbb0..1e62c82c3e
a
|
b
|
$messages['post'] = array( |
169 | 169 | 6 => __( 'Post published.' ) . $view_post_link_html, |
170 | 170 | 7 => __( 'Post saved.' ), |
171 | 171 | 8 => __( 'Post submitted.' ) . $preview_post_link_html, |
| 172 | /* translators: %s: date the page is scheduled to be published */ |
172 | 173 | 9 => sprintf( __( 'Post scheduled for: %s.' ), '<strong>' . $scheduled_date . '</strong>' ) . $scheduled_post_link_html, |
173 | 174 | 10 => __( 'Post draft updated.' ) . $preview_post_link_html, |
174 | 175 | ); |
… |
… |
$messages['page'] = array( |
183 | 184 | 6 => __( 'Page published.' ) . $view_page_link_html, |
184 | 185 | 7 => __( 'Page saved.' ), |
185 | 186 | 8 => __( 'Page submitted.' ) . $preview_page_link_html, |
| 187 | /* translators: %s: date the page is scheduled to be published */ |
186 | 188 | 9 => sprintf( __( 'Page scheduled for: %s.' ), '<strong>' . $scheduled_date . '</strong>' ) . $scheduled_page_link_html, |
187 | 189 | 10 => __( 'Page draft updated.' ) . $preview_page_link_html, |
188 | 190 | ); |
… |
… |
$form_extra .= "<input type='hidden' id='post_ID' name='post_ID' value='" . esc |
227 | 229 | if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) { |
228 | 230 | foreach ( _wp_post_revision_fields( $post ) as $autosave_field => $_autosave_field ) { |
229 | 231 | if ( normalize_whitespace( $autosave->$autosave_field ) != normalize_whitespace( $post->$autosave_field ) ) { |
| 232 | /* translators: %s: link to check out the autosave of the post */ |
230 | 233 | $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 ) ); |
231 | 234 | break; |
232 | 235 | } |
… |
… |
if ( 'post' == $post_type ) { |
428 | 431 | ); |
429 | 432 | |
430 | 433 | get_current_screen()->set_help_sidebar( |
| 434 | /* translators: %s: Press This bookmarklet link */ |
431 | 435 | '<p>' . sprintf( __( 'You can also create posts with the <a href="%s">Press This bookmarklet</a>.' ), 'tools.php' ) . '</p>' . |
432 | 436 | '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
433 | 437 | '<p>' . __( '<a href="https://codex.wordpress.org/Posts_Add_New_Screen">Documentation on Writing and Editing Posts</a>' ) . '</p>' . |
… |
… |
wp_editor( |
711 | 715 | ); |
712 | 716 | ?> |
713 | 717 | <table id="post-status-info"><tbody><tr> |
| 718 | <?php /* translators: %s: word count number */ ?> |
714 | 719 | <td id="wp-word-count" class="hide-if-no-js"><?php printf( __( 'Word count: %s' ), '<span class="word-count">0</span>' ); ?></td> |
715 | 720 | <td class="autosave-info"> |
716 | 721 | <span class="autosave-message"> </span> |
-
diff --git a/wp-admin/edit-link-form.php b/wp-admin/edit-link-form.php
old mode 100644
new mode 100755
index d0db1df36a..6f5de434a2
a
|
b
|
if ( ! defined( 'ABSPATH' ) ) { |
12 | 12 | } |
13 | 13 | |
14 | 14 | if ( ! empty( $link_id ) ) { |
| 15 | /* translators: %s: link for the Links manager */ |
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: %s: link for the Links manager */ |
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/wp-admin/edit-tags.php b/wp-admin/edit-tags.php
old mode 100644
new mode 100755
index 2d9ab1dc04..655179fb54
a
|
b
|
if ( current_user_can( $tax->cap->edit_terms ) ) { |
239 | 239 | if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $taxonomy ) { |
240 | 240 | $help = ''; |
241 | 241 | if ( 'category' == $taxonomy ) { |
| 242 | /* translators: %s: link to the writing settings page */ |
242 | 243 | $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>'; |
243 | 244 | } elseif ( 'link_category' == $taxonomy ) { |
244 | 245 | $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>'; |
… |
… |
do_action( "{$taxonomy}_add_form", $taxonomy ); |
588 | 589 | ?> |
589 | 590 | </p> |
590 | 591 | <?php if ( current_user_can( 'import' ) ) : ?> |
| 592 | <?php /* translators: %s: link to the category to tag converter tool */ ?> |
591 | 593 | <p><?php printf( __( 'Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.' ), esc_url( $import_link ) ); ?></p> |
592 | 594 | <?php endif; ?> |
593 | 595 | </div> |
594 | 596 | <?php elseif ( 'post_tag' == $taxonomy && current_user_can( 'import' ) ) : ?> |
595 | 597 | <div class="form-wrap edit-term-notes"> |
| 598 | <?php /* translators: %s: link to the tag to category converter tool */ ?> |
596 | 599 | <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> |
597 | 600 | </div> |
598 | 601 | <?php |
-
diff --git a/wp-admin/edit.php b/wp-admin/edit.php
old mode 100644
new mode 100755
index b1ad058912..f8320c6378
a
|
b
|
$bulk_counts = array( |
306 | 306 | |
307 | 307 | $bulk_messages = array(); |
308 | 308 | $bulk_messages['post'] = array( |
| 309 | /* translators: %s: number of posts updated */ |
309 | 310 | 'updated' => _n( '%s post updated.', '%s posts updated.', $bulk_counts['updated'] ), |
310 | 311 | 'locked' => ( 1 == $bulk_counts['locked'] ) ? __( '1 post not updated, somebody is editing it.' ) : |
| 312 | /* translators: %s: number of posts not updated */ |
311 | 313 | _n( '%s post not updated, somebody is editing it.', '%s posts not updated, somebody is editing them.', $bulk_counts['locked'] ), |
| 314 | /* translators: %s: number of posts permanently deleted */ |
312 | 315 | 'deleted' => _n( '%s post permanently deleted.', '%s posts permanently deleted.', $bulk_counts['deleted'] ), |
| 316 | /* translators: %s: number of posts moved to the trash */ |
313 | 317 | 'trashed' => _n( '%s post moved to the Trash.', '%s posts moved to the Trash.', $bulk_counts['trashed'] ), |
| 318 | /* translators: %s: number of posts restored from the trash */ |
314 | 319 | 'untrashed' => _n( '%s post restored from the Trash.', '%s posts restored from the Trash.', $bulk_counts['untrashed'] ), |
315 | 320 | ); |
316 | 321 | $bulk_messages['page'] = array( |
| 322 | /* translators: %s: number of pages updated */ |
317 | 323 | 'updated' => _n( '%s page updated.', '%s pages updated.', $bulk_counts['updated'] ), |
318 | 324 | 'locked' => ( 1 == $bulk_counts['locked'] ) ? __( '1 page not updated, somebody is editing it.' ) : |
| 325 | /* translators: %s: number of pages not updated */ |
319 | 326 | _n( '%s page not updated, somebody is editing it.', '%s pages not updated, somebody is editing them.', $bulk_counts['locked'] ), |
| 327 | /* translators: %s: number of pages permanently deleted */ |
320 | 328 | 'deleted' => _n( '%s page permanently deleted.', '%s pages permanently deleted.', $bulk_counts['deleted'] ), |
| 329 | /* translators: %s: number of pages moved to the trash */ |
321 | 330 | 'trashed' => _n( '%s page moved to the Trash.', '%s pages moved to the Trash.', $bulk_counts['trashed'] ), |
| 331 | /* translators: %s: number of pages restored from the trash */ |
322 | 332 | 'untrashed' => _n( '%s page restored from the Trash.', '%s pages restored from the Trash.', $bulk_counts['untrashed'] ), |
323 | 333 | ); |
324 | 334 | |
-
diff --git a/wp-admin/freedoms.php b/wp-admin/freedoms.php
old mode 100644
new mode 100755
index 110959449d..aca9a1ceac
a
|
b
|
$is_privacy_notice = isset( $_GET['privacy-notice'] ); |
20 | 20 | ?> |
21 | 21 | <div class="wrap about-wrap full-width-layout"> |
22 | 22 | |
| 23 | <?php /* translators: %s: WordPress version number */ ?> |
23 | 24 | <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> |
24 | 25 | |
| 26 | <?php /* translators: %s: WordPress version number */ ?> |
25 | 27 | <p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s will smooth your design workflow and keep you safe from coding errors.' ), $display_version ); ?></p> |
26 | 28 | |
| 29 | <?php /* translators: %s: WordPress version number */ ?> |
27 | 30 | <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div> |
28 | 31 | |
29 | 32 | <h2 class="nav-tab-wrapper wp-clearfix"> |
… |
… |
$is_privacy_notice = isset( $_GET['privacy-notice'] ); |
38 | 41 | <div class="about-wrap-content"> |
39 | 42 | <p class="about-description"><?php _e( 'From time to time, your WordPress site may send data to WordPress.org — including, but not limited to — the version of WordPress you are using, and a list of installed plugins and themes.' ); ?></p> |
40 | 43 | |
| 44 | <?php /* translators: %s: link to the stats page on wordpress.org */ ?> |
41 | 45 | <p><?php printf( __( 'This data is used to provide general enhancements to WordPress, which includes helping to protect your site by finding and automatically installing new updates. It is also used to calculate statistics, such as those shown on the <a href="%s">WordPress.org stats page</a>.' ), 'https://wordpress.org/about/stats/' ); ?></p> |
42 | 46 | |
| 47 | <?php /* translators: %s: link to the privacy page on wordpress.org */ ?> |
43 | 48 | <p><?php printf( __( 'We take privacy and transparency very seriously. To learn more about what data we collect, and how we use it, please visit <a href="%s">WordPress.org/about/privacy</a>.' ), 'https://wordpress.org/about/privacy/' ); ?></p> |
44 | 49 | </div> |
45 | 50 | |
46 | 51 | <?php else : ?> |
47 | 52 | <div class="about-wrap-content"> |
| 53 | <?php /* translators: %s: link to the license page on wordpress.org */ ?> |
48 | 54 | <p class="about-description"><?php printf( __( 'WordPress is Free and open source software, built by a distributed community of mostly volunteer developers from around the world. WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ), 'https://wordpress.org/about/license/' ); ?></p> |
49 | 55 | |
50 | 56 | <ol start="0"> |
… |
… |
$is_privacy_notice = isset( $_GET['privacy-notice'] ); |
54 | 60 | <li><p><?php _e( 'You have the freedom to distribute copies of your modified versions to others. By doing this you can give the whole community a chance to benefit from your changes.' ); ?></p></li> |
55 | 61 | </ol> |
56 | 62 | |
| 63 | <?php /* translators: %s: trademark policy url at wordpressfoundation.org */ ?> |
57 | 64 | <p><?php printf( __( '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’re 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/' ); ?></p> |
58 | 65 | |
59 | 66 | <p> |
… |
… |
$is_privacy_notice = isset( $_GET['privacy-notice'] ); |
62 | 69 | $plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' ); |
63 | 70 | $themes_url = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' ); |
64 | 71 | |
| 72 | /* translators: 1: the plugins page url, 2: the themes page url, 3: the licence page at wordpress.org */ |
65 | 73 | 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 don’t respect the WordPress license, we don’t recommend them.' ), $plugins_url, $themes_url, 'https://wordpress.org/about/license/' ); |
66 | 74 | ?> |
67 | 75 | </p> |
-
diff --git a/wp-admin/import.php b/wp-admin/import.php
index 48051c940e..f09964a97a 100644
a
|
b
|
if ( empty( $importers ) ) { |
216 | 216 | } |
217 | 217 | |
218 | 218 | if ( current_user_can( 'install_plugins' ) ) { |
| 219 | /* translators: %s: link to the plugin directory */ |
219 | 220 | 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>'; |
220 | 221 | } |
221 | 222 | ?> |
-
diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php
index 0a0a6767a6..855148b976 100644
a
|
b
|
get_current_screen()->add_help_tab( |
52 | 52 | 'id' => 'overview', |
53 | 53 | 'title' => __( 'Overview' ), |
54 | 54 | 'content' => |
| 55 | /* translators: %s: link to the widgets page */ |
55 | 56 | '<p>' . sprintf( __( 'You can add links here to be displayed on your site, usually using <a href="%s">Widgets</a>. By default, links to several sites in the WordPress community are included as examples.' ), 'widgets.php' ) . '</p>' . |
56 | 57 | '<p>' . __( 'Links may be separated into Link Categories; these are different than the categories used on your posts.' ) . '</p>' . |
57 | 58 | '<p>' . __( 'You can customize the display of this screen using the Screen Options tab and/or the dropdown filters above the links table.' ) . '</p>', |
… |
… |
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { |
108 | 109 | if ( isset( $_REQUEST['deleted'] ) ) { |
109 | 110 | echo '<div id="message" class="updated notice is-dismissible"><p>'; |
110 | 111 | $deleted = (int) $_REQUEST['deleted']; |
| 112 | /* translators: %s: number of links deleted */ |
111 | 113 | printf( _n( '%s link deleted.', '%s links deleted', $deleted ), $deleted ); |
112 | 114 | echo '</p></div>'; |
113 | 115 | $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'deleted' ), $_SERVER['REQUEST_URI'] ); |
-
diff --git a/wp-admin/menu.php b/wp-admin/menu.php
index bf9eb72abb..078e7627be 100644
a
|
b
|
if ( ! is_multisite() ) { |
42 | 42 | } else { |
43 | 43 | $cap = 'update_languages'; |
44 | 44 | } |
| 45 | /* translators: %s: number of need updates */ |
45 | 46 | $submenu['index.php'][10] = array( sprintf( __( 'Updates %s' ), "<span class='update-plugins count-{$update_data['counts']['total']}'><span class='update-count'>" . number_format_i18n( $update_data['counts']['total'] ) . '</span></span>' ), $cap, 'update-core.php' ); |
46 | 47 | unset( $cap ); |
47 | 48 | } |
… |
… |
if ( current_user_can( 'edit_posts' ) ) { |
77 | 78 | $awaiting_mod = wp_count_comments(); |
78 | 79 | $awaiting_mod = $awaiting_mod->moderated; |
79 | 80 | $menu[25] = array( |
| 81 | /* translators: %s: number of comments awaiting moderation */ |
80 | 82 | sprintf( __( 'Comments %s' ), '<span class="awaiting-mod count-' . absint( $awaiting_mod ) . '"><span class="pending-count">' . number_format_i18n( $awaiting_mod ) . '</span></span>' ), |
81 | 83 | 'edit_posts', |
82 | 84 | 'edit-comments.php', |
… |
… |
if ( ! is_multisite() && current_user_can( 'update_plugins' ) ) { |
214 | 216 | $count = "<span class='update-plugins count-{$update_data['counts']['plugins']}'><span class='plugin-count'>" . number_format_i18n( $update_data['counts']['plugins'] ) . '</span></span>'; |
215 | 217 | } |
216 | 218 | |
| 219 | /* translators: %s: number of plugins that need update */ |
217 | 220 | $menu[65] = array( sprintf( __( 'Plugins %s' ), $count ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' ); |
218 | 221 | |
219 | 222 | $submenu['plugins.php'][5] = array( __( 'Installed Plugins' ), 'activate_plugins', 'plugins.php' ); |
… |
… |
if ( current_user_can( 'manage_privacy_options' ) && WP_Privacy_Policy_Content:: |
268 | 271 | $change_notice = ' <span class="update-plugins 1"><span class="plugin-count">' . number_format_i18n( 1 ) . '</span></span>'; |
269 | 272 | } |
270 | 273 | |
271 | | // translators: %s is the update notification bubble, if updates are available. |
| 274 | // translators: %s: update notification bubble, if updates are available. |
272 | 275 | $menu[80] = array( sprintf( __( 'Settings %s' ), $change_notice ), 'manage_options', 'options-general.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' ); |
273 | 276 | $submenu['options-general.php'][10] = array( _x( 'General', 'settings screen' ), 'manage_options', 'options-general.php' ); |
274 | 277 | $submenu['options-general.php'][15] = array( __( 'Writing' ), 'manage_options', 'options-writing.php' ); |
… |
… |
$menu[80] = array( sprintf( __( 'Settings %s' ), $ |
276 | 279 | $submenu['options-general.php'][25] = array( __( 'Discussion' ), 'manage_options', 'options-discussion.php' ); |
277 | 280 | $submenu['options-general.php'][30] = array( __( 'Media' ), 'manage_options', 'options-media.php' ); |
278 | 281 | $submenu['options-general.php'][40] = array( __( 'Permalinks' ), 'manage_options', 'options-permalink.php' ); |
279 | | // translators: %s is the update notification bubble, if updates are available. |
| 282 | // translators: %s: update notification bubble, if updates are available. |
280 | 283 | $submenu['options-general.php'][45] = array( sprintf( __( 'Privacy %s' ), $change_notice ), 'manage_privacy_options', 'privacy.php' ); |
281 | 284 | |
282 | 285 | $_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group |
-
diff --git a/wp-admin/ms-delete-site.php b/wp-admin/ms-delete-site.php
index f909204010..2299d0681f 100644
a
|
b
|
if ( ! current_user_can( 'delete_site' ) ) { |
20 | 20 | if ( isset( $_GET['h'] ) && $_GET['h'] != '' && get_option( 'delete_blog_hash' ) != false ) { |
21 | 21 | if ( hash_equals( get_option( 'delete_blog_hash' ), $_GET['h'] ) ) { |
22 | 22 | wpmu_delete_blog( get_current_blog_id() ); |
| 23 | /* translators: %s: site name */ |
23 | 24 | wp_die( sprintf( __( 'Thank you for using %s, your site has been deleted. Happy trails to you until we meet again.' ), get_network()->site_name ) ); |
24 | 25 | } else { |
25 | 26 | wp_die( __( 'Sorry, the link you clicked is stale. Please select another option.' ) ); |
… |
… |
Webmaster |
90 | 91 | <?php |
91 | 92 | } else { |
92 | 93 | ?> |
| 94 | <?php /* translators: %s: site name */ ?> |
93 | 95 | <p><?php printf( __( 'If you do not want to use your %s site any more, you can delete it using the form below. When you click <strong>Delete My Site Permanently</strong> you will be sent an email with a link in it. Click on this link to delete your site.' ), get_network()->site_name ); ?></p> |
94 | 96 | <p><?php _e( 'Remember, once deleted your site cannot be restored.' ); ?></p> |
95 | 97 | |
-
diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php
index cd4454a17b..ffe29ad829 100644
a
|
b
|
wp_nav_menu_setup(); |
529 | 529 | wp_initial_nav_menu_meta_boxes(); |
530 | 530 | |
531 | 531 | if ( ! current_theme_supports( 'menus' ) && ! $num_locations ) { |
| 532 | /* translators: %s: link to the widgets page */ |
532 | 533 | $messages[] = '<div id="message" class="updated"><p>' . sprintf( __( 'Your theme does not natively support menus, but you can use them in sidebars by adding a “Navigation Menu” widget on the <a href="%s">Widgets</a> screen.' ), admin_url( 'widgets.php' ) ) . '</p></div>'; |
533 | 534 | } |
534 | 535 | |
… |
… |
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
649 | 650 | if ( 1 == $num_locations ) { |
650 | 651 | echo '<p>' . __( 'Your theme supports one menu. Select which menu you would like to use.' ) . '</p>'; |
651 | 652 | } else { |
652 | | echo '<p>' . sprintf( _n( 'Your theme supports %s menu. Select which menu appears in each location.', 'Your theme supports %s menus. Select which menu appears in each location.', $num_locations ), number_format_i18n( $num_locations ) ) . '</p>'; |
| 653 | echo '<p>' . sprintf( |
| 654 | _n( |
| 655 | /* translators: %s: number of menus the theme supports */ |
| 656 | 'Your theme supports %s menu. Select which menu appears in each location.', |
| 657 | /* translators: %s: number of menus the theme supports */ |
| 658 | 'Your theme supports %s menus. Select which menu appears in each location.', |
| 659 | $num_locations |
| 660 | ), |
| 661 | number_format_i18n( $num_locations ) |
| 662 | ) . '</p>'; |
653 | 663 | } |
654 | 664 | ?> |
655 | 665 | <div id="menu-locations-wrap"> |
… |
… |
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
742 | 752 | <span class="add-edit-menu-action"> |
743 | 753 | <?php |
744 | 754 | printf( |
| 755 | /* translators: %s: link to create a new menu */ |
745 | 756 | __( 'Edit your menu below, or <a href="%s">create a new menu</a>. Don’t forget to save your changes!' ), esc_url( |
746 | 757 | add_query_arg( |
747 | 758 | array( |
… |
… |
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
801 | 812 | <span class="add-new-menu-action"> |
802 | 813 | <?php |
803 | 814 | printf( |
| 815 | /* translators: %s: link to create a new menu */ |
804 | 816 | __( 'or <a href="%s">create a new menu</a>. Don’t forget to save your changes!' ), esc_url( |
805 | 817 | add_query_arg( |
806 | 818 | array( |
… |
… |
if ( $one_theme_location_no_menus ) { |
943 | 955 | <?php if ( ! empty( $menu_locations[ $location ] ) && $menu_locations[ $location ] != $nav_menu_selected_id ) : ?> |
944 | 956 | <span class="theme-location-set"> |
945 | 957 | <?php |
946 | | /* translators: %s: menu name */ |
947 | 958 | printf( |
| 959 | /* translators: %s: menu name */ |
948 | 960 | _x( '(Currently set to: %s)', 'menu location' ), |
949 | 961 | wp_get_nav_menu_object( $menu_locations[ $location ] )->name |
950 | 962 | ); |
-
diff --git a/wp-admin/options-discussion.php b/wp-admin/options-discussion.php
index c98c441103..076aaa0643 100644
a
|
b
|
if ( ! get_option( 'users_can_register' ) && is_multisite() ) { |
79 | 79 | <input name="close_comments_for_old_posts" type="checkbox" id="close_comments_for_old_posts" value="1" <?php checked( '1', get_option( 'close_comments_for_old_posts' ) ); ?> /> |
80 | 80 | <?php |
81 | 81 | printf( |
| 82 | /* translators: %s: number of days after a article is published until comment are closed */ |
82 | 83 | __( 'Automatically close comments on articles older than %s days' ), |
83 | 84 | '</label> <label for="close_comments_days_old"><input name="close_comments_days_old" type="number" min="0" step="1" id="close_comments_days_old" value="' . esc_attr( get_option( 'close_comments_days_old' ) ) . '" class="small-text" />' |
84 | 85 | ); |
… |
… |
for ( $i = 2; $i <= $maxdeep; $i++ ) { |
107 | 108 | } |
108 | 109 | $thread_comments_depth .= '</select>'; |
109 | 110 | |
| 111 | /* translators: %s: number of levels for nested comments */ |
110 | 112 | printf( __( 'Enable threaded (nested) comments %s levels deep' ), $thread_comments_depth ); |
111 | 113 | |
112 | 114 | ?> |
… |
… |
if ( 'desc' == get_option( 'comment_order' ) ) { |
146 | 148 | } |
147 | 149 | $comment_order .= '>' . __( 'newer' ) . '</option></select>'; |
148 | 150 | |
| 151 | /* translators: %s: comment order */ |
149 | 152 | printf( __( 'Comments should be displayed with the %s comments at the top of each page' ), $comment_order ); |
150 | 153 | |
151 | 154 | ?> |
… |
… |
printf( __( 'Comments should be displayed with the %s comments at the top of eac |
177 | 180 | <tr> |
178 | 181 | <th scope="row"><?php _e( 'Comment Moderation' ); ?></th> |
179 | 182 | <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Comment Moderation' ); ?></span></legend> |
| 183 | <?php /* translators: %s: number of links in a comment necessary to hold it in the queue */ ?> |
180 | 184 | <p><label for="comment_max_links"><?php printf( __( 'Hold a comment in the queue if it contains %s or more links. (A common characteristic of comment spam is a large number of hyperlinks.)' ), '<input name="comment_max_links" type="number" step="1" min="0" id="comment_max_links" value="' . esc_attr( get_option( 'comment_max_links' ) ) . '" class="small-text" />' ); ?></label></p> |
181 | 185 | |
182 | 186 | <p><label for="moderation_keys"><?php _e( 'When a comment contains any of these words in its content, name, URL, email, or IP address, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP address per line. It will match inside words, so “press” will match “WordPress”.' ); ?></label></p> |
-
diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php
index 7402a5f1de..6342953ce4 100644
a
|
b
|
if ( ! empty( $languages ) || ! empty( $translations ) ) { |
187 | 187 | || ! is_multisite() && current_user_can( 'manage_options' ) ) { |
188 | 188 | ?> |
189 | 189 | <p class="description"> |
| 190 | <?php /* translators: 1: WPLANG constant, 2: wp-config.php file */ ?> |
190 | 191 | <strong><?php _e( 'Note:' ); ?></strong> <?php printf( __( 'The %1$s constant in your %2$s file is no longer needed.' ), '<code>WPLANG</code>', '<code>wp-config.php</code>' ); ?> |
191 | 192 | </p> |
192 | 193 | <?php |
193 | 194 | } |
| 195 | /* translators: 1: WPLANG constant, 2: wp-config.php file */ |
194 | 196 | _deprecated_argument( 'define()', '4.0.0', sprintf( __( 'The %1$s constant in your %2$s file is no longer needed.' ), 'WPLANG', 'wp-config.php' ) ); |
195 | 197 | } |
196 | 198 | ?> |
… |
… |
if ( empty( $tzstring ) ) { // Create a UTC+- zone if no timezone string exists |
235 | 237 | <p class="timezone-info"> |
236 | 238 | <span id="utc-time"> |
237 | 239 | <?php |
238 | | /* translators: 1: UTC abbreviation, 2: UTC time */ |
239 | 240 | printf( |
| 241 | /* translators: 1: UTC abbreviation, 2: UTC time */ |
240 | 242 | __( 'Universal time (%1$s) is %2$s.' ), |
241 | 243 | '<abbr>' . __( 'UTC' ) . '</abbr>', |
242 | 244 | '<code>' . date_i18n( $timezone_format, false, true ) . '</code>' |
… |
… |
if ( empty( $tzstring ) ) { // Create a UTC+- zone if no timezone string exists |
246 | 248 | <?php if ( get_option( 'timezone_string' ) || ! empty( $current_offset ) ) : ?> |
247 | 249 | <span id="local-time"> |
248 | 250 | <?php |
249 | | /* translators: %s: local time */ |
250 | 251 | printf( |
| 252 | /* translators: %s: local time */ |
251 | 253 | __( 'Local time is %s.' ), |
252 | 254 | '<code>' . date_i18n( $timezone_format ) . '</code>' |
253 | 255 | ); |
-
diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php
index e91117412c..2432fd409d 100644
a
|
b
|
get_current_screen()->add_help_tab( |
31 | 31 | 'id' => 'permalink-settings', |
32 | 32 | 'title' => __( 'Permalink Settings' ), |
33 | 33 | 'content' => '<p>' . __( 'Permalinks can contain useful information, such as the post date, title, or other elements. You can choose from any of the suggested permalink formats, or you can craft your own if you select Custom Structure.' ) . '</p>' . |
34 | | '<p>' . __( 'If you pick an option other than Plain, your general URL path with structure tags (terms surrounded by <code>%</code>) will also appear in the custom structure field and your path can be further modified there.' ) . '</p>' . |
35 | | '<p>' . __( 'When you assign multiple categories or tags to a post, only one can show up in the permalink: the lowest numbered category. This applies if your custom structure includes <code>%category%</code> or <code>%tag%</code>.' ) . '</p>' . |
| 34 | '<p>' . __( 'If you pick an option other than Plain, your general URL path with structure tags (terms surrounded by <code>%</code>) will also appear in the custom structure field and your path can be further modified there.' ) . '</p>' . |
| 35 | '<p>' . __( 'When you assign multiple categories or tags to a post, only one can show up in the permalink: the lowest numbered category. This applies if your custom structure includes <code>%category%</code> or <code>%tag%</code>.' ) . '</p>' . |
36 | 36 | '<p>' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '</p>', |
37 | 37 | ) |
38 | 38 | ); |
-
diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php
index 313046cf30..abe36ea555 100644
a
|
b
|
get_current_screen()->add_help_tab( |
23 | 23 | 'id' => 'overview', |
24 | 24 | 'title' => __( 'Overview' ), |
25 | 25 | 'content' => '<p>' . __( 'This screen contains the settings that affect the display of your content.' ) . '</p>' . |
| 26 | /* translators: %s: link to create a page */ |
26 | 27 | '<p>' . sprintf( __( 'You can choose what’s displayed on the homepage of your site. It can be posts in reverse chronological order (classic blog), or a fixed/static page. To set a static homepage, you first need to create two <a href="%s">Pages</a>. One will become the homepage, and the other will be where your posts are displayed.' ), 'post-new.php?post_type=page' ) . '</p>' . |
27 | 28 | '<p>' . __( 'You can also control the display of your content in RSS feeds, including the maximum number of posts to display and whether to show full text or a summary.' ) . '</p>' . |
28 | 29 | '<p>' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '</p>', |
… |
… |
else : |
83 | 84 | </p> |
84 | 85 | <p><label> |
85 | 86 | <input name="show_on_front" type="radio" value="page" class="tog" <?php checked( 'page', get_option( 'show_on_front' ) ); ?> /> |
| 87 | <?php /* translators: %s: link to edit the static page choosen as homepage */ ?> |
86 | 88 | <?php printf( __( 'A <a href="%s">static page</a> (select below)' ), 'edit.php?post_type=page' ); ?> |
87 | 89 | </label> |
88 | 90 | </p> |
… |
… |
else : |
90 | 92 | <li><label for="page_on_front"> |
91 | 93 | <?php |
92 | 94 | printf( |
| 95 | /* translators: %s: select field to choose the home page */ |
93 | 96 | __( 'Homepage: %s' ), wp_dropdown_pages( |
94 | 97 | array( |
95 | 98 | 'name' => 'page_on_front', |
… |
… |
else : |
105 | 108 | <li><label for="page_for_posts"> |
106 | 109 | <?php |
107 | 110 | printf( |
| 111 | /* translators: %s: select field to choose the page for posts */ |
108 | 112 | __( 'Posts page: %s' ), wp_dropdown_pages( |
109 | 113 | array( |
110 | 114 | 'name' => 'page_for_posts', |
-
diff --git a/wp-admin/plugin-install.php b/wp-admin/plugin-install.php
index fe5f414cd1..b8869482ed 100644
a
|
b
|
get_current_screen()->add_help_tab( |
83 | 83 | 'id' => 'overview', |
84 | 84 | 'title' => __( 'Overview' ), |
85 | 85 | 'content' => |
86 | | '<p>' . sprintf( __( 'Plugins hook into WordPress to extend its functionality with custom features. Plugins are developed independently from the core WordPress application by thousands of developers all over the world. All plugins in the official <a href="%s">WordPress Plugin Directory</a> are compatible with the license WordPress uses.' ), __( 'https://wordpress.org/plugins/' ) ) . '</p>' . |
87 | | '<p>' . __( 'You can find new plugins to install by searching or browsing the directory right here in your own Plugins section.' ) . ' <span id="live-search-desc" class="hide-if-no-js">' . __( 'The search results will be updated as you type.' ) . '</span></p>', |
| 86 | /* translators: %s: link to the plugin directory on wordpress.org */ |
| 87 | '<p>' . sprintf( __( 'Plugins hook into WordPress to extend its functionality with custom features. Plugins are developed independently from the core WordPress application by thousands of developers all over the world. All plugins in the official <a href="%s">WordPress Plugin Directory</a> are compatible with the license WordPress uses.' ), __( 'https://wordpress.org/plugins/' ) ) . '</p>' . |
| 88 | '<p>' . __( 'You can find new plugins to install by searching or browsing the directory right here in your own Plugins section.' ) . ' <span id="live-search-desc" class="hide-if-no-js">' . __( 'The search results will be updated as you type.' ) . '</span></p>', |
88 | 89 | |
89 | 90 | ) |
90 | 91 | ); |
-
diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php
index b482f474c0..9b6c6781c4 100644
a
|
b
|
if ( isset( $_GET['error'] ) ) : |
479 | 479 | if ( isset( $_GET['main'] ) ) { |
480 | 480 | $errmsg = __( 'You cannot delete a plugin while it is active on the main site.' ); |
481 | 481 | } elseif ( isset( $_GET['charsout'] ) ) { |
| 482 | /* translators: %d: number of unexpected outputed characters */ |
482 | 483 | $errmsg = sprintf( __( 'The plugin generated %d characters of <strong>unexpected output</strong> during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.' ), $_GET['charsout'] ); |
483 | 484 | } else { |
484 | 485 | $errmsg = __( 'Plugin could not be activated because it triggered a <strong>fatal error</strong>.' ); |
… |
… |
elseif ( isset( $_GET['deleted'] ) ) : |
507 | 508 | delete_transient( 'plugins_delete_result_' . $user_ID ); |
508 | 509 | |
509 | 510 | if ( is_wp_error( $delete_result ) ) : |
510 | | ?> |
| 511 | /* translators: %s: error message */ ?> |
511 | 512 | <div id="message" class="error notice is-dismissible"><p><?php printf( __( 'Plugin could not be deleted due to an error: %s' ), $delete_result->get_error_message() ); ?></p></div> |
512 | 513 | <?php else : ?> |
513 | 514 | <div id="message" class="updated notice is-dismissible"> |
-
diff --git a/wp-admin/post.php b/wp-admin/post.php
index 7fe38636af..ebae75cffc 100644
a
|
b
|
switch ( $action ) { |
230 | 230 | |
231 | 231 | if ( $user_id = wp_check_post_lock( $post_id ) ) { |
232 | 232 | $user = get_userdata( $user_id ); |
| 233 | /* translators: %s: user currently editing the item */ |
233 | 234 | wp_die( sprintf( __( 'You cannot move this item to the Trash. %s is currently editing.' ), $user->display_name ) ); |
234 | 235 | } |
235 | 236 | |
-
diff --git a/wp-admin/privacy.php b/wp-admin/privacy.php
index 991ad72eff..45bcceade0 100644
a
|
b
|
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
144 | 144 | <p> |
145 | 145 | <?php |
146 | 146 | |
147 | | /* translators: 1: Privacy Policy guide URL, 2: additional link attributes, 3: accessibility text */ |
148 | 147 | printf( |
| 148 | /* translators: 1: Privacy Policy guide URL, 2: additional link attributes, 3: accessibility text */ |
149 | 149 | __( 'Need help putting together your new Privacy Policy page? <a href="%1$s" %2$s>Check out our guide%3$s</a> for recommendations on what content to include, along with policies suggested by your plugins and theme.' ), |
150 | 150 | admin_url( 'tools.php?wp-privacy-policy-guide' ), |
151 | 151 | '', |
-
diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php
index 2382357d84..5c41b34b9f 100644
a
|
b
|
switch ( $step ) { |
166 | 166 | </ol> |
167 | 167 | <p> |
168 | 168 | <?php |
169 | | /* translators: %s: wp-config.php */ |
170 | 169 | printf( |
| 170 | /* translators: %s: wp-config.php */ |
171 | 171 | __( 'We’re going to use this information to create a %s file.' ), |
172 | 172 | '<code>wp-config.php</code>' |
173 | 173 | ); |
174 | 174 | ?> |
175 | 175 | <strong> |
176 | 176 | <?php |
177 | | /* translators: 1: wp-config-sample.php, 2: wp-config.php */ |
178 | 177 | printf( |
| 178 | /* translators: 1: wp-config-sample.php, 2: wp-config.php */ |
179 | 179 | __( 'If for any reason this automatic file creation doesn’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.' ), |
180 | 180 | '<code>wp-config-sample.php</code>', |
181 | 181 | '<code>wp-config.php</code>' |
… |
… |
switch ( $step ) { |
183 | 183 | ?> |
184 | 184 | </strong> |
185 | 185 | <?php |
186 | | /* translators: %s: Codex URL */ |
187 | 186 | printf( |
| 187 | /* translators: %s: Codex URL */ |
188 | 188 | __( 'Need more help? <a href="%s">We got it</a>.' ), |
189 | 189 | __( 'https://codex.wordpress.org/Editing_wp-config.php' ) |
190 | 190 | ); |
-
diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php
index 5fdb881a82..52adc17178 100644
a
|
b
|
if ( $theme->errors() ) { |
247 | 247 | <?php if ( ( $has_templates || $theme->parent() ) && $theme->parent() ) : ?> |
248 | 248 | <li class="howto"> |
249 | 249 | <?php |
250 | | /* translators: %s: link to edit parent theme */ |
251 | 250 | echo sprintf( |
| 251 | /* translators: %s: link to edit parent theme */ |
252 | 252 | __( 'This child theme inherits templates from a parent theme, %s.' ), |
253 | 253 | sprintf( |
| 254 | /* translators: 1: the URL to the theme editor, 2: the parent theme name */ |
254 | 255 | '<a href="%s">%s</a>', |
255 | 256 | self_admin_url( 'theme-editor.php?theme=' . urlencode( $theme->get_template() ) ), |
256 | 257 | $theme->parent()->display( 'Name' ) |
-
diff --git a/wp-admin/theme-install.php b/wp-admin/theme-install.php
index 1a250a8263..a4e56d49cb 100644
a
|
b
|
wp_localize_script( |
61 | 61 | __( 'https://wordpress.org/support/' ) |
62 | 62 | ), |
63 | 63 | 'tryAgain' => __( 'Try Again' ), |
| 64 | /* translators: %d: number of themes found */ |
64 | 65 | 'themesFound' => __( 'Number of Themes found: %d' ), |
65 | 66 | 'noThemesFound' => __( 'No themes found. Try a different search.' ), |
66 | 67 | 'collapseSidebar' => __( 'Collapse Sidebar' ), |
-
diff --git a/wp-admin/themes.php b/wp-admin/themes.php
index 085058fd6a..0a790802de 100644
a
|
b
|
if ( current_user_can( 'install_themes' ) ) { |
91 | 91 | if ( is_multisite() ) { |
92 | 92 | $help_install = '<p>' . __( 'Installing themes on Multisite can only be done from the Network Admin section.' ) . '</p>'; |
93 | 93 | } else { |
| 94 | /* translators: %s: link to the themes page on wordpress.org */ |
94 | 95 | $help_install = '<p>' . sprintf( __( 'If you would like to see more themes to choose from, click on the “Add New” button and you will be able to browse or search for additional themes from the <a href="%s">WordPress Theme Directory</a>. Themes in the WordPress Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!' ), __( 'https://wordpress.org/themes/' ) ) . '</p>'; |
95 | 96 | } |
96 | 97 | |
… |
… |
wp_localize_script( |
145 | 146 | 'addNew' => __( 'Add New Theme' ), |
146 | 147 | 'search' => __( 'Search Installed Themes' ), |
147 | 148 | 'searchPlaceholder' => __( 'Search installed themes...' ), // placeholder (no ellipsis) |
| 149 | /* translators: %d: number of themes found */ |
148 | 150 | 'themesFound' => __( 'Number of Themes found: %d' ), |
149 | 151 | 'noThemesFound' => __( 'No themes found. Try a different search.' ), |
150 | 152 | ), |
… |
… |
foreach ( $themes as $theme ) : |
292 | 294 | <?php endif; ?> |
293 | 295 | |
294 | 296 | <span class="more-details" id="<?php echo $aria_action; ?>"><?php _e( 'Theme Details' ); ?></span> |
295 | | <div class="theme-author"><?php printf( __( 'By %s' ), $theme['author'] ); ?></div> |
| 297 | <div class="theme-author"> |
| 298 | <?php |
| 299 | /* translators: %s: Theme author name */ |
| 300 | printf( __( 'By %s' ), $theme['author'] ); |
| 301 | ?> |
| 302 | </div> |
296 | 303 | |
297 | 304 | <div class="theme-id-container"> |
298 | 305 | <?php if ( $theme['active'] ) { ?> |
299 | 306 | <h2 class="theme-name" id="<?php echo $aria_name; ?>"> |
300 | 307 | <?php |
301 | | /* translators: %s: theme name */ |
| 308 | /* translators: %s: Theme name */ |
302 | 309 | printf( __( '<span>Active:</span> %s' ), $theme['name'] ); |
303 | 310 | ?> |
304 | 311 | </h2> |
… |
… |
$can_install = current_user_can( 'install_themes' ); |
483 | 490 | <# if ( data.active ) { #> |
484 | 491 | <span class="current-label"><?php _e( 'Current Theme' ); ?></span> |
485 | 492 | <# } #> |
| 493 | <?php /* translators: %s: Theme version */ ?> |
486 | 494 | <h2 class="theme-name">{{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></span></h2> |
487 | | <p class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' ); ?></p> |
| 495 | <p class="theme-author"> |
| 496 | <?php |
| 497 | /* translators: %s: Theme autor and URL */ |
| 498 | printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' ); |
| 499 | ?> |
| 500 | </p> |
488 | 501 | |
489 | 502 | <# if ( data.hasUpdate ) { #> |
490 | 503 | <div class="notice notice-warning notice-alt notice-large"> |
… |
… |
$can_install = current_user_can( 'install_themes' ); |
495 | 508 | <p class="theme-description">{{{ data.description }}}</p> |
496 | 509 | |
497 | 510 | <# if ( data.parent ) { #> |
498 | | <p class="parent-theme"><?php printf( __( 'This is a child theme of %s.' ), '<strong>{{{ data.parent }}}</strong>' ); ?></p> |
| 511 | <p class="parent-theme"> |
| 512 | <?php |
| 513 | /* translators: %s: Theme name */ |
| 514 | printf( __( 'This is a child theme of %s.' ), '<strong>{{{ data.parent }}}</strong>' ); |
| 515 | ?> |
| 516 | </p> |
499 | 517 | <# } #> |
500 | 518 | |
501 | 519 | <# if ( data.tags ) { #> |
-
diff --git a/wp-admin/tools.php b/wp-admin/tools.php
index ddb0921767..e248652b22 100644
a
|
b
|
if ( $is_privacy_guide ) { |
57 | 57 | if ( current_user_can($cats->cap->manage_terms) || current_user_can($tags->cap->manage_terms) ) : ?> |
58 | 58 | <div class="card"> |
59 | 59 | <h2 class="title"><?php _e( 'Categories and Tags Converter' ) ?></h2> |
60 | | <p><?php printf( __('If you want to convert your categories to tags (or vice versa), use the <a href="%s">Categories and Tags Converter</a> available from the Import screen.'), 'import.php' ); ?></p> |
| 60 | <p> |
| 61 | <?php |
| 62 | /* translators: %s: link to the categories and tags converter */ |
| 63 | printf( __('If you want to convert your categories to tags (or vice versa), use the <a href="%s">Categories and Tags Converter</a> available from the Import screen.'), 'import.php' ); |
| 64 | ?> |
| 65 | </p> |
61 | 66 | </div> |
62 | 67 | <?php |
63 | 68 | endif; |
-
diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php
index 61527bfc82..4d88e83750 100644
a
|
b
|
function list_core_update( $update ) { |
59 | 59 | $message = __( 'You are using a development version of WordPress. You can update to the latest nightly build automatically:' ); |
60 | 60 | } else { |
61 | 61 | if ( $current ) { |
| 62 | /* translators: %s: WordPress version number */ |
62 | 63 | $message = sprintf( __( 'If you need to re-install version %s, you can do so here:' ), $version_string ); |
63 | 64 | $submit = __( 'Re-install Now' ); |
64 | 65 | $form_action = 'update-core.php?action=do-core-reinstall'; |
… |
… |
function list_core_update( $update ) { |
116 | 117 | echo '<p class="hint">' . __( 'This localized version contains both the translation and various other localization fixes. You can skip upgrading if you want to keep your current translation.' ) . '</p>'; |
117 | 118 | } // Partial builds don't need language-specific warnings. |
118 | 119 | elseif ( 'en_US' == $update->locale && get_locale() != 'en_US' && ( ! $update->packages->partial && $wp_version == $update->partial_version ) ) { |
| 120 | /* translators: %s: WordPress version number */ |
119 | 121 | echo '<p class="hint">' . sprintf( __( 'You are about to install WordPress %s <strong>in English (US).</strong> There is a chance this update will break your translation. You may prefer to wait for the localized version to be released.' ), $update->response != 'development' ? $update->current : '' ) . '</p>'; |
120 | 122 | } |
121 | 123 | echo '</form>'; |
… |
… |
function core_upgrade_preamble() { |
221 | 223 | echo '<p>' . __( 'While your site is being updated, it will be in maintenance mode. As soon as your updates are complete, your site will return to normal.' ) . '</p>'; |
222 | 224 | } elseif ( ! $updates ) { |
223 | 225 | list( $normalized_version ) = explode( '-', $wp_version ); |
| 226 | /* translators: 1: link to the about page, 2: WordPress version number */ |
224 | 227 | echo '<p>' . sprintf( __( '<a href="%1$s">Learn more about WordPress %2$s</a>.' ), esc_url( self_admin_url( 'about.php' ) ), $normalized_version ) . '</p>'; |
225 | 228 | } |
226 | 229 | dismissed_updates(); |
… |
… |
foreach ( (array) $plugins as $plugin_file => $plugin_data ) { |
275 | 278 | |
276 | 279 | // Get plugin compat for running version of WordPress. |
277 | 280 | if ( isset( $plugin_data->update->tested ) && version_compare( $plugin_data->update->tested, $cur_wp_version, '>=' ) ) { |
| 281 | /* translators: 1: WordPress version number */ |
278 | 282 | $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: 100%% (according to its author)' ), $cur_wp_version ); |
279 | 283 | } else { |
| 284 | /* translators: 1: WordPress version number */ |
280 | 285 | $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: Unknown' ), $cur_wp_version ); |
281 | 286 | } |
282 | 287 | // Get plugin compat for updated version of WordPress. |
283 | 288 | if ( $core_update_version ) { |
284 | 289 | if ( isset( $plugin_data->update->tested ) && version_compare( $plugin_data->update->tested, $core_update_version, '>=' ) ) { |
| 290 | /* translators: 1: WordPress version number */ |
285 | 291 | $compat .= '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: 100%% (according to its author)' ), $core_update_version ); |
286 | 292 | } else { |
| 293 | /* translators: 1: WordPress version number */ |
287 | 294 | $compat .= '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: Unknown' ), $core_update_version ); |
288 | 295 | } |
289 | 296 | } |
… |
… |
foreach ( (array) $plugins as $plugin_file => $plugin_data ) { |
311 | 318 | <input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $plugin_file ); ?>" /> |
312 | 319 | <label for="<?php echo $checkbox_id; ?>" class="screen-reader-text"> |
313 | 320 | <?php |
314 | | /* translators: %s: plugin name */ |
315 | 321 | printf( |
| 322 | /* translators: %s: plugin name */ |
316 | 323 | __( 'Select %s' ), |
317 | 324 | $plugin_data->Name |
318 | 325 | ); |
… |
… |
foreach ( (array) $plugins as $plugin_file => $plugin_data ) { |
323 | 330 | <?php echo $icon; ?> |
324 | 331 | <strong><?php echo $plugin_data->Name; ?></strong> |
325 | 332 | <?php |
326 | | /* translators: 1: plugin version, 2: new version */ |
327 | 333 | printf( |
| 334 | /* translators: 1: plugin version, 2: new version */ |
328 | 335 | __( 'You have version %1$s installed. Update to %2$s.' ), |
329 | 336 | $plugin_data->Version, |
330 | 337 | $plugin_data->update->new_version |
… |
… |
function list_theme_updates() { |
365 | 372 | ?> |
366 | 373 | <h2><?php _e( 'Themes' ); ?></h2> |
367 | 374 | <p><?php _e( 'The following themes have new versions available. Check the ones you want to update and then click “Update Themes”.' ); ?></p> |
368 | | <p><?php printf( __( '<strong>Please Note:</strong> Any customizations you have made to theme files will be lost. Please consider using <a href="%s">child themes</a> for modifications.' ), __( 'https://codex.wordpress.org/Child_Themes' ) ); ?></p> |
| 375 | <p> |
| 376 | <?php |
| 377 | /* translators: %s: link to the child theme codex page */ |
| 378 | printf( __( '<strong>Please Note:</strong> Any customizations you have made to theme files will be lost. Please consider using <a href="%s">child themes</a> for modifications.' ), __( 'https://codex.wordpress.org/Child_Themes' ) ); |
| 379 | ?> |
| 380 | </p> |
369 | 381 | <form method="post" action="<?php echo esc_url( $form_action ); ?>" name="upgrade-themes" class="upgrade"> |
370 | 382 | <?php wp_nonce_field( 'upgrade-core' ); ?> |
371 | 383 | <p><input id="upgrade-themes" class="button" type="submit" value="<?php esc_attr_e( 'Update Themes' ); ?>" name="upgrade" /></p> |
… |
… |
foreach ( $themes as $stylesheet => $theme ) { |
387 | 399 | <input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $stylesheet ); ?>" /> |
388 | 400 | <label for="<?php echo $checkbox_id; ?>" class="screen-reader-text"> |
389 | 401 | <?php |
390 | | /* translators: %s: theme name */ |
391 | 402 | printf( |
| 403 | /* translators: %s: theme name */ |
392 | 404 | __( 'Select %s' ), |
393 | 405 | $theme->display( 'Name' ) |
394 | 406 | ); |
… |
… |
foreach ( $themes as $stylesheet => $theme ) { |
399 | 411 | <img src="<?php echo esc_url( $theme->get_screenshot() ); ?>" width="85" height="64" class="updates-table-screenshot" alt="" /> |
400 | 412 | <strong><?php echo $theme->display( 'Name' ); ?></strong> |
401 | 413 | <?php |
402 | | /* translators: 1: theme version, 2: new version */ |
403 | 414 | printf( |
| 415 | /* translators: 1: theme version, 2: new version */ |
404 | 416 | __( 'You have version %1$s installed. Update to %2$s.' ), |
405 | 417 | $theme->display( 'Version' ), |
406 | 418 | $theme->update['new_version'] |
… |
… |
if ( is_wp_error( $result ) ) { |
529 | 541 | } |
530 | 542 | |
531 | 543 | show_message( __( 'WordPress updated successfully' ) ); |
| 544 | /* translators: 1: WordPress version number, 2: link to information about the update */ |
532 | 545 | show_message( '<span class="hide-if-no-js">' . sprintf( __( 'Welcome to WordPress %1$s. You will be redirected to the About WordPress screen. If not, click <a href="%2$s">here</a>.' ), $result, esc_url( self_admin_url( 'about.php?updated' ) ) ) . '</span>' ); |
| 546 | /* translators: 1: WordPress version number, 2: link to information about the update */ |
533 | 547 | show_message( '<span class="hide-if-js">' . sprintf( __( 'Welcome to WordPress %1$s. <a href="%2$s">Learn more</a>.' ), $result, esc_url( self_admin_url( 'about.php?updated' ) ) ) . '</span>' ); |
534 | 548 | ?> |
535 | 549 | </div> |
-
diff --git a/wp-admin/update.php b/wp-admin/update.php
index 5b07beb710..db3fb1b702 100644
a
|
b
|
if ( isset( $_GET['action'] ) ) { |
123 | 123 | $submenu_file = 'plugin-install.php'; |
124 | 124 | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
125 | 125 | |
| 126 | /* translators: %s: plugin name and version */ |
126 | 127 | $title = sprintf( __( 'Installing Plugin: %s' ), $api->name . ' ' . $api->version ); |
127 | 128 | $nonce = 'install-plugin_' . $plugin; |
128 | 129 | $url = 'update.php?action=install-plugin&plugin=' . urlencode( $plugin ); |
… |
… |
if ( isset( $_GET['action'] ) ) { |
152 | 153 | $submenu_file = 'plugin-install.php'; |
153 | 154 | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
154 | 155 | |
| 156 | /* translators: %s: uploaded file name */ |
155 | 157 | $title = sprintf( __( 'Installing Plugin from uploaded file: %s' ), esc_html( basename( $file_upload->filename ) ) ); |
156 | 158 | $nonce = 'plugin-upload'; |
157 | 159 | $url = add_query_arg( array( 'package' => $file_upload->id ), 'update.php?action=upload-plugin' ); |
… |
… |
if ( isset( $_GET['action'] ) ) { |
243 | 245 | $submenu_file = 'themes.php'; |
244 | 246 | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
245 | 247 | |
| 248 | /* translators: %s: theme name and version */ |
246 | 249 | $title = sprintf( __( 'Installing Theme: %s' ), $api->name . ' ' . $api->version ); |
247 | 250 | $nonce = 'install-theme_' . $theme; |
248 | 251 | $url = 'update.php?action=install-theme&theme=' . urlencode( $theme ); |
… |
… |
if ( isset( $_GET['action'] ) ) { |
269 | 272 | |
270 | 273 | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
271 | 274 | |
| 275 | /* translators: %s: uploaded file name */ |
272 | 276 | $title = sprintf( __( 'Installing Theme from uploaded file: %s' ), esc_html( basename( $file_upload->filename ) ) ); |
273 | 277 | $nonce = 'theme-upload'; |
274 | 278 | $url = add_query_arg( array( 'package' => $file_upload->id ), 'update.php?action=upload-theme' ); |
-
diff --git a/wp-admin/upgrade.php b/wp-admin/upgrade.php
index bd9419d506..6eb0e49bdf 100644
a
|
b
|
if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) { |
81 | 81 | <?php |
82 | 82 | elseif ( ! $php_compat || ! $mysql_compat ) : |
83 | 83 | if ( ! $mysql_compat && ! $php_compat ) { |
| 84 | /* translators: 1: WordPress version number, 2: required PHP version number, 3: required MySQL version number, 4: current PHP version number, 5: current MySQL version number */ |
84 | 85 | printf( __( 'You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.' ), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ); |
85 | 86 | } elseif ( ! $php_compat ) { |
| 87 | /* translators: 1: WordPress version number, 2: required PHP version number, 3: current PHP version number */ |
86 | 88 | printf( __( 'You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_php_version, $php_version ); |
87 | 89 | } elseif ( ! $mysql_compat ) { |
| 90 | /* translators: 1: WordPress version number, 2: required MySQL version number, 3: current MySQL version number */ |
88 | 91 | printf( __( 'You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires MySQL version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_mysql_version, $mysql_version ); |
89 | 92 | } |
90 | 93 | ?> |
… |
… |
else : |
117 | 120 | |
118 | 121 | <!-- |
119 | 122 | <pre> |
120 | | <?php printf( __( '%s queries' ), $wpdb->num_queries ); ?> |
| 123 | <?php |
| 124 | /* translators: %s: number of queries */ |
| 125 | printf( __( '%s queries' ), $wpdb->num_queries ); |
| 126 | ?> |
121 | 127 | |
122 | | <?php printf( __( '%s seconds' ), timer_stop( 0 ) ); ?> |
| 128 | <?php |
| 129 | /* translators: %s: number of seconds */ |
| 130 | printf( __( '%s seconds' ), timer_stop( 0 ) ); |
| 131 | ?> |
123 | 132 | </pre> |
124 | 133 | --> |
125 | 134 | |
-
diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php
index b1547886d5..250c5aff2a 100644
a
|
b
|
if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c |
568 | 568 | if ( IS_PROFILE_PAGE ) { |
569 | 569 | /* translators: %s: Gravatar URL */ |
570 | 570 | $description = sprintf( |
| 571 | /* translators: %s: link to Gravatar */ |
571 | 572 | __( 'You can change your profile picture on <a href="%s">Gravatar</a>.' ), |
572 | 573 | __( 'https://en.gravatar.com/' ) |
573 | 574 | ); |
… |
… |
foreach ( $profileuser->caps as $cap => $value ) { |
738 | 739 | if ( '' != $output ) { |
739 | 740 | $output .= ', '; |
740 | 741 | } |
| 742 | /* translators: %s: role denied */ |
741 | 743 | $output .= $value ? $cap : sprintf( __( 'Denied: %s' ), $cap ); |
742 | 744 | } |
743 | 745 | } |
-
diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php
index 91ba0ace58..f7a5370502 100644
a
|
b
|
if ( isset( $_REQUEST['action'] ) && 'adduser' == $_REQUEST['action'] ) { |
110 | 110 | |
111 | 111 | $switched_locale = switch_to_locale( get_user_locale( $user_details ) ); |
112 | 112 | |
113 | | /* translators: 1: Site name, 2: site URL, 3: role, 4: activation URL */ |
| 113 | /* translators: 1: site name, 2: site URL, 3: role, 4: activation URL */ |
114 | 114 | $message = __( |
115 | 115 | 'Hi, |
116 | 116 | |
… |
… |
You\'ve been invited to join \'%1$s\' at |
120 | 120 | Please click the following link to confirm the invite: |
121 | 121 | %4$s' |
122 | 122 | ); |
| 123 | /* translators: %s: site name */ |
123 | 124 | wp_mail( $new_user_email, sprintf( __( '[%s] Joining confirmation' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), sprintf( $message, get_option( 'blogname' ), home_url(), wp_specialchars_decode( translate_user_role( $role['name'] ) ), home_url( "/newbloguser/$newuser_key/" ) ) ); |
124 | 125 | |
125 | 126 | if ( $switched_locale ) { |
-
diff --git a/wp-admin/users.php b/wp-admin/users.php
index b1ca382422..07608084bc 100644
a
|
b
|
foreach ( $userids as $id ) { |
465 | 465 | if ( 1 == $delete_count ) { |
466 | 466 | $message = __( 'User deleted.' ); |
467 | 467 | } else { |
| 468 | /* translators: %s: number of users deleted */ |
468 | 469 | $message = _n( '%s user deleted.', '%s users deleted.', $delete_count ); |
469 | 470 | } |
470 | 471 | $messages[] = '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $delete_count ) ) . '</p></div>'; |
471 | 472 | break; |
472 | 473 | case 'add': |
473 | 474 | if ( isset( $_GET['id'] ) && ( $user_id = $_GET['id'] ) && current_user_can( 'edit_user', $user_id ) ) { |
474 | | /* translators: %s: edit page url */ |
475 | 475 | $messages[] = '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( |
| 476 | /* translators: %s: edit page url */ |
476 | 477 | __( 'New user created. <a href="%s">Edit user</a>' ), |
477 | 478 | esc_url( |
478 | 479 | add_query_arg( |
-
diff --git a/wp-admin/widgets.php b/wp-admin/widgets.php
index ade4fd2b4b..707fa7379c 100644
a
|
b
|
if ( isset( $_GET['editwidget'] ) && $_GET['editwidget'] ) { |
291 | 291 | <div class="wrap"> |
292 | 292 | <h1><?php echo esc_html( $title ); ?></h1> |
293 | 293 | <div class="editwidget"<?php echo $width; ?>> |
294 | | <h2><?php printf( __( 'Widget %s' ), $name ); ?></h2> |
| 294 | <h2> |
| 295 | <?php |
| 296 | /* translators: %s: widget name */ |
| 297 | printf( __( 'Widget %s' ), $name ); |
| 298 | ?> |
| 299 | </h2> |
295 | 300 | |
296 | 301 | <form action="widgets.php" method="post"> |
297 | 302 | <div class="widget-inside"> |