Make WordPress Core

Ticket #53650: 53650.2.diff

File 53650.2.diff, 28.1 KB (added by sayedulsayem, 3 years ago)

Verified PR patch added

  • src/wp-admin/includes/template.php

    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 ) { 
    15661566                        '3.0.0',
    15671567                        sprintf(
    15681568                                /* 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.' ),
    15701570                                'misc'
    15711571                        )
    15721572                );
    function add_settings_section( $id, $title, $callback, $page ) { 
    15791579                        '3.5.0',
    15801580                        sprintf(
    15811581                                /* 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.' ),
    15831583                                'privacy'
    15841584                        )
    15851585                );
    function add_settings_field( $id, $title, $callback, $page, $section = 'default' 
    16371637                        '3.0.0',
    16381638                        sprintf(
    16391639                                /* 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.' ),
    16411641                                'misc'
    16421642                        )
    16431643                );
    function add_settings_field( $id, $title, $callback, $page, $section = 'default' 
    16501650                        '3.5.0',
    16511651                        sprintf(
    16521652                                /* 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.' ),
    16541654                                'privacy'
    16551655                        )
    16561656                );
    function _wp_block_editor_posts_page_notice() { 
    26942694        wp_add_inline_script(
    26952695                'wp-notices',
    26962696                sprintf(
    2697                         'wp.data.dispatch( "core/notices" ).createWarningNotice( "%s", { isDismissible: false } )',
     2697                        'wp.data.dispatch( "core/notices" ).createWarningNotice( %s, { isDismissible: false } )',
    26982698                        __( 'You are currently editing the page that shows your latest posts.' )
    26992699                ),
    27002700                'after'
  • src/wp-includes/blocks.php

    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 ) { 
    9292                        __FUNCTION__,
    9393                        sprintf(
    9494                                /* 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.' ),
    9696                                $field_name,
    9797                                $metadata['name']
    9898                        ),
    function wp_migrate_old_typography_shape( $metadata ) { 
    10381038                                'register_block_type_from_metadata()',
    10391039                                sprintf(
    10401040                                        /* 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.' ),
    10421042                                        $metadata['name'],
    10431043                                        "<code>$typography_key</code>",
    10441044                                        '<code>block.json</code>',
  • src/wp-includes/capabilities.php

    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 ) { 
    9292                        $post_type = get_post_type_object( $post->post_type );
    9393                        if ( ! $post_type ) {
    9494                                /* 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' );
    9696                                $caps[] = 'edit_others_posts';
    9797                                break;
    9898                        }
    function map_meta_cap( $cap, $user_id, ...$args ) { 
    163163                        $post_type = get_post_type_object( $post->post_type );
    164164                        if ( ! $post_type ) {
    165165                                /* 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' );
    167167                                $caps[] = 'edit_others_posts';
    168168                                break;
    169169                        }
    function map_meta_cap( $cap, $user_id, ...$args ) { 
    232232                        $post_type = get_post_type_object( $post->post_type );
    233233                        if ( ! $post_type ) {
    234234                                /* 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' );
    236236                                $caps[] = 'edit_others_posts';
    237237                                break;
    238238                        }
    function map_meta_cap( $cap, $user_id, ...$args ) { 
    249249                        $status_obj = get_post_status_object( get_post_status( $post ) );
    250250                        if ( ! $status_obj ) {
    251251                                /* 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' );
    253253                                $caps[] = 'edit_others_posts';
    254254                                break;
    255255                        }
    function map_meta_cap( $cap, $user_id, ...$args ) { 
    277277                        $post_type = get_post_type_object( $post->post_type );
    278278                        if ( ! $post_type ) {
    279279                                /* 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' );
    281281                                $caps[] = 'edit_others_posts';
    282282                                break;
    283283                        }
  • src/wp-includes/class-wp-block-pattern-categories-registry.php

    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 { 
    6767                        _doing_it_wrong(
    6868                                __METHOD__,
    6969                                /* 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 ),
    7171                                '5.5.0'
    7272                        );
    7373                        return false;
  • src/wp-includes/class-wp-block-patterns-registry.php

    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 { 
    8888                        _doing_it_wrong(
    8989                                __METHOD__,
    9090                                /* translators: %s: Pattern name. */
    91                                 sprintf( __( 'Pattern "%s" not found.' ), $pattern_name ),
     91                                sprintf( __( 'Pattern %s not found.' ), $pattern_name ),
    9292                                '5.5.0'
    9393                        );
    9494                        return false;
  • src/wp-includes/class-wp-block-styles-registry.php

    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 { 
    8282                        _doing_it_wrong(
    8383                                __METHOD__,
    8484                                /* 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 ),
    8686                                '5.3.0'
    8787                        );
    8888                        return false;
  • src/wp-includes/class-wp-block-type-registry.php

    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 { 
    8383                        _doing_it_wrong(
    8484                                __METHOD__,
    8585                                /* translators: %s: Block name. */
    86                                 sprintf( __( 'Block type "%s" is already registered.' ), $name ),
     86                                sprintf( __( 'Block type %s is already registered.' ), $name ),
    8787                                '5.0.0'
    8888                        );
    8989                        return false;
    final class WP_Block_Type_Registry { 
    116116                        _doing_it_wrong(
    117117                                __METHOD__,
    118118                                /* translators: %s: Block name. */
    119                                 sprintf( __( 'Block type "%s" is not registered.' ), $name ),
     119                                sprintf( __( 'Block type %s is not registered.' ), $name ),
    120120                                '5.0.0'
    121121                        );
    122122                        return false;
  • src/wp-includes/class-wp-theme.php

    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 { 
    262262                                        'theme_not_found',
    263263                                        sprintf(
    264264                                                /* translators: %s: Theme directory name. */
    265                                                 __( 'The theme directory "%s" does not exist.' ),
     265                                                __( 'The theme directory %s does not exist.' ),
    266266                                                esc_html( $this->stylesheet )
    267267                                        )
    268268                                );
    final class WP_Theme implements ArrayAccess { 
    378378                                        'theme_no_parent',
    379379                                        sprintf(
    380380                                                /* 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.' ),
    382382                                                esc_html( $this->template )
    383383                                        )
    384384                                );
    final class WP_Theme implements ArrayAccess { 
    405405                                        'theme_parent_invalid',
    406406                                        sprintf(
    407407                                                /* 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.' ),
    409409                                                esc_html( $_child->template )
    410410                                        )
    411411                                );
    final class WP_Theme implements ArrayAccess { 
    424424                                                'theme_parent_invalid',
    425425                                                sprintf(
    426426                                                        /* 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.' ),
    428428                                                        esc_html( $this->template )
    429429                                                )
    430430                                        );
  • src/wp-includes/meta.php

    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 ) { 
    14411441        // Require an item schema when registering array meta.
    14421442        if ( false !== $args['show_in_rest'] && 'array' === $args['type'] ) {
    14431443                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' );
    14451445
    14461446                        return false;
    14471447                }
  • src/wp-includes/option.php

    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 ) { 
    100100                        '5.5.0',
    101101                        sprintf(
    102102                                /* 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.' ),
    104104                                $option,
    105105                                $deprecated_keys[ $option ]
    106106                        )
    function update_option( $option, $value, $autoload = null ) { 
    404404                        '5.5.0',
    405405                        sprintf(
    406406                                /* 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.' ),
    408408                                $option,
    409409                                $deprecated_keys[ $option ]
    410410                        )
    function add_option( $option, $value = '', $deprecated = '', $autoload = 'yes' ) 
    594594                        '5.5.0',
    595595                        sprintf(
    596596                                /* 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.' ),
    598598                                $option,
    599599                                $deprecated_keys[ $option ]
    600600                        )
    function register_setting( $option_group, $option_name, $args = array() ) { 
    23162316
    23172317        // Require an item schema when registering settings with an array type.
    23182318        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' );
    23202320        }
    23212321
    23222322        if ( ! is_array( $wp_registered_settings ) ) {
    function register_setting( $option_group, $option_name, $args = array() ) { 
    23292329                        '3.0.0',
    23302330                        sprintf(
    23312331                                /* 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.' ),
    23332333                                'misc'
    23342334                        )
    23352335                );
    function register_setting( $option_group, $option_name, $args = array() ) { 
    23422342                        '3.5.0',
    23432343                        sprintf(
    23442344                                /* 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.' ),
    23462346                                'privacy'
    23472347                        )
    23482348                );
    function unregister_setting( $option_group, $option_name, $deprecated = '' ) { 
    24022402                        '3.0.0',
    24032403                        sprintf(
    24042404                                /* 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.' ),
    24062406                                'misc'
    24072407                        )
    24082408                );
    function unregister_setting( $option_group, $option_name, $deprecated = '' ) { 
    24152415                        '3.5.0',
    24162416                        sprintf(
    24172417                                /* 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.' ),
    24192419                                'privacy'
    24202420                        )
    24212421                );
  • src/wp-includes/pluggable.php

    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' ) ) : 
    16331633                switch ( $comment->comment_type ) {
    16341634                        case 'trackback':
    16351635                                /* 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";
    16371637                                /* translators: 1: Trackback/pingback website name, 2: Website IP address, 3: Website hostname. */
    16381638                                $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    16391639                                /* translators: %s: Trackback/pingback/comment author URL. */
    if ( ! function_exists( 'wp_notify_postauthor' ) ) : 
    16471647
    16481648                        case 'pingback':
    16491649                                /* 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";
    16511651                                /* translators: 1: Trackback/pingback website name, 2: Website IP address, 3: Website hostname. */
    16521652                                $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    16531653                                /* translators: %s: Trackback/pingback/comment author URL. */
    if ( ! function_exists( 'wp_notify_postauthor' ) ) : 
    16611661
    16621662                        default: // Comments.
    16631663                                /* 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";
    16651665                                /* translators: 1: Comment author's name, 2: Comment author's IP address, 3: Comment author's hostname. */
    16661666                                $notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    16671667                                /* translators: %s: Comment author email. */
    if ( ! function_exists( 'wp_notify_moderator' ) ) : 
    18221822                switch ( $comment->comment_type ) {
    18231823                        case 'trackback':
    18241824                                /* 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";
    18261826                                $notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n";
    18271827                                /* translators: 1: Trackback/pingback website name, 2: Website IP address, 3: Website hostname. */
    18281828                                $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' ) ) : 
    18331833
    18341834                        case 'pingback':
    18351835                                /* 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";
    18371837                                $notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n";
    18381838                                /* translators: 1: Trackback/pingback website name, 2: Website IP address, 3: Website hostname. */
    18391839                                $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' ) ) : 
    18441844
    18451845                        default: // Comments.
    18461846                                /* 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";
    18481848                                $notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n";
    18491849                                /* translators: 1: Comment author's name, 2: Comment author's IP address, 3: Comment author's hostname. */
    18501850                                $notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
  • src/wp-includes/rest-api.php

    diff --git a/src/wp-includes/rest-api.php b/src/wp-includes/rest-api.php
    index 7e66ecd801..f8b4202162 100644
    a b function rest_handle_multi_type_schema( $value, $args, $param = '' ) { 
    15921592                _doing_it_wrong(
    15931593                        __FUNCTION__,
    15941594                        /* 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 ),
    15961596                        '5.5.0'
    15971597                );
    15981598        }
    function rest_validate_value_from_schema( $value, $args, $param = '' ) { 
    20732073
    20742074        if ( ! isset( $args['type'] ) ) {
    20752075                /* 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' );
    20772077        }
    20782078
    20792079        if ( is_array( $args['type'] ) ) {
    function rest_validate_value_from_schema( $value, $args, $param = '' ) { 
    20952095                _doing_it_wrong(
    20962096                        __FUNCTION__,
    20972097                        /* 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 ),
    20992099                        '5.5.0'
    21002100                );
    21012101        }
    function rest_sanitize_value_from_schema( $value, $args, $param = '' ) { 
    26732673
    26742674        if ( ! isset( $args['type'] ) ) {
    26752675                /* translators: %s: Parameter. */
    2676                 _doing_it_wrong( __FUNCTION__, sprintf( __( 'The "type" schema keyword for %s is required.' ), $param ), '5.5.0' );
     2676                _doing_it_wrong( __FUNCTION__, sprintf( __( 'The type schema keyword for %s is required.' ), $param ), '5.5.0' );
    26772677        }
    26782678
    26792679        if ( is_array( $args['type'] ) ) {
    function rest_sanitize_value_from_schema( $value, $args, $param = '' ) { 
    26902690                _doing_it_wrong(
    26912691                        __FUNCTION__,
    26922692                        /* translators: 1: Parameter, 2: The list of allowed types. */
    2693                         wp_sprintf( __( 'The "type" schema keyword for %1$s can only be one of the built-in types: %2$l.' ), $param, $allowed_types ),
     2693                        wp_sprintf( __( 'The type schema keyword for %1$s can only be one of the built-in types: %2$l.' ), $param, $allowed_types ),
    26942694                        '5.5.0'
    26952695                );
    26962696        }
  • src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    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 { 
    25082508                                        'register_taxonomy',
    25092509                                        sprintf(
    25102510                                                /* 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.' ),
    25122512                                                $taxonomy->name,
    25132513                                                $taxonomy_field_name_with_conflict,
    25142514                                                $base
  • src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

    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 { 
    12971297                                'rest_user_invalid_password',
    12981298                                sprintf(
    12991299                                        /* translators: %s: The '\' character. */
    1300                                         __( 'Passwords cannot contain the "%s" character.' ),
     1300                                        __( 'Passwords cannot contain the %s character.' ),
    13011301                                        '\\'
    13021302                                ),
    13031303                                array( 'status' => 400 )
  • src/wp-includes/script-loader.php

    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 ) { 
    12011201                                'plural'   => _n( 'Unable to save due to %s invalid setting.', 'Unable to save due to %s invalid settings.', 2 ),
    12021202                                // @todo This is lacking, as some languages have a dedicated dual form. For proper handling of plurals in JS, see #20491.
    12031203                        ),
    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.' ),
    12051205                        'themePreviewUnavailable' => __( 'Sorry, you can&#8217;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.' ),
    12061206                        'themeInstallUnavailable' => sprintf(
    12071207                                /* translators: %s: URL to Add Themes admin screen. */
  • src/wp-includes/theme.php

    diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php
    index 384c056404..c9b4bb6736 100644
    a b function locale_stylesheet() { 
    716716        $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
    717717
    718718        printf(
    719                 '<link rel="stylesheet" href="%s"%s media="screen" />',
     719                '<link rel="stylesheet" href="%s" %s media="screen" />',
    720720                $stylesheet,
    721721                $type_attr
    722722        );
    function register_theme_feature( $feature, $args = array() ) { 
    31283128        if ( ! in_array( $args['type'], array( 'string', 'boolean', 'integer', 'number', 'array', 'object' ), true ) ) {
    31293129                return new WP_Error(
    31303130                        'invalid_type',
    3131                         __( 'The feature "type" is not valid JSON Schema type.' )
     3131                        __( 'The feature type is not valid JSON Schema type.' )
    31323132                );
    31333133        }
    31343134
    31353135        if ( true === $args['variadic'] && 'array' !== $args['type'] ) {
    31363136                return new WP_Error(
    31373137                        '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.' )
    31393139                );
    31403140        }
    31413141
    function register_theme_feature( $feature, $args = array() ) { 
    31433143                if ( ! is_array( $args['show_in_rest'] ) || empty( $args['show_in_rest']['schema'] ) ) {
    31443144                        return new WP_Error(
    31453145                                '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.' )
    31473147                        );
    31483148                }
    31493149
    31503150                if ( 'array' === $args['type'] && ! isset( $args['show_in_rest']['schema']['items'] ) ) {
    31513151                        return new WP_Error(
    31523152                                '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.' )
    31543154                        );
    31553155                }
    31563156
    31573157                if ( 'object' === $args['type'] && ! isset( $args['show_in_rest']['schema']['properties'] ) ) {
    31583158                        return new WP_Error(
    31593159                                '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.' )
    31613161                        );
    31623162                }
    31633163        }
    function register_theme_feature( $feature, $args = array() ) { 
    31683168                                'invalid_rest_prepare_callback',
    31693169                                sprintf(
    31703170                                        /* translators: %s: prepare_callback */
    3171                                         __( 'The "%s" must be a callable function.' ),
     3171                                        __( 'The %s must be a callable function.' ),
    31723172                                        'prepare_callback'
    31733173                                )
    31743174                        );
  • src/wp-includes/user.php

    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 ) { 
    42304230                        break;
    42314231                default:
    42324232                        /* translators: %s: Action name. */
    4233                         $description = sprintf( __( 'Confirm the "%s" action' ), $action_name );
     4233                        $description = sprintf( __( 'Confirm the %s action' ), $action_name );
    42344234                        break;
    42354235        }
    42364236