-
diff --git a/src/wp-includes/admin-bar.php b/src/wp-includes/admin-bar.php
index c21916e..90396e3 100644
a
|
b
|
function wp_admin_bar_comments_menu( $wp_admin_bar ) { |
883 | 883 | |
884 | 884 | $awaiting_mod = wp_count_comments(); |
885 | 885 | $awaiting_mod = $awaiting_mod->moderated; |
| 886 | /* translators: %s: amount of comments awaiting moderation */ |
886 | 887 | $awaiting_text = sprintf( _n( '%s comment awaiting moderation', '%s comments awaiting moderation', $awaiting_mod ), number_format_i18n( $awaiting_mod ) ); |
887 | 888 | |
888 | 889 | $icon = '<span class="ab-icon"></span>'; |
-
diff --git a/src/wp-includes/author-template.php b/src/wp-includes/author-template.php
index 9ef4dac..3978178 100644
a
|
b
|
function the_author( $deprecated = '', $deprecated_echo = true ) { |
64 | 64 | if ( true !== $deprecated_echo ) { |
65 | 65 | _deprecated_argument( |
66 | 66 | __FUNCTION__, '1.5.0', |
67 | | /* translators: %s: get_the_author() */ |
68 | 67 | sprintf( |
| 68 | /* translators: %s: get_the_author() */ |
69 | 69 | __( 'Use %s instead if you do not want the value echoed.' ), |
70 | 70 | '<code>get_the_author()</code>' |
71 | 71 | ) |
-
diff --git a/src/wp-includes/bookmark-template.php b/src/wp-includes/bookmark-template.php
index 3545ecb..c01ba82 100644
a
|
b
|
function _walk_bookmarks( $bookmarks, $args = '' ) { |
86 | 86 | if ( '00' != substr( $bookmark->link_updated_f, 0, 2 ) ) { |
87 | 87 | $title .= ' ('; |
88 | 88 | $title .= sprintf( |
| 89 | /* translators: %s: Date/time */ |
89 | 90 | __( 'Last updated: %s' ), |
90 | 91 | date( |
91 | 92 | get_option( 'links_updated_date_format' ), |
-
diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php
index 9e4ae83..7062fd3 100644
a
|
b
|
function wp_dropdown_categories( $args = '' ) { |
354 | 354 | if ( isset( $args['type'] ) && 'link' == $args['type'] ) { |
355 | 355 | _deprecated_argument( |
356 | 356 | __FUNCTION__, '3.0.0', |
357 | | /* translators: 1: "type => link", 2: "taxonomy => link_category" */ |
358 | 357 | sprintf( |
| 358 | /* translators: 1: "type => link", 2: "taxonomy => link_category" */ |
359 | 359 | __( '%1$s is deprecated. Use %2$s instead.' ), |
360 | 360 | '<code>type => link</code>', |
361 | 361 | '<code>taxonomy => link_category</code>' |
… |
… |
function wp_generate_tag_cloud( $tags, $args = '' ) { |
833 | 833 | } elseif ( ! empty( $args['topic_count_text_callback'] ) ) { |
834 | 834 | // Look for the alternative callback style. Ignore the previous default. |
835 | 835 | if ( $args['topic_count_text_callback'] === 'default_topic_count_text' ) { |
| 836 | /* translators: %s: amount of items (tags) */ |
836 | 837 | $translate_nooped_plural = _n_noop( '%s item', '%s items' ); |
837 | 838 | } else { |
838 | 839 | $translate_nooped_plural = false; |
… |
… |
function wp_generate_tag_cloud( $tags, $args = '' ) { |
842 | 843 | $translate_nooped_plural = _n_noop( $args['single_text'], $args['multiple_text'] ); |
843 | 844 | } else { |
844 | 845 | // This is the default for when no callback, plural, or argument is passed in. |
| 846 | /* translators: %s: amount of items (tags) */ |
845 | 847 | $translate_nooped_plural = _n_noop( '%s item', '%s items' ); |
846 | 848 | } |
847 | 849 | |
-
diff --git a/src/wp-includes/category.php b/src/wp-includes/category.php
index 0258353..af28a8a 100644
a
|
b
|
function get_categories( $args = '' ) { |
43 | 43 | if ( isset( $args['type'] ) && 'link' == $args['type'] ) { |
44 | 44 | _deprecated_argument( |
45 | 45 | __FUNCTION__, '3.0.0', |
46 | | /* translators: 1: "type => link", 2: "taxonomy => link_category" */ |
47 | 46 | sprintf( |
| 47 | /* translators: 1: "type => link", 2: "taxonomy => link_category" */ |
48 | 48 | __( '%1$s is deprecated. Use %2$s instead.' ), |
49 | 49 | '<code>type => link</code>', |
50 | 50 | '<code>taxonomy => link_category</code>' |
-
diff --git a/src/wp-includes/class-walker-category.php b/src/wp-includes/class-walker-category.php
index 5373b7d..8870fca 100644
a
|
b
|
class Walker_Category extends Walker { |
134 | 134 | $link .= '<a href="' . esc_url( get_term_feed_link( $category->term_id, $category->taxonomy, $args['feed_type'] ) ) . '"'; |
135 | 135 | |
136 | 136 | if ( empty( $args['feed'] ) ) { |
| 137 | /* translators: %s: category name */ |
137 | 138 | $alt = ' alt="' . sprintf( __( 'Feed for all posts filed under %s' ), $cat_name ) . '"'; |
138 | 139 | } else { |
139 | 140 | $alt = ' alt="' . $args['feed'] . '"'; |
-
diff --git a/src/wp-includes/class-walker-comment.php b/src/wp-includes/class-walker-comment.php
index e5cb372..07ef992 100644
a
|
b
|
class Walker_Comment extends Walker { |
274 | 274 | echo get_avatar( $comment, $args['avatar_size'] );} |
275 | 275 | ?> |
276 | 276 | <?php |
277 | | /* translators: %s: comment author link */ |
278 | 277 | printf( |
| 278 | /* translators: %s: comment author link */ |
279 | 279 | __( '%s <span class="says">says:</span>' ), |
280 | 280 | sprintf( '<cite class="fn">%s</cite>', get_comment_author_link( $comment ) ) |
281 | 281 | ); |
… |
… |
class Walker_Comment extends Walker { |
352 | 352 | echo get_avatar( $comment, $args['avatar_size'] );} |
353 | 353 | ?> |
354 | 354 | <?php |
355 | | /* translators: %s: comment author link */ |
356 | 355 | printf( |
| 356 | /* translators: %s: comment author link */ |
357 | 357 | __( '%s <span class="says">says:</span>' ), |
358 | 358 | sprintf( '<b class="fn">%s</b>', get_comment_author_link( $comment ) ) |
359 | 359 | ); |
-
diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php
index 6da71a1..a79920a 100644
a
|
b
|
final class WP_Customize_Manager { |
3799 | 3799 | public function remove_panel( $id ) { |
3800 | 3800 | // Removing core components this way is _doing_it_wrong(). |
3801 | 3801 | if ( in_array( $id, $this->components, true ) ) { |
3802 | | /* translators: 1: panel id, 2: link to 'customize_loaded_components' filter reference */ |
3803 | 3802 | $message = sprintf( |
| 3803 | /* translators: 1: panel id, 2: link to 'customize_loaded_components' filter reference */ |
3804 | 3804 | __( 'Removing %1$s manually will cause PHP warnings. Use the %2$s filter instead.' ), |
3805 | 3805 | $id, |
3806 | 3806 | '<a href="' . esc_url( 'https://developer.wordpress.org/reference/hooks/customize_loaded_components/' ) . '"><code>customize_loaded_components</code></a>' |
-
diff --git a/src/wp-includes/class-wp-customize-nav-menus.php b/src/wp-includes/class-wp-customize-nav-menus.php
index 1a55fa6..28d30b4 100644
a
|
b
|
final class WP_Customize_Nav_Menus { |
463 | 463 | 'invalidTitleTpl' => __( '%s (Invalid)' ), |
464 | 464 | /* translators: %s: title of menu item in draft status */ |
465 | 465 | 'pendingTitleTpl' => __( '%s (Pending)' ), |
| 466 | /* translators: %d: amount of items found */ |
466 | 467 | 'itemsFound' => __( 'Number of items found: %d' ), |
| 468 | /* translators: %d: number of items found */ |
467 | 469 | 'itemsFoundMore' => __( 'Additional items found: %d' ), |
468 | 470 | 'itemsLoadingMore' => __( 'Loading more results... please wait.' ), |
469 | 471 | 'reorderModeOn' => __( 'Reorder mode enabled' ), |
-
diff --git a/src/wp-includes/class-wp-query.php b/src/wp-includes/class-wp-query.php
index f8ead26..f25fd80 100644
a
|
b
|
class WP_Query { |
1743 | 1743 | if ( isset( $q['caller_get_posts'] ) ) { |
1744 | 1744 | _deprecated_argument( |
1745 | 1745 | 'WP_Query', '3.1.0', |
1746 | | /* translators: 1: caller_get_posts, 2: ignore_sticky_posts */ |
1747 | 1746 | sprintf( |
| 1747 | /* translators: 1: caller_get_posts, 2: ignore_sticky_posts */ |
1748 | 1748 | __( '%1$s is deprecated. Use %2$s instead.' ), |
1749 | 1749 | '<code>caller_get_posts</code>', |
1750 | 1750 | '<code>ignore_sticky_posts</code>' |
-
diff --git a/src/wp-includes/class-wp-theme.php b/src/wp-includes/class-wp-theme.php
index 7b933f9..f39b07d 100644
a
|
b
|
final class WP_Theme implements ArrayAccess { |
225 | 225 | } elseif ( ! file_exists( $this->theme_root . '/' . $theme_file ) ) { |
226 | 226 | $this->headers['Name'] = $this->stylesheet; |
227 | 227 | if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet ) ) { |
| 228 | /* translators: %s: directory/filepath */ |
228 | 229 | $this->errors = new WP_Error( 'theme_not_found', sprintf( __( 'The theme directory "%s" does not exist.' ), esc_html( $this->stylesheet ) ) ); |
229 | 230 | } else { |
230 | 231 | $this->errors = new WP_Error( 'theme_no_stylesheet', __( 'Stylesheet is missing.' ) ); |
… |
… |
final class WP_Theme implements ArrayAccess { |
317 | 318 | $theme_root_template = $directories[ $this->template ]['theme_root']; |
318 | 319 | } else { |
319 | 320 | // Parent theme is missing. |
| 321 | /* translators: %s: theme name / slug */ |
320 | 322 | $this->errors = new WP_Error( 'theme_no_parent', sprintf( __( 'The parent theme is missing. Please install the "%s" parent theme.' ), esc_html( $this->template ) ) ); |
321 | 323 | $this->cache_add( |
322 | 324 | 'theme', array( |
… |
… |
final class WP_Theme implements ArrayAccess { |
336 | 338 | // If we are a parent, then there is a problem. Only two generations allowed! Cancel things out. |
337 | 339 | if ( $_child instanceof WP_Theme && $_child->template == $this->stylesheet ) { |
338 | 340 | $_child->parent = null; |
| 341 | /* translators: %s: theme name / slug */ |
339 | 342 | $_child->errors = new WP_Error( 'theme_parent_invalid', sprintf( __( 'The "%s" theme is not a valid parent theme.' ), esc_html( $_child->template ) ) ); |
340 | 343 | $_child->cache_add( |
341 | 344 | 'theme', array( |
… |
… |
final class WP_Theme implements ArrayAccess { |
347 | 350 | ); |
348 | 351 | // The two themes actually reference each other with the Template header. |
349 | 352 | if ( $_child->stylesheet == $this->template ) { |
| 353 | /* translators: %s: theme name / slug */ |
350 | 354 | $this->errors = new WP_Error( 'theme_parent_invalid', sprintf( __( 'The "%s" theme is not a valid parent theme.' ), esc_html( $this->template ) ) ); |
351 | 355 | $this->cache_add( |
352 | 356 | 'theme', array( |
-
diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php
index f7626f5..629d81f 100644
a
|
b
|
function trackback_url( $deprecated_echo = true ) { |
1153 | 1153 | if ( true !== $deprecated_echo ) { |
1154 | 1154 | _deprecated_argument( |
1155 | 1155 | __FUNCTION__, '2.5.0', |
1156 | | /* translators: %s: get_trackback_url() */ |
1157 | 1156 | sprintf( |
| 1157 | /* translators: %s: get_trackback_url() */ |
1158 | 1158 | __( 'Use %s instead if you do not want the value echoed.' ), |
1159 | 1159 | '<code>get_trackback_url()</code>' |
1160 | 1160 | ) |
… |
… |
function comment_form_title( $noreplytext = false, $replytext = false, $linktopa |
1926 | 1926 | $noreplytext = __( 'Leave a Reply' ); |
1927 | 1927 | } |
1928 | 1928 | if ( false === $replytext ) { |
| 1929 | /* translators: %s: author of the comment being replied to */ |
1929 | 1930 | $replytext = __( 'Leave a Reply to %s' ); |
1930 | 1931 | } |
1931 | 1932 | |
… |
… |
function comment_form( $args = array(), $post_id = null ) { |
2273 | 2274 | 'cookies' => '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' . |
2274 | 2275 | '<label for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment.' ) . '</label></p>', |
2275 | 2276 | ); |
2276 | | |
| 2277 | /* translators: %s: an asterisk symbol */ |
2277 | 2278 | $required_text = sprintf( ' ' . __( 'Required fields are marked %s' ), '<span class="required">*</span>' ); |
2278 | 2279 | |
2279 | 2280 | /** |
… |
… |
function comment_form( $args = array(), $post_id = null ) { |
2312 | 2313 | 'class_submit' => 'submit', |
2313 | 2314 | 'name_submit' => 'submit', |
2314 | 2315 | 'title_reply' => __( 'Leave a Reply' ), |
| 2316 | /* translators: %s: author of the comment being replied to */ |
2315 | 2317 | 'title_reply_to' => __( 'Leave a Reply to %s' ), |
2316 | 2318 | 'title_reply_before' => '<h3 id="reply-title" class="comment-reply-title">', |
2317 | 2319 | 'title_reply_after' => '</h3>', |
-
diff --git a/src/wp-includes/date.php b/src/wp-includes/date.php
index 8d82db7..054dde8 100644
a
|
b
|
class WP_Date_Query { |
429 | 429 | if ( $day_exists && $month_exists && $year_exists ) { |
430 | 430 | // 1. Checking day, month, year combination. |
431 | 431 | if ( ! wp_checkdate( $date_query['month'], $date_query['day'], $date_query['year'], sprintf( '%s-%s-%s', $date_query['year'], $date_query['month'], $date_query['day'] ) ) ) { |
432 | | /* translators: 1: year, 2: month, 3: day of month */ |
433 | 432 | $day_month_year_error_msg = sprintf( |
| 433 | /* translators: 1: year, 2: month, 3: day of month */ |
434 | 434 | __( 'The following values do not describe a valid date: year %1$s, month %2$s, day %3$s.' ), |
435 | 435 | '<code>' . esc_html( $date_query['year'] ) . '</code>', |
436 | 436 | '<code>' . esc_html( $date_query['month'] ) . '</code>', |
… |
… |
class WP_Date_Query { |
445 | 445 | * We use 2012 because, as a leap year, it's the most permissive. |
446 | 446 | */ |
447 | 447 | if ( ! wp_checkdate( $date_query['month'], $date_query['day'], 2012, sprintf( '2012-%s-%s', $date_query['month'], $date_query['day'] ) ) ) { |
448 | | /* translators: 1: month, 2: day of month */ |
449 | 448 | $day_month_year_error_msg = sprintf( |
| 449 | /* translators: 1: month, 2: day of month */ |
450 | 450 | __( 'The following values do not describe a valid date: month %1$s, day %2$s.' ), |
451 | 451 | '<code>' . esc_html( $date_query['month'] ) . '</code>', |
452 | 452 | '<code>' . esc_html( $date_query['day'] ) . '</code>' |
-
diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
index 60229ee..83caec3 100644
a
|
b
|
function wp_upload_bits( $name, $deprecated, $bits, $time = null ) { |
2283 | 2283 | |
2284 | 2284 | $ifp = @ fopen( $new_file, 'wb' ); |
2285 | 2285 | if ( ! $ifp ) { |
| 2286 | /* translators: %s: filename */ |
2286 | 2287 | return array( 'error' => sprintf( __( 'Could not write file %s' ), $new_file ) ); |
2287 | 2288 | } |
2288 | 2289 | |
… |
… |
function _deprecated_constructor( $class, $version, $parent_class = '' ) { |
4054 | 4055 | if ( WP_DEBUG && apply_filters( 'deprecated_constructor_trigger_error', true ) ) { |
4055 | 4056 | if ( function_exists( '__' ) ) { |
4056 | 4057 | if ( ! empty( $parent_class ) ) { |
4057 | | /* translators: 1: PHP class name, 2: PHP parent class name, 3: version number, 4: __construct() method */ |
4058 | 4058 | trigger_error( |
4059 | 4059 | sprintf( |
| 4060 | /* translators: 1: PHP class name, 2: PHP parent class name, 3: version number, 4: __construct() method */ |
4060 | 4061 | __( 'The called constructor method for %1$s in %2$s is <strong>deprecated</strong> since version %3$s! Use %4$s instead.' ), |
4061 | 4062 | $class, $parent_class, $version, '<pre>__construct()</pre>' |
4062 | 4063 | ) |
4063 | 4064 | ); |
4064 | 4065 | } else { |
4065 | | /* translators: 1: PHP class name, 2: version number, 3: __construct() method */ |
4066 | 4066 | trigger_error( |
4067 | 4067 | sprintf( |
| 4068 | /* translators: 1: PHP class name, 2: version number, 3: __construct() method */ |
4068 | 4069 | __( 'The called constructor method for %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ), |
4069 | 4070 | $class, $version, '<pre>__construct()</pre>' |
4070 | 4071 | ) |
… |
… |
function _doing_it_wrong( $function, $message, $version ) { |
4311 | 4312 | /* translators: %s: version number */ |
4312 | 4313 | $version = sprintf( __( '(This message was added in version %s.)' ), $version ); |
4313 | 4314 | } |
4314 | | /* translators: %s: Codex URL */ |
4315 | 4315 | $message .= ' ' . sprintf( |
| 4316 | /* translators: %s: Codex URL */ |
4316 | 4317 | __( 'Please see <a href="%s">Debugging in WordPress</a> for more information.' ), |
4317 | 4318 | __( 'https://codex.wordpress.org/Debugging_in_WordPress' ) |
4318 | 4319 | ); |
-
diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
index 57a7b67..da58a8b 100644
a
|
b
|
function wp_get_document_title() { |
1032 | 1032 | |
1033 | 1033 | // Add a page number if necessary. |
1034 | 1034 | if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { |
| 1035 | /* translators: %s: page number */ |
1035 | 1036 | $title['page'] = sprintf( __( 'Page %s' ), max( $paged, $page ) ); |
1036 | 1037 | } |
1037 | 1038 | |
-
diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php
index 815c539..7afc9f0 100644
a
|
b
|
function get_adjacent_post( $in_same_term = false, $excluded_terms = '', $previo |
1698 | 1698 | if ( ! empty( $excluded_terms ) && ! is_array( $excluded_terms ) ) { |
1699 | 1699 | // back-compat, $excluded_terms used to be $excluded_terms with IDs separated by " and " |
1700 | 1700 | if ( false !== strpos( $excluded_terms, ' and ' ) ) { |
| 1701 | /* translators: %s: the word 'and' */ |
1701 | 1702 | _deprecated_argument( __FUNCTION__, '3.3.0', sprintf( __( 'Use commas instead of %s to separate excluded terms.' ), "'and'" ) ); |
1702 | 1703 | $excluded_terms = explode( ' and ', $excluded_terms ); |
1703 | 1704 | } else { |
-
diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php
index 81014fd..711ef65 100644
a
|
b
|
function wp_set_wpdb_vars() { |
487 | 487 | if ( is_wp_error( $prefix ) ) { |
488 | 488 | wp_load_translations_early(); |
489 | 489 | wp_die( |
490 | | /* translators: 1: $table_prefix, 2: wp-config.php */ |
491 | 490 | sprintf( |
| 491 | /* translators: 1: $table_prefix, 2: wp-config.php */ |
492 | 492 | __( '<strong>ERROR</strong>: %1$s in %2$s can only contain numbers, letters, and underscores.' ), |
493 | 493 | '<code>$table_prefix</code>', |
494 | 494 | '<code>wp-config.php</code>' |
-
diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php
index 0dbba58..c39b295 100644
a
|
b
|
function wp_print_media_templates() { |
211 | 211 | <h2 class="upload-message">{{ data.message }}</h2> |
212 | 212 | <# } #> |
213 | 213 | <?php if ( ! _device_can_upload() ) : ?> |
| 214 | <?php /* translators: %s: URL */ ?> |
214 | 215 | <h2 class="upload-instructions"><?php printf( __( 'The web browser on your device cannot be used to upload files. You may be able to use the <a href="%s">native app for your device</a> instead.' ), 'https://apps.wordpress.org/' ); ?></h2> |
215 | 216 | <?php elseif ( is_multisite() && ! is_upload_space_available() ) : ?> |
216 | 217 | <h2 class="upload-instructions"><?php _e( 'Upload Limit Exceeded' ); ?></h2> |
… |
… |
function wp_print_media_templates() { |
252 | 253 | |
253 | 254 | <p class="max-upload-size"> |
254 | 255 | <?php |
| 256 | /* translators: %s: file size */ |
255 | 257 | printf( __( 'Maximum upload file size: %s.' ), esc_html( size_format( $max_upload_size ) ) ); |
256 | 258 | ?> |
257 | 259 | </p> |
-
diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php
index c93c3db..25e6a6a 100644
a
|
b
|
function wp_enqueue_media( $args = array() ) { |
3565 | 3565 | ); |
3566 | 3566 | } |
3567 | 3567 | foreach ( $months as $month_year ) { |
| 3568 | /* translators: 1: month; 2: year */ |
3568 | 3569 | $month_year->text = sprintf( __( '%1$s %2$d' ), $wp_locale->get_month( $month_year->month ), $month_year->year ); |
3569 | 3570 | } |
3570 | 3571 | |
-
diff --git a/src/wp-includes/ms-functions.php b/src/wp-includes/ms-functions.php
index f2dbbc7..197e77b 100644
a
|
b
|
function wpmu_signup_user_notification( $user_login, $user_email, $key, $meta = |
1041 | 1041 | */ |
1042 | 1042 | apply_filters( |
1043 | 1043 | 'wpmu_signup_user_notification_email', |
| 1044 | /* translators: %s: activation link */ |
1044 | 1045 | __( "To activate your user, please click the following link:\n\n%s\n\nAfter you activate, you will receive *another email* with your login." ), |
1045 | 1046 | $user_login, $user_email, $key, $meta |
1046 | 1047 | ), |
… |
… |
function newblog_notify_siteadmin( $blog_id, $deprecated = '' ) { |
1368 | 1369 | $siteurl = site_url(); |
1369 | 1370 | restore_current_blog(); |
1370 | 1371 | |
1371 | | /* translators: New site notification email. 1: Site URL, 2: User IP address, 3: Settings screen URL */ |
1372 | 1372 | $msg = sprintf( |
| 1373 | /* translators: New site notification email. 1: Site URL, 2: User IP address, 3: Settings screen URL */ |
1373 | 1374 | __( |
1374 | 1375 | 'New Site: %1$s |
1375 | 1376 | URL: %2$s |
… |
… |
Disable these notifications: %4$s' |
1387 | 1388 | * @param string $msg Email body. |
1388 | 1389 | */ |
1389 | 1390 | $msg = apply_filters( 'newblog_notify_siteadmin', $msg ); |
1390 | | |
| 1391 | /* translators: %s: new site URL */ |
1391 | 1392 | wp_mail( $email, sprintf( __( 'New Site Registration: %s' ), $siteurl ), $msg ); |
1392 | 1393 | return true; |
1393 | 1394 | } |
… |
… |
function newuser_notify_siteadmin( $user_id ) { |
1417 | 1418 | $user = get_userdata( $user_id ); |
1418 | 1419 | |
1419 | 1420 | $options_site_url = esc_url( network_admin_url( 'settings.php' ) ); |
1420 | | /* translators: New user notification email. 1: User login, 2: User IP address, 3: Settings screen URL */ |
1421 | 1421 | $msg = sprintf( |
| 1422 | /* translators: New user notification email. 1: User login, 2: User IP address, 3: Settings screen URL */ |
1422 | 1423 | __( |
1423 | 1424 | 'New User: %1$s |
1424 | 1425 | Remote IP address: %2$s |
… |
… |
Disable these notifications: %3$s' |
1437 | 1438 | * @param WP_User $user WP_User instance of the new user. |
1438 | 1439 | */ |
1439 | 1440 | $msg = apply_filters( 'newuser_notify_siteadmin', $msg, $user ); |
| 1441 | /* translators: %s: user login name */ |
1440 | 1442 | wp_mail( $email, sprintf( __( 'New User Registration: %s' ), $user->user_login ), $msg ); |
1441 | 1443 | return true; |
1442 | 1444 | } |
… |
… |
function maybe_add_existing_user_to_blog() { |
2251 | 2253 | } |
2252 | 2254 | |
2253 | 2255 | if ( empty( $details ) || is_wp_error( add_existing_user_to_blog( $details ) ) ) { |
| 2256 | /* translators: %s: home URL */ |
2254 | 2257 | wp_die( sprintf( __( 'An error occurred adding you to this site. Back to the <a href="%s">homepage</a>.' ), home_url() ) ); |
2255 | 2258 | } |
2256 | | |
| 2259 | /* translators: 1: home URL; 2: admin URL */ |
2257 | 2260 | wp_die( sprintf( __( 'You have been added to this site. Please visit the <a href="%1$s">homepage</a> or <a href="%2$s">log in</a> using your username and password.' ), home_url(), admin_url() ), __( 'WordPress › Success' ), array( 'response' => 200 ) ); |
2258 | 2261 | } |
2259 | 2262 | |
… |
… |
All at ###SITENAME### |
2825 | 2828 | $content = str_replace( '###EMAIL###', $value, $content ); |
2826 | 2829 | $content = str_replace( '###SITENAME###', wp_specialchars_decode( get_site_option( 'site_name' ), ENT_QUOTES ), $content ); |
2827 | 2830 | $content = str_replace( '###SITEURL###', network_home_url(), $content ); |
2828 | | |
| 2831 | |
| 2832 | /* translators: %s: site name */ |
2829 | 2833 | wp_mail( $value, sprintf( __( '[%s] New Network Admin Email Address' ), wp_specialchars_decode( get_site_option( 'site_name' ), ENT_QUOTES ) ), $content ); |
2830 | 2834 | |
2831 | 2835 | if ( $switched_locale ) { |
-
diff --git a/src/wp-includes/ms-load.php b/src/wp-includes/ms-load.php
index 932ae76..1ac78d1 100644
a
|
b
|
function ms_site_check() { |
105 | 105 | } else { |
106 | 106 | $admin_email = str_replace( '@', ' AT ', get_site_option( 'admin_email', 'support@' . get_network()->domain ) ); |
107 | 107 | wp_die( |
108 | | /* translators: %s: admin email link */ |
109 | 108 | sprintf( |
| 109 | /* translators: %s: admin email link */ |
110 | 110 | __( 'This site has not been activated yet. If you are having problems activating your site, please contact %s.' ), |
111 | 111 | sprintf( '<a href="mailto:%s">%s</a>', $admin_email ) |
112 | 112 | ) |
… |
… |
function ms_not_installed( $domain, $path ) { |
485 | 485 | ) . '</p>'; |
486 | 486 | } |
487 | 487 | $msg .= '<p><strong>' . __( 'What do I do now?' ) . '</strong> '; |
488 | | /* translators: %s: Codex URL */ |
489 | 488 | $msg .= sprintf( |
| 489 | /* translators: %s: Codex URL */ |
490 | 490 | __( 'Read the <a href="%s" target="_blank">bug report</a> page. Some of the guidelines there may help you figure out what went wrong.' ), |
491 | 491 | __( 'https://codex.wordpress.org/Debugging_a_WordPress_Network' ) |
492 | 492 | ); |
-
diff --git a/src/wp-includes/nav-menu.php b/src/wp-includes/nav-menu.php
index 6ce589b..bec2ddb 100644
a
|
b
|
function wp_update_nav_menu_object( $menu_id = 0, $menu_data = array() ) { |
327 | 327 | ) { |
328 | 328 | return new WP_Error( |
329 | 329 | 'menu_exists', |
330 | | /* translators: %s: menu name */ |
331 | 330 | sprintf( |
| 331 | /* translators: %s: menu name */ |
332 | 332 | __( 'The menu name %s conflicts with another menu name. Please try another.' ), |
333 | 333 | '<strong>' . esc_html( $menu_data['menu-name'] ) . '</strong>' |
334 | 334 | ) |
… |
… |
function wp_update_nav_menu_object( $menu_id = 0, $menu_data = array() ) { |
342 | 342 | if ( $menu_exists ) { |
343 | 343 | return new WP_Error( |
344 | 344 | 'menu_exists', |
345 | | /* translators: %s: menu name */ |
346 | 345 | sprintf( |
| 346 | /* translators: %s: menu name */ |
347 | 347 | __( 'The menu name %s conflicts with another menu name. Please try another.' ), |
348 | 348 | '<strong>' . esc_html( $menu_data['menu-name'] ) . '</strong>' |
349 | 349 | ) |
-
diff --git a/src/wp-includes/option.php b/src/wp-includes/option.php
index a80de70..c9e142b 100644
a
|
b
|
function get_option( $option, $default = false ) { |
164 | 164 | */ |
165 | 165 | function wp_protect_special_option( $option ) { |
166 | 166 | if ( 'alloptions' === $option || 'notoptions' === $option ) { |
| 167 | /* translators: %s: name of an option */ |
167 | 168 | wp_die( sprintf( __( '%s is a protected WP option and may not be modified' ), esc_html( $option ) ) ); |
168 | 169 | } |
169 | 170 | } |
… |
… |
function register_setting( $option_group, $option_name, $args = array() ) { |
2093 | 2094 | if ( 'misc' == $option_group ) { |
2094 | 2095 | _deprecated_argument( |
2095 | 2096 | __FUNCTION__, '3.0.0', |
2096 | | /* translators: %s: misc */ |
2097 | 2097 | sprintf( |
| 2098 | /* translators: %s: misc */ |
2098 | 2099 | __( 'The "%s" options group has been removed. Use another settings group.' ), |
2099 | 2100 | 'misc' |
2100 | 2101 | ) |
… |
… |
function register_setting( $option_group, $option_name, $args = array() ) { |
2105 | 2106 | if ( 'privacy' == $option_group ) { |
2106 | 2107 | _deprecated_argument( |
2107 | 2108 | __FUNCTION__, '3.5.0', |
2108 | | /* translators: %s: privacy */ |
2109 | 2109 | sprintf( |
| 2110 | /* translators: %s: privacy */ |
2110 | 2111 | __( 'The "%s" options group has been removed. Use another settings group.' ), |
2111 | 2112 | 'privacy' |
2112 | 2113 | ) |
… |
… |
function unregister_setting( $option_group, $option_name, $deprecated = '' ) { |
2143 | 2144 | if ( 'misc' == $option_group ) { |
2144 | 2145 | _deprecated_argument( |
2145 | 2146 | __FUNCTION__, '3.0.0', |
2146 | | /* translators: %s: misc */ |
2147 | 2147 | sprintf( |
| 2148 | /* translators: %s: misc */ |
2148 | 2149 | __( 'The "%s" options group has been removed. Use another settings group.' ), |
2149 | 2150 | 'misc' |
2150 | 2151 | ) |
… |
… |
function unregister_setting( $option_group, $option_name, $deprecated = '' ) { |
2155 | 2156 | if ( 'privacy' == $option_group ) { |
2156 | 2157 | _deprecated_argument( |
2157 | 2158 | __FUNCTION__, '3.5.0', |
2158 | | /* translators: %s: privacy */ |
2159 | 2159 | sprintf( |
| 2160 | /* translators: %s: privacy */ |
2160 | 2161 | __( 'The "%s" options group has been removed. Use another settings group.' ), |
2161 | 2162 | 'privacy' |
2162 | 2163 | ) |
… |
… |
function unregister_setting( $option_group, $option_name, $deprecated = '' ) { |
2171 | 2172 | if ( '' !== $deprecated ) { |
2172 | 2173 | _deprecated_argument( |
2173 | 2174 | __FUNCTION__, '4.7.0', |
2174 | | /* translators: 1: $sanitize_callback, 2: register_setting() */ |
2175 | 2175 | sprintf( |
| 2176 | /* translators: 1: $sanitize_callback, 2: register_setting() */ |
2176 | 2177 | __( '%1$s is deprecated. The callback from %2$s is used instead.' ), |
2177 | 2178 | '<code>$sanitize_callback</code>', |
2178 | 2179 | '<code>register_setting()</code>' |
-
diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
index cb06297..2bd602b 100644
a
|
b
|
if ( ! function_exists( 'wp_notify_postauthor' ) ) : |
1568 | 1568 | break; |
1569 | 1569 | } |
1570 | 1570 | $notify_message .= get_permalink( $comment->comment_post_ID ) . "#comments\r\n\r\n"; |
| 1571 | /* translators: %s: link to comment */ |
1571 | 1572 | $notify_message .= sprintf( __( 'Permalink: %s' ), get_comment_link( $comment ) ) . "\r\n"; |
1572 | 1573 | |
1573 | 1574 | if ( user_can( $post->post_author, 'edit_comment', $comment->comment_ID ) ) { |
… |
… |
if ( ! function_exists( 'wp_notify_moderator' ) ) : |
1749 | 1750 | /* translators: Comment moderation. %s: Comment action URL */ |
1750 | 1751 | $notify_message .= sprintf( __( 'Spam it: %s' ), admin_url( "comment.php?action=spam&c={$comment_id}#wpbody-content" ) ) . "\r\n"; |
1751 | 1752 | |
1752 | | /* translators: Comment moderation. %s: Number of comments awaiting approval */ |
1753 | 1753 | $notify_message .= sprintf( |
| 1754 | /* translators: Comment moderation. %s: Number of comments awaiting approval */ |
1754 | 1755 | _n( |
1755 | 1756 | 'Currently %s comment is waiting for approval. Please visit the moderation panel:', |
1756 | 1757 | 'Currently %s comments are waiting for approval. Please visit the moderation panel:', $comments_waiting |
-
diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php
index c888cd1..6cefa20 100644
a
|
b
|
function get_the_title( $post = 0 ) { |
134 | 134 | * Default 'Protected: %s'. |
135 | 135 | * @param WP_Post $post Current post object. |
136 | 136 | */ |
| 137 | /* translators: %s: protected post title */ |
137 | 138 | $protected_title_format = apply_filters( 'protected_title_format', __( 'Protected: %s' ), $post ); |
138 | 139 | $title = sprintf( $protected_title_format, $title ); |
139 | 140 | } elseif ( isset( $post->post_status ) && 'private' == $post->post_status ) { |
… |
… |
function get_the_title( $post = 0 ) { |
149 | 150 | * Default 'Private: %s'. |
150 | 151 | * @param WP_Post $post Current post object. |
151 | 152 | */ |
| 153 | /* translators: %s: private post title */ |
152 | 154 | $private_title_format = apply_filters( 'private_title_format', __( 'Private: %s' ), $post ); |
153 | 155 | $title = sprintf( $private_title_format, $title ); |
154 | 156 | } |
-
diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
index 98ad57f..e6850dd 100644
a
|
b
|
function create_initial_post_types() { |
248 | 248 | 'label' => _x( 'Published', 'post status' ), |
249 | 249 | 'public' => true, |
250 | 250 | '_builtin' => true, /* internal use only. */ |
| 251 | /* translators: %s: amount of published items */ |
251 | 252 | 'label_count' => _n_noop( 'Published <span class="count">(%s)</span>', 'Published <span class="count">(%s)</span>' ), |
252 | 253 | ) |
253 | 254 | ); |
… |
… |
function create_initial_post_types() { |
257 | 258 | 'label' => _x( 'Scheduled', 'post status' ), |
258 | 259 | 'protected' => true, |
259 | 260 | '_builtin' => true, /* internal use only. */ |
| 261 | /* translators: %s: amount of scheduled items */ |
260 | 262 | 'label_count' => _n_noop( 'Scheduled <span class="count">(%s)</span>', 'Scheduled <span class="count">(%s)</span>' ), |
261 | 263 | ) |
262 | 264 | ); |
… |
… |
function create_initial_post_types() { |
266 | 268 | 'label' => _x( 'Draft', 'post status' ), |
267 | 269 | 'protected' => true, |
268 | 270 | '_builtin' => true, /* internal use only. */ |
| 271 | /* translators: %s: amount of items marked as draft */ |
269 | 272 | 'label_count' => _n_noop( 'Draft <span class="count">(%s)</span>', 'Drafts <span class="count">(%s)</span>' ), |
270 | 273 | ) |
271 | 274 | ); |
… |
… |
function create_initial_post_types() { |
275 | 278 | 'label' => _x( 'Pending', 'post status' ), |
276 | 279 | 'protected' => true, |
277 | 280 | '_builtin' => true, /* internal use only. */ |
| 281 | /* translators: %s: amount of items marked as pending */ |
278 | 282 | 'label_count' => _n_noop( 'Pending <span class="count">(%s)</span>', 'Pending <span class="count">(%s)</span>' ), |
279 | 283 | ) |
280 | 284 | ); |
… |
… |
function create_initial_post_types() { |
284 | 288 | 'label' => _x( 'Private', 'post status' ), |
285 | 289 | 'private' => true, |
286 | 290 | '_builtin' => true, /* internal use only. */ |
| 291 | /* translators: %s: amount of items marked as private */ |
287 | 292 | 'label_count' => _n_noop( 'Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>' ), |
288 | 293 | ) |
289 | 294 | ); |
… |
… |
function create_initial_post_types() { |
293 | 298 | 'label' => _x( 'Trash', 'post status' ), |
294 | 299 | 'internal' => true, |
295 | 300 | '_builtin' => true, /* internal use only. */ |
| 301 | /* translators: %s: amount of items marked as trash */ |
296 | 302 | 'label_count' => _n_noop( 'Trash <span class="count">(%s)</span>', 'Trash <span class="count">(%s)</span>' ), |
297 | 303 | 'show_in_admin_status_list' => true, |
298 | 304 | ) |
… |
… |
function wp_count_attachments( $mime_type = '' ) { |
2507 | 2513 | */ |
2508 | 2514 | function get_post_mime_types() { |
2509 | 2515 | $post_mime_types = array( // array( adj, noun ) |
| 2516 | /* translators: %s: amount of images */ |
2510 | 2517 | 'image' => array( __( 'Images' ), __( 'Manage Images' ), _n_noop( 'Image <span class="count">(%s)</span>', 'Images <span class="count">(%s)</span>' ) ), |
| 2518 | /* translators: %s: amount of audio files */ |
2511 | 2519 | 'audio' => array( __( 'Audio' ), __( 'Manage Audio' ), _n_noop( 'Audio <span class="count">(%s)</span>', 'Audio <span class="count">(%s)</span>' ) ), |
| 2520 | /* translators: %s: amount of videos */ |
2512 | 2521 | 'video' => array( __( 'Video' ), __( 'Manage Video' ), _n_noop( 'Video <span class="count">(%s)</span>', 'Video <span class="count">(%s)</span>' ) ), |
2513 | 2522 | ); |
2514 | 2523 | |
-
diff --git a/src/wp-includes/rest-api.php b/src/wp-includes/rest-api.php
index 0cce9fa..2dcc5de 100644
a
|
b
|
function rest_validate_value_from_schema( $value, $args, $param = '' ) { |
1112 | 1112 | return $is_valid; |
1113 | 1113 | } |
1114 | 1114 | } elseif ( isset( $args['additionalProperties'] ) && false === $args['additionalProperties'] ) { |
| 1115 | /* translators: %s: property of an object */ |
1115 | 1116 | return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s is not a valid property of Object.' ), $property ) ); |
1116 | 1117 | } |
1117 | 1118 | } |
-
diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php
index 1242181..0dc4121 100644
a
|
b
|
function wp_default_scripts( &$scripts ) { |
305 | 305 | // Error messages for Plupload. |
306 | 306 | $uploader_l10n = array( |
307 | 307 | 'queue_limit_exceeded' => __( 'You have attempted to queue too many files.' ), |
| 308 | /* translators: %s: filename */ |
308 | 309 | 'file_exceeds_size_limit' => __( '%s exceeds the maximum upload size for this site.' ), |
309 | 310 | 'zero_byte_file' => __( 'This file is empty. Please try another.' ), |
310 | 311 | 'invalid_filetype' => __( 'Sorry, this file type is not permitted for security reasons.' ), |
… |
… |
function wp_default_scripts( &$scripts ) { |
318 | 319 | 'upload_failed' => __( 'Upload failed.' ), |
319 | 320 | /* translators: 1: Opening link tag, 2: Closing link tag */ |
320 | 321 | 'big_upload_failed' => __( 'Please try uploading this file with the %1$sbrowser uploader%2$s.' ), |
| 322 | /* translators: %s: filename */ |
321 | 323 | 'big_upload_queued' => __( '%s exceeds the maximum upload size for the multi-file uploader when used in your browser.' ), |
322 | 324 | 'io_error' => __( 'IO error.' ), |
323 | 325 | 'security_error' => __( 'Security error.' ), |
… |
… |
function wp_default_scripts( &$scripts ) { |
326 | 328 | 'dismiss' => __( 'Dismiss' ), |
327 | 329 | 'crunching' => __( 'Crunching…' ), |
328 | 330 | 'deleted' => __( 'moved to the trash.' ), |
| 331 | /* translators: %s: filename */ |
329 | 332 | 'error_uploading' => __( '“%s” has failed to upload.' ), |
330 | 333 | ); |
331 | 334 | |
… |
… |
function wp_default_scripts( &$scripts ) { |
933 | 936 | 'unknownError' => __( 'Something went wrong.' ), |
934 | 937 | 'connectionError' => __( 'Connection lost or the server is busy. Please try again later.' ), |
935 | 938 | 'nonceError' => __( 'An error has occurred. Please reload the page and try again.' ), |
| 939 | /* translators: %s: amount of plugins found */ |
936 | 940 | 'pluginsFound' => __( 'Number of plugins found: %d' ), |
937 | 941 | 'noPluginsFound' => __( 'No plugins found. Try a different search.' ), |
938 | 942 | ), |
-
diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php
index 4e4edd8..85baf0a 100644
a
|
b
|
function add_theme_support( $feature ) { |
2540 | 2540 | /* translators: 1: title-tag, 2: wp_loaded */ |
2541 | 2541 | _doing_it_wrong( |
2542 | 2542 | "add_theme_support( 'title-tag' )", sprintf( |
| 2543 | /* translators: 1: title-tag; 2: wp_loaded */ |
2543 | 2544 | __( 'Theme support for %1$s should be registered before the %2$s hook.' ), |
2544 | 2545 | '<code>title-tag</code>', '<code>wp_loaded</code>' |
2545 | 2546 | ), '4.1.0' |
-
diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
index d309e2f..a393fd5 100644
a
|
b
|
function register_new_user( $user_login, $user_email ) { |
2476 | 2476 | $user_pass = wp_generate_password( 12, false ); |
2477 | 2477 | $user_id = wp_create_user( $sanitized_user_login, $user_pass, $user_email ); |
2478 | 2478 | if ( ! $user_id || is_wp_error( $user_id ) ) { |
| 2479 | /* translators: %s: admin e-mail address */ |
2479 | 2480 | $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn’t register you… please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) ); |
2480 | 2481 | return $errors; |
2481 | 2482 | } |
… |
… |
All at ###SITENAME### |
2786 | 2787 | $content = str_replace( '###EMAIL###', $_POST['email'], $content ); |
2787 | 2788 | $content = str_replace( '###SITENAME###', wp_specialchars_decode( $sitename, ENT_QUOTES ), $content ); |
2788 | 2789 | $content = str_replace( '###SITEURL###', network_home_url(), $content ); |
2789 | | |
| 2790 | |
| 2791 | /* translators: %s: blog/site name */ |
2790 | 2792 | wp_mail( $_POST['email'], sprintf( __( '[%s] New Email Address' ), wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ), $content ); |
2791 | 2793 | |
2792 | 2794 | $_POST['email'] = $current_user->user_email; |
-
diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php
index 467647c..bcec821 100644
a
|
b
|
function register_sidebars( $number = 1, $args = array() ) { |
175 | 175 | $_args = $args; |
176 | 176 | |
177 | 177 | if ( $number > 1 ) { |
| 178 | /* translators: %d: number of the sidebar */ |
178 | 179 | $_args['name'] = isset( $args['name'] ) ? sprintf( $args['name'], $i ) : sprintf( __( 'Sidebar %d' ), $i ); |
179 | 180 | } else { |
180 | 181 | $_args['name'] = isset( $args['name'] ) ? $args['name'] : __( 'Sidebar' ); |
… |
… |
function register_sidebar( $args = array() ) { |
247 | 248 | $id_is_empty = empty( $args['id'] ); |
248 | 249 | |
249 | 250 | $defaults = array( |
| 251 | /* translators: %d: number of the sidebar */ |
250 | 252 | 'name' => sprintf( __( 'Sidebar %d' ), $i ), |
251 | 253 | 'id' => "sidebar-$i", |
252 | 254 | 'description' => '', |
-
diff --git a/src/wp-includes/wp-db.php b/src/wp-includes/wp-db.php
index e170ffe..e00e008 100644
a
|
b
|
class wpdb { |
1299 | 1299 | // This is not meant to be foolproof -- but it will catch obviously incorrect usage. |
1300 | 1300 | if ( strpos( $query, '%' ) === false ) { |
1301 | 1301 | wp_load_translations_early(); |
| 1302 | /* translators: %s: name of the function */ |
1302 | 1303 | _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'The query argument of %s must have a placeholder.' ), 'wpdb::prepare()' ), '3.9.0' ); |
1303 | 1304 | } |
1304 | 1305 | |
… |
… |
class wpdb { |
1315 | 1316 | foreach ( $args as $arg ) { |
1316 | 1317 | if ( ! is_scalar( $arg ) && ! is_null( $arg ) ) { |
1317 | 1318 | wp_load_translations_early(); |
| 1319 | /* translators: %s: value type */ |
1318 | 1320 | _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'Unsupported value type (%s).' ), gettype( $arg ) ), '4.8.2' ); |
1319 | 1321 | } |
1320 | 1322 | } |
… |
… |
class wpdb { |
1363 | 1365 | wp_load_translations_early(); |
1364 | 1366 | _doing_it_wrong( |
1365 | 1367 | 'wpdb::prepare', |
1366 | | /* translators: 1: number of placeholders, 2: number of arguments passed */ |
1367 | 1368 | sprintf( |
| 1369 | /* translators: 1: number of placeholders, 2: number of arguments passed */ |
1368 | 1370 | __( 'The query does not contain the correct number of placeholders (%1$d) for the number of arguments passed (%2$d).' ), |
1369 | 1371 | $placeholders, |
1370 | 1372 | count( $args ) |