Make WordPress Core

Changeset 51391


Ignore:
Timestamp:
07/09/2021 10:56:49 AM (5 years ago)
Author:
SergeyBiryukov
Message:

I18N: Translate _doing_it_wrong() messages in wp_check_widget_editor_deps().

This makes them consistent with other similar messages in core.

Follow-up to [51387], [51388], [51390].

See #53437, #53569.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets.php

    r51390 r51391  
    20362036                        _doing_it_wrong(
    20372037                                'wp_enqueue_script()',
    2038                                 '"wp-editor" script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets).',
     2038                                sprintf(
     2039                                        /* translators: 1: 'wp-editor', 2: 'wp-edit-widgets', 3: 'wp-customize-widgets'. */
     2040                                        __( '"%1$s" script should not be enqueued together with the new widgets editor (%2$s or %3$s).' ),
     2041                                        'wp-editor',
     2042                                        'wp-edit-widgets',
     2043                                        'wp-customize-widgets'
     2044                                ),
    20392045                                '5.8.0'
    20402046                        );
     
    20432049                        _doing_it_wrong(
    20442050                                'wp_enqueue_style()',
    2045                                 '"wp-edit-post" style should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets).',
     2051                                sprintf(
     2052                                        /* translators: 1: 'wp-edit-post', 2: 'wp-edit-widgets', 3: 'wp-customize-widgets'. */
     2053                                        __( '"%1$s" style should not be enqueued together with the new widgets editor (%2$s or %3$s).' ),
     2054                                        'wp-edit-post',
     2055                                        'wp-edit-widgets',
     2056                                        'wp-customize-widgets'
     2057                                ),
    20462058                                '5.8.0'
    20472059                        );
Note: See TracChangeset for help on using the changeset viewer.