-
diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
index 4228d931ba..180c76ebe0 100644
a
|
b
|
function add_settings_section( $id, $title, $callback, $page ) { |
1566 | 1566 | '3.0.0', |
1567 | 1567 | sprintf( |
1568 | 1568 | /* translators: %s: misc */ |
1569 | | __( 'The "%s" options group has been removed. Use another settings group.' ), |
| 1569 | __( 'The %s options group has been removed. Use another settings group.' ), |
1570 | 1570 | 'misc' |
1571 | 1571 | ) |
1572 | 1572 | ); |
… |
… |
function add_settings_section( $id, $title, $callback, $page ) { |
1579 | 1579 | '3.5.0', |
1580 | 1580 | sprintf( |
1581 | 1581 | /* translators: %s: privacy */ |
1582 | | __( 'The "%s" options group has been removed. Use another settings group.' ), |
| 1582 | __( 'The %s options group has been removed. Use another settings group.' ), |
1583 | 1583 | 'privacy' |
1584 | 1584 | ) |
1585 | 1585 | ); |
… |
… |
function add_settings_field( $id, $title, $callback, $page, $section = 'default' |
1637 | 1637 | '3.0.0', |
1638 | 1638 | sprintf( |
1639 | 1639 | /* translators: %s: misc */ |
1640 | | __( 'The "%s" options group has been removed. Use another settings group.' ), |
| 1640 | __( 'The %s options group has been removed. Use another settings group.' ), |
1641 | 1641 | 'misc' |
1642 | 1642 | ) |
1643 | 1643 | ); |
… |
… |
function add_settings_field( $id, $title, $callback, $page, $section = 'default' |
1650 | 1650 | '3.5.0', |
1651 | 1651 | sprintf( |
1652 | 1652 | /* translators: %s: privacy */ |
1653 | | __( 'The "%s" options group has been removed. Use another settings group.' ), |
| 1653 | __( 'The %s options group has been removed. Use another settings group.' ), |
1654 | 1654 | 'privacy' |
1655 | 1655 | ) |
1656 | 1656 | ); |
… |
… |
function _wp_block_editor_posts_page_notice() { |
2694 | 2694 | wp_add_inline_script( |
2695 | 2695 | 'wp-notices', |
2696 | 2696 | sprintf( |
2697 | | 'wp.data.dispatch( "core/notices" ).createWarningNotice( "%s", { isDismissible: false } )', |
| 2697 | 'wp.data.dispatch( "core/notices" ).createWarningNotice( %s, { isDismissible: false } )', |
2698 | 2698 | __( 'You are currently editing the page that shows your latest posts.' ) |
2699 | 2699 | ), |
2700 | 2700 | 'after' |
-
diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php
index 72330aa578..c28b159b48 100644
a
|
b
|
function register_block_script_handle( $metadata, $field_name ) { |
92 | 92 | __FUNCTION__, |
93 | 93 | sprintf( |
94 | 94 | /* translators: 1: Field name, 2: Block name. */ |
95 | | __( 'The asset file for the "%1$s" defined in "%2$s" block definition is missing.' ), |
| 95 | __( 'The asset file for the %1$s defined in %2$s block definition is missing.' ), |
96 | 96 | $field_name, |
97 | 97 | $metadata['name'] |
98 | 98 | ), |
… |
… |
function wp_migrate_old_typography_shape( $metadata ) { |
1038 | 1038 | 'register_block_type_from_metadata()', |
1039 | 1039 | sprintf( |
1040 | 1040 | /* translators: 1: Block type, 2: Typography supports key, e.g: fontSize, lineHeight, etc. 3: block.json, 4: Old metadata key, 5: New metadata key. */ |
1041 | | __( 'Block "%1$s" is declaring %2$s support in %3$s file under %4$s. %2$s support is now declared under %5$s.' ), |
| 1041 | __( 'Block %1$s is declaring %2$s support in %3$s file under %4$s. %2$s support is now declared under %5$s.' ), |
1042 | 1042 | $metadata['name'], |
1043 | 1043 | "<code>$typography_key</code>", |
1044 | 1044 | '<code>block.json</code>', |
-
diff --git a/src/wp-includes/blocks/quote/block.json b/src/wp-includes/blocks/quote/block.json
index 9bae4dff96..7011cfe7b1 100644
a
|
b
|
|
3 | 3 | "name": "core/quote", |
4 | 4 | "title": "Quote", |
5 | 5 | "category": "text", |
6 | | "description": "Give quoted text visual emphasis. \"In quoting others, we cite ourselves.\" — Julio Cortázar", |
| 6 | "description": "Give quoted text visual emphasis. In quoting others, we cite ourselves. — Julio Cortázar", |
7 | 7 | "keywords": [ "blockquote", "cite" ], |
8 | 8 | "textdomain": "default", |
9 | 9 | "attributes": { |
-
diff --git a/src/wp-includes/capabilities.php b/src/wp-includes/capabilities.php
index 3ff0481fd4..b82930a3b4 100644
a
|
b
|
function map_meta_cap( $cap, $user_id, ...$args ) { |
92 | 92 | $post_type = get_post_type_object( $post->post_type ); |
93 | 93 | if ( ! $post_type ) { |
94 | 94 | /* translators: 1: Post type, 2: Capability name. */ |
95 | | _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post of that type.' ), $post->post_type, $cap ), '4.4.0' ); |
| 95 | _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability %2$s against a post of that type.' ), $post->post_type, $cap ), '4.4.0' ); |
96 | 96 | $caps[] = 'edit_others_posts'; |
97 | 97 | break; |
98 | 98 | } |
… |
… |
function map_meta_cap( $cap, $user_id, ...$args ) { |
163 | 163 | $post_type = get_post_type_object( $post->post_type ); |
164 | 164 | if ( ! $post_type ) { |
165 | 165 | /* translators: 1: Post type, 2: Capability name. */ |
166 | | _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post of that type.' ), $post->post_type, $cap ), '4.4.0' ); |
| 166 | _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability %2$s against a post of that type.' ), $post->post_type, $cap ), '4.4.0' ); |
167 | 167 | $caps[] = 'edit_others_posts'; |
168 | 168 | break; |
169 | 169 | } |
… |
… |
function map_meta_cap( $cap, $user_id, ...$args ) { |
232 | 232 | $post_type = get_post_type_object( $post->post_type ); |
233 | 233 | if ( ! $post_type ) { |
234 | 234 | /* translators: 1: Post type, 2: Capability name. */ |
235 | | _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post of that type.' ), $post->post_type, $cap ), '4.4.0' ); |
| 235 | _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability %2$s against a post of that type.' ), $post->post_type, $cap ), '4.4.0' ); |
236 | 236 | $caps[] = 'edit_others_posts'; |
237 | 237 | break; |
238 | 238 | } |
… |
… |
function map_meta_cap( $cap, $user_id, ...$args ) { |
249 | 249 | $status_obj = get_post_status_object( get_post_status( $post ) ); |
250 | 250 | if ( ! $status_obj ) { |
251 | 251 | /* translators: 1: Post status, 2: Capability name. */ |
252 | | _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post status %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post with that status.' ), get_post_status( $post ), $cap ), '5.4.0' ); |
| 252 | _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post status %1$s is not registered, so it may not be reliable to check the capability %2$s against a post with that status.' ), get_post_status( $post ), $cap ), '5.4.0' ); |
253 | 253 | $caps[] = 'edit_others_posts'; |
254 | 254 | break; |
255 | 255 | } |
… |
… |
function map_meta_cap( $cap, $user_id, ...$args ) { |
277 | 277 | $post_type = get_post_type_object( $post->post_type ); |
278 | 278 | if ( ! $post_type ) { |
279 | 279 | /* translators: 1: Post type, 2: Capability name. */ |
280 | | _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post of that type.' ), $post->post_type, $cap ), '4.4.0' ); |
| 280 | _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability %2$s against a post of that type.' ), $post->post_type, $cap ), '4.4.0' ); |
281 | 281 | $caps[] = 'edit_others_posts'; |
282 | 282 | break; |
283 | 283 | } |
-
diff --git a/src/wp-includes/class-wp-block-pattern-categories-registry.php b/src/wp-includes/class-wp-block-pattern-categories-registry.php
index 82cb80ce28..3c0d7cc87c 100644
a
|
b
|
final class WP_Block_Pattern_Categories_Registry { |
67 | 67 | _doing_it_wrong( |
68 | 68 | __METHOD__, |
69 | 69 | /* translators: %s: Block pattern name. */ |
70 | | sprintf( __( 'Block pattern category "%s" not found.' ), $category_name ), |
| 70 | sprintf( __( 'Block pattern category %s not found.' ), $category_name ), |
71 | 71 | '5.5.0' |
72 | 72 | ); |
73 | 73 | return false; |
-
diff --git a/src/wp-includes/class-wp-block-patterns-registry.php b/src/wp-includes/class-wp-block-patterns-registry.php
index 7496b445c2..87c8bdcf36 100644
a
|
b
|
final class WP_Block_Patterns_Registry { |
88 | 88 | _doing_it_wrong( |
89 | 89 | __METHOD__, |
90 | 90 | /* translators: %s: Pattern name. */ |
91 | | sprintf( __( 'Pattern "%s" not found.' ), $pattern_name ), |
| 91 | sprintf( __( 'Pattern %s not found.' ), $pattern_name ), |
92 | 92 | '5.5.0' |
93 | 93 | ); |
94 | 94 | return false; |
-
diff --git a/src/wp-includes/class-wp-block-styles-registry.php b/src/wp-includes/class-wp-block-styles-registry.php
index 0d419da12e..06c8c0d59f 100644
a
|
b
|
final class WP_Block_Styles_Registry { |
82 | 82 | _doing_it_wrong( |
83 | 83 | __METHOD__, |
84 | 84 | /* translators: 1: Block name, 2: Block style name. */ |
85 | | sprintf( __( 'Block "%1$s" does not contain a style named "%2$s".' ), $block_name, $block_style_name ), |
| 85 | sprintf( __( 'Block %1$s does not contain a style named %2$s.' ), $block_name, $block_style_name ), |
86 | 86 | '5.3.0' |
87 | 87 | ); |
88 | 88 | return false; |
-
diff --git a/src/wp-includes/class-wp-block-type-registry.php b/src/wp-includes/class-wp-block-type-registry.php
index c9a5776c55..ade16f7553 100644
a
|
b
|
final class WP_Block_Type_Registry { |
83 | 83 | _doing_it_wrong( |
84 | 84 | __METHOD__, |
85 | 85 | /* translators: %s: Block name. */ |
86 | | sprintf( __( 'Block type "%s" is already registered.' ), $name ), |
| 86 | sprintf( __( 'Block type %s is already registered.' ), $name ), |
87 | 87 | '5.0.0' |
88 | 88 | ); |
89 | 89 | return false; |
… |
… |
final class WP_Block_Type_Registry { |
116 | 116 | _doing_it_wrong( |
117 | 117 | __METHOD__, |
118 | 118 | /* translators: %s: Block name. */ |
119 | | sprintf( __( 'Block type "%s" is not registered.' ), $name ), |
| 119 | sprintf( __( 'Block type %s is not registered.' ), $name ), |
120 | 120 | '5.0.0' |
121 | 121 | ); |
122 | 122 | return false; |
-
diff --git a/src/wp-includes/class-wp-theme.php b/src/wp-includes/class-wp-theme.php
index d0607528b5..be117eb89d 100644
a
|
b
|
final class WP_Theme implements ArrayAccess { |
262 | 262 | 'theme_not_found', |
263 | 263 | sprintf( |
264 | 264 | /* translators: %s: Theme directory name. */ |
265 | | __( 'The theme directory "%s" does not exist.' ), |
| 265 | __( 'The theme directory %s does not exist.' ), |
266 | 266 | esc_html( $this->stylesheet ) |
267 | 267 | ) |
268 | 268 | ); |
… |
… |
final class WP_Theme implements ArrayAccess { |
378 | 378 | 'theme_no_parent', |
379 | 379 | sprintf( |
380 | 380 | /* translators: %s: Theme directory name. */ |
381 | | __( 'The parent theme is missing. Please install the "%s" parent theme.' ), |
| 381 | __( 'The parent theme is missing. Please install the %s parent theme.' ), |
382 | 382 | esc_html( $this->template ) |
383 | 383 | ) |
384 | 384 | ); |
… |
… |
final class WP_Theme implements ArrayAccess { |
405 | 405 | 'theme_parent_invalid', |
406 | 406 | sprintf( |
407 | 407 | /* translators: %s: Theme directory name. */ |
408 | | __( 'The "%s" theme is not a valid parent theme.' ), |
| 408 | __( 'The %s theme is not a valid parent theme.' ), |
409 | 409 | esc_html( $_child->template ) |
410 | 410 | ) |
411 | 411 | ); |
… |
… |
final class WP_Theme implements ArrayAccess { |
424 | 424 | 'theme_parent_invalid', |
425 | 425 | sprintf( |
426 | 426 | /* translators: %s: Theme directory name. */ |
427 | | __( 'The "%s" theme is not a valid parent theme.' ), |
| 427 | __( 'The %s theme is not a valid parent theme.' ), |
428 | 428 | esc_html( $this->template ) |
429 | 429 | ) |
430 | 430 | ); |
-
diff --git a/src/wp-includes/meta.php b/src/wp-includes/meta.php
index 310b10f933..88fff462e0 100644
a
|
b
|
function register_meta( $object_type, $meta_key, $args, $deprecated = null ) { |
1441 | 1441 | // Require an item schema when registering array meta. |
1442 | 1442 | if ( false !== $args['show_in_rest'] && 'array' === $args['type'] ) { |
1443 | 1443 | if ( ! is_array( $args['show_in_rest'] ) || ! isset( $args['show_in_rest']['schema']['items'] ) ) { |
1444 | | _doing_it_wrong( __FUNCTION__, __( 'When registering an "array" meta type to show in the REST API, you must specify the schema for each array item in "show_in_rest.schema.items".' ), '5.3.0' ); |
| 1444 | _doing_it_wrong( __FUNCTION__, __( 'When registering an array meta type to show in the REST API, you must specify the schema for each array item in show_in_rest.schema.items.' ), '5.3.0' ); |
1445 | 1445 | |
1446 | 1446 | return false; |
1447 | 1447 | } |
-
diff --git a/src/wp-includes/option.php b/src/wp-includes/option.php
index 6cc4e00b1a..dae3117c4e 100644
a
|
b
|
function get_option( $option, $default = false ) { |
100 | 100 | '5.5.0', |
101 | 101 | sprintf( |
102 | 102 | /* translators: 1: Deprecated option key, 2: New option key. */ |
103 | | __( 'The "%1$s" option key has been renamed to "%2$s".' ), |
| 103 | __( 'The %1$s option key has been renamed to %2$s.' ), |
104 | 104 | $option, |
105 | 105 | $deprecated_keys[ $option ] |
106 | 106 | ) |
… |
… |
function update_option( $option, $value, $autoload = null ) { |
404 | 404 | '5.5.0', |
405 | 405 | sprintf( |
406 | 406 | /* translators: 1: Deprecated option key, 2: New option key. */ |
407 | | __( 'The "%1$s" option key has been renamed to "%2$s".' ), |
| 407 | __( 'The %1$s option key has been renamed to %2$s.' ), |
408 | 408 | $option, |
409 | 409 | $deprecated_keys[ $option ] |
410 | 410 | ) |
… |
… |
function add_option( $option, $value = '', $deprecated = '', $autoload = 'yes' ) |
594 | 594 | '5.5.0', |
595 | 595 | sprintf( |
596 | 596 | /* translators: 1: Deprecated option key, 2: New option key. */ |
597 | | __( 'The "%1$s" option key has been renamed to "%2$s".' ), |
| 597 | __( 'The %1$s option key has been renamed to %2$s.' ), |
598 | 598 | $option, |
599 | 599 | $deprecated_keys[ $option ] |
600 | 600 | ) |
… |
… |
function register_setting( $option_group, $option_name, $args = array() ) { |
2316 | 2316 | |
2317 | 2317 | // Require an item schema when registering settings with an array type. |
2318 | 2318 | if ( false !== $args['show_in_rest'] && 'array' === $args['type'] && ( ! is_array( $args['show_in_rest'] ) || ! isset( $args['show_in_rest']['schema']['items'] ) ) ) { |
2319 | | _doing_it_wrong( __FUNCTION__, __( 'When registering an "array" setting to show in the REST API, you must specify the schema for each array item in "show_in_rest.schema.items".' ), '5.4.0' ); |
| 2319 | _doing_it_wrong( __FUNCTION__, __( 'When registering an array setting to show in the REST API, you must specify the schema for each array item in show_in_rest.schema.items.' ), '5.4.0' ); |
2320 | 2320 | } |
2321 | 2321 | |
2322 | 2322 | if ( ! is_array( $wp_registered_settings ) ) { |
… |
… |
function register_setting( $option_group, $option_name, $args = array() ) { |
2329 | 2329 | '3.0.0', |
2330 | 2330 | sprintf( |
2331 | 2331 | /* translators: %s: misc */ |
2332 | | __( 'The "%s" options group has been removed. Use another settings group.' ), |
| 2332 | __( 'The %s options group has been removed. Use another settings group.' ), |
2333 | 2333 | 'misc' |
2334 | 2334 | ) |
2335 | 2335 | ); |
… |
… |
function register_setting( $option_group, $option_name, $args = array() ) { |
2342 | 2342 | '3.5.0', |
2343 | 2343 | sprintf( |
2344 | 2344 | /* translators: %s: privacy */ |
2345 | | __( 'The "%s" options group has been removed. Use another settings group.' ), |
| 2345 | __( 'The %s options group has been removed. Use another settings group.' ), |
2346 | 2346 | 'privacy' |
2347 | 2347 | ) |
2348 | 2348 | ); |
… |
… |
function unregister_setting( $option_group, $option_name, $deprecated = '' ) { |
2402 | 2402 | '3.0.0', |
2403 | 2403 | sprintf( |
2404 | 2404 | /* translators: %s: misc */ |
2405 | | __( 'The "%s" options group has been removed. Use another settings group.' ), |
| 2405 | __( 'The %s options group has been removed. Use another settings group.' ), |
2406 | 2406 | 'misc' |
2407 | 2407 | ) |
2408 | 2408 | ); |
… |
… |
function unregister_setting( $option_group, $option_name, $deprecated = '' ) { |
2415 | 2415 | '3.5.0', |
2416 | 2416 | sprintf( |
2417 | 2417 | /* translators: %s: privacy */ |
2418 | | __( 'The "%s" options group has been removed. Use another settings group.' ), |
| 2418 | __( 'The %s options group has been removed. Use another settings group.' ), |
2419 | 2419 | 'privacy' |
2420 | 2420 | ) |
2421 | 2421 | ); |
-
diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
index 4a5891b8fd..779b8b7b0f 100644
a
|
b
|
if ( ! function_exists( 'wp_notify_postauthor' ) ) : |
1633 | 1633 | switch ( $comment->comment_type ) { |
1634 | 1634 | case 'trackback': |
1635 | 1635 | /* translators: %s: Post title. */ |
1636 | | $notify_message = sprintf( __( 'New trackback on your post "%s"' ), $post->post_title ) . "\r\n"; |
| 1636 | $notify_message = sprintf( __( 'New trackback on your post %s' ), $post->post_title ) . "\r\n"; |
1637 | 1637 | /* translators: 1: Trackback/pingback website name, 2: Website IP address, 3: Website hostname. */ |
1638 | 1638 | $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1639 | 1639 | /* translators: %s: Trackback/pingback/comment author URL. */ |
… |
… |
if ( ! function_exists( 'wp_notify_postauthor' ) ) : |
1647 | 1647 | |
1648 | 1648 | case 'pingback': |
1649 | 1649 | /* translators: %s: Post title. */ |
1650 | | $notify_message = sprintf( __( 'New pingback on your post "%s"' ), $post->post_title ) . "\r\n"; |
| 1650 | $notify_message = sprintf( __( 'New pingback on your post %s' ), $post->post_title ) . "\r\n"; |
1651 | 1651 | /* translators: 1: Trackback/pingback website name, 2: Website IP address, 3: Website hostname. */ |
1652 | 1652 | $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1653 | 1653 | /* translators: %s: Trackback/pingback/comment author URL. */ |
… |
… |
if ( ! function_exists( 'wp_notify_postauthor' ) ) : |
1661 | 1661 | |
1662 | 1662 | default: // Comments. |
1663 | 1663 | /* translators: %s: Post title. */ |
1664 | | $notify_message = sprintf( __( 'New comment on your post "%s"' ), $post->post_title ) . "\r\n"; |
| 1664 | $notify_message = sprintf( __( 'New comment on your post %s' ), $post->post_title ) . "\r\n"; |
1665 | 1665 | /* translators: 1: Comment author's name, 2: Comment author's IP address, 3: Comment author's hostname. */ |
1666 | 1666 | $notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1667 | 1667 | /* translators: %s: Comment author email. */ |
… |
… |
if ( ! function_exists( 'wp_notify_moderator' ) ) : |
1822 | 1822 | switch ( $comment->comment_type ) { |
1823 | 1823 | case 'trackback': |
1824 | 1824 | /* translators: %s: Post title. */ |
1825 | | $notify_message = sprintf( __( 'A new trackback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n"; |
| 1825 | $notify_message = sprintf( __( 'A new trackback on the post %s is waiting for your approval' ), $post->post_title ) . "\r\n"; |
1826 | 1826 | $notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n"; |
1827 | 1827 | /* translators: 1: Trackback/pingback website name, 2: Website IP address, 3: Website hostname. */ |
1828 | 1828 | $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
… |
… |
if ( ! function_exists( 'wp_notify_moderator' ) ) : |
1833 | 1833 | |
1834 | 1834 | case 'pingback': |
1835 | 1835 | /* translators: %s: Post title. */ |
1836 | | $notify_message = sprintf( __( 'A new pingback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n"; |
| 1836 | $notify_message = sprintf( __( 'A new pingback on the post %s is waiting for your approval' ), $post->post_title ) . "\r\n"; |
1837 | 1837 | $notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n"; |
1838 | 1838 | /* translators: 1: Trackback/pingback website name, 2: Website IP address, 3: Website hostname. */ |
1839 | 1839 | $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
… |
… |
if ( ! function_exists( 'wp_notify_moderator' ) ) : |
1844 | 1844 | |
1845 | 1845 | default: // Comments. |
1846 | 1846 | /* translators: %s: Post title. */ |
1847 | | $notify_message = sprintf( __( 'A new comment on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n"; |
| 1847 | $notify_message = sprintf( __( 'A new comment on the post %s is waiting for your approval' ), $post->post_title ) . "\r\n"; |
1848 | 1848 | $notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n"; |
1849 | 1849 | /* translators: 1: Comment author's name, 2: Comment author's IP address, 3: Comment author's hostname. */ |
1850 | 1850 | $notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
-
diff --git a/src/wp-includes/rest-api.php b/src/wp-includes/rest-api.php
index fb83e38f4c..fb01e7cf4b 100644
a
|
b
|
function rest_handle_multi_type_schema( $value, $args, $param = '' ) { |
1592 | 1592 | _doing_it_wrong( |
1593 | 1593 | __FUNCTION__, |
1594 | 1594 | /* translators: 1: Parameter, 2: List of allowed types. */ |
1595 | | wp_sprintf( __( 'The "type" schema keyword for %1$s can only contain the built-in types: %2$l.' ), $param, $allowed_types ), |
| 1595 | wp_sprintf( __( 'The type schema keyword for %1$s can only contain the built-in types: %2$l.' ), $param, $allowed_types ), |
1596 | 1596 | '5.5.0' |
1597 | 1597 | ); |
1598 | 1598 | } |
… |
… |
function rest_validate_value_from_schema( $value, $args, $param = '' ) { |
2073 | 2073 | |
2074 | 2074 | if ( ! isset( $args['type'] ) ) { |
2075 | 2075 | /* translators: %s: Parameter. */ |
2076 | | _doing_it_wrong( __FUNCTION__, sprintf( __( 'The "type" schema keyword for %s is required.' ), $param ), '5.5.0' ); |
| 2076 | _doing_it_wrong( __FUNCTION__, sprintf( __( 'The type schema keyword for %s is required.' ), $param ), '5.5.0' ); |
2077 | 2077 | } |
2078 | 2078 | |
2079 | 2079 | if ( is_array( $args['type'] ) ) { |
… |
… |
function rest_validate_value_from_schema( $value, $args, $param = '' ) { |
2095 | 2095 | _doing_it_wrong( |
2096 | 2096 | __FUNCTION__, |
2097 | 2097 | /* translators: 1: Parameter, 2: The list of allowed types. */ |
2098 | | wp_sprintf( __( 'The "type" schema keyword for %1$s can only be one of the built-in types: %2$l.' ), $param, $allowed_types ), |
| 2098 | wp_sprintf( __( 'The type schema keyword for %1$s can only be one of the built-in types: %2$l.' ), $param, $allowed_types ), |
2099 | 2099 | '5.5.0' |
2100 | 2100 | ); |
2101 | 2101 | } |
… |
… |
function rest_sanitize_value_from_schema( $value, $args, $param = '' ) { |
2672 | 2672 | |
2673 | 2673 | if ( ! isset( $args['type'] ) ) { |
2674 | 2674 | /* translators: %s: Parameter. */ |
2675 | | _doing_it_wrong( __FUNCTION__, sprintf( __( 'The "type" schema keyword for %s is required.' ), $param ), '5.5.0' ); |
| 2675 | _doing_it_wrong( __FUNCTION__, sprintf( __( 'The type schema keyword for %s is required.' ), $param ), '5.5.0' ); |
2676 | 2676 | } |
2677 | 2677 | |
2678 | 2678 | if ( is_array( $args['type'] ) ) { |
… |
… |
function rest_sanitize_value_from_schema( $value, $args, $param = '' ) { |
2689 | 2689 | _doing_it_wrong( |
2690 | 2690 | __FUNCTION__, |
2691 | 2691 | /* translators: 1: Parameter, 2: The list of allowed types. */ |
2692 | | wp_sprintf( __( 'The "type" schema keyword for %1$s can only be one of the built-in types: %2$l.' ), $param, $allowed_types ), |
| 2692 | wp_sprintf( __( 'The type schema keyword for %1$s can only be one of the built-in types: %2$l.' ), $param, $allowed_types ), |
2693 | 2693 | '5.5.0' |
2694 | 2694 | ); |
2695 | 2695 | } |
-
diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
index 068cc70bc2..ae9732a6dd 100644
a
|
b
|
class WP_REST_Posts_Controller extends WP_REST_Controller { |
2508 | 2508 | 'register_taxonomy', |
2509 | 2509 | sprintf( |
2510 | 2510 | /* translators: 1: The taxonomy name, 2: The property name, either 'rest_base' or 'name', 3: The conflicting value. */ |
2511 | | __( 'The "%1$s" taxonomy "%2$s" property (%3$s) conflicts with an existing property on the REST API Posts Controller. Specify a custom "rest_base" when registering the taxonomy to avoid this error.' ), |
| 2511 | __( 'The %1$s taxonomy %2$s property (%3$s) conflicts with an existing property on the REST API Posts Controller. Specify a custom rest_base when registering the taxonomy to avoid this error.' ), |
2512 | 2512 | $taxonomy->name, |
2513 | 2513 | $taxonomy_field_name_with_conflict, |
2514 | 2514 | $base |
-
diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
index b3cdfc2e31..6a030cb0ff 100644
a
|
b
|
class WP_REST_Users_Controller extends WP_REST_Controller { |
1297 | 1297 | 'rest_user_invalid_password', |
1298 | 1298 | sprintf( |
1299 | 1299 | /* translators: %s: The '\' character. */ |
1300 | | __( 'Passwords cannot contain the "%s" character.' ), |
| 1300 | __( 'Passwords cannot contain the %s character.' ), |
1301 | 1301 | '\\' |
1302 | 1302 | ), |
1303 | 1303 | array( 'status' => 400 ) |
-
diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php
index 71c56192ee..c12c658c0b 100644
a
|
b
|
function wp_default_scripts( $scripts ) { |
1201 | 1201 | 'plural' => _n( 'Unable to save due to %s invalid setting.', 'Unable to save due to %s invalid settings.', 2 ), |
1202 | 1202 | // @todo This is lacking, as some languages have a dedicated dual form. For proper handling of plurals in JS, see #20491. |
1203 | 1203 | ), |
1204 | | 'scheduleDescription' => __( 'Schedule your customization changes to publish ("go live") at a future date.' ), |
| 1204 | 'scheduleDescription' => __( 'Schedule your customization changes to publish (go live) at a future date.' ), |
1205 | 1205 | 'themePreviewUnavailable' => __( 'Sorry, you can’t preview new themes when you have changes scheduled or saved as a draft. Please publish your changes, or wait until they publish to preview new themes.' ), |
1206 | 1206 | 'themeInstallUnavailable' => sprintf( |
1207 | 1207 | /* translators: %s: URL to Add Themes admin screen. */ |
-
diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php
index 384c056404..c9b4bb6736 100644
a
|
b
|
function locale_stylesheet() { |
716 | 716 | $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"'; |
717 | 717 | |
718 | 718 | printf( |
719 | | '<link rel="stylesheet" href="%s"%s media="screen" />', |
| 719 | '<link rel="stylesheet" href="%s" %s media="screen" />', |
720 | 720 | $stylesheet, |
721 | 721 | $type_attr |
722 | 722 | ); |
… |
… |
function register_theme_feature( $feature, $args = array() ) { |
3128 | 3128 | if ( ! in_array( $args['type'], array( 'string', 'boolean', 'integer', 'number', 'array', 'object' ), true ) ) { |
3129 | 3129 | return new WP_Error( |
3130 | 3130 | 'invalid_type', |
3131 | | __( 'The feature "type" is not valid JSON Schema type.' ) |
| 3131 | __( 'The feature type is not valid JSON Schema type.' ) |
3132 | 3132 | ); |
3133 | 3133 | } |
3134 | 3134 | |
3135 | 3135 | if ( true === $args['variadic'] && 'array' !== $args['type'] ) { |
3136 | 3136 | return new WP_Error( |
3137 | 3137 | 'variadic_must_be_array', |
3138 | | __( 'When registering a "variadic" theme feature, the "type" must be an "array".' ) |
| 3138 | __( 'When registering a variadic theme feature, the type must be an array.' ) |
3139 | 3139 | ); |
3140 | 3140 | } |
3141 | 3141 | |
… |
… |
function register_theme_feature( $feature, $args = array() ) { |
3143 | 3143 | if ( ! is_array( $args['show_in_rest'] ) || empty( $args['show_in_rest']['schema'] ) ) { |
3144 | 3144 | return new WP_Error( |
3145 | 3145 | 'missing_schema', |
3146 | | __( 'When registering an "array" or "object" feature to show in the REST API, the feature\'s schema must also be defined.' ) |
| 3146 | __( 'When registering an array or object feature to show in the REST API, the feature\'s schema must also be defined.' ) |
3147 | 3147 | ); |
3148 | 3148 | } |
3149 | 3149 | |
3150 | 3150 | if ( 'array' === $args['type'] && ! isset( $args['show_in_rest']['schema']['items'] ) ) { |
3151 | 3151 | return new WP_Error( |
3152 | 3152 | 'missing_schema_items', |
3153 | | __( 'When registering an "array" feature, the feature\'s schema must include the "items" keyword.' ) |
| 3153 | __( 'When registering an array feature, the feature\'s schema must include the items keyword.' ) |
3154 | 3154 | ); |
3155 | 3155 | } |
3156 | 3156 | |
3157 | 3157 | if ( 'object' === $args['type'] && ! isset( $args['show_in_rest']['schema']['properties'] ) ) { |
3158 | 3158 | return new WP_Error( |
3159 | 3159 | 'missing_schema_properties', |
3160 | | __( 'When registering an "object" feature, the feature\'s schema must include the "properties" keyword.' ) |
| 3160 | __( 'When registering an object feature, the feature\'s schema must include the properties keyword.' ) |
3161 | 3161 | ); |
3162 | 3162 | } |
3163 | 3163 | } |
… |
… |
function register_theme_feature( $feature, $args = array() ) { |
3168 | 3168 | 'invalid_rest_prepare_callback', |
3169 | 3169 | sprintf( |
3170 | 3170 | /* translators: %s: prepare_callback */ |
3171 | | __( 'The "%s" must be a callable function.' ), |
| 3171 | __( 'The %s must be a callable function.' ), |
3172 | 3172 | 'prepare_callback' |
3173 | 3173 | ) |
3174 | 3174 | ); |
-
diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
index 55bd546568..c99aa0cb80 100644
a
|
b
|
function wp_user_request_action_description( $action_name ) { |
4230 | 4230 | break; |
4231 | 4231 | default: |
4232 | 4232 | /* translators: %s: Action name. */ |
4233 | | $description = sprintf( __( 'Confirm the "%s" action' ), $action_name ); |
| 4233 | $description = sprintf( __( 'Confirm the %s action' ), $action_name ); |
4234 | 4234 | break; |
4235 | 4235 | } |
4236 | 4236 | |