Make WordPress Core

Changeset 47045


Ignore:
Timestamp:
01/06/2020 04:45:58 PM (7 years ago)
Author:
SergeyBiryukov
Message:

REST API: Display the taxonomy name in the _doing_it_wrong() message for a conflicting rest_base or name property, to match the translator comment.

Follow-up to [47037].

See #48401.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r47037 r47045  
    22502250                                        'register_taxonomy',
    22512251                                        sprintf(
    2252                                                 /* translators: 1. The taxonomy name, 2. The property name, either rest_base or name. */
     2252                                                /* translators: 1. The taxonomy name, 2. The property name, either 'rest_base' or 'name'. */
    22532253                                                __( 'The "%1$s" taxonomy "%2$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.' ),
    2254                                                 $base,
     2254                                                $taxonomy->name,
    22552255                                                $taxonomy_field_name_with_conflict
    22562256                                        ),
Note: See TracChangeset for help on using the changeset viewer.