Make WordPress Core


Ignore:
Timestamp:
07/26/2020 09:47:56 PM (4 years ago)
Author:
SergeyBiryukov
Message:

REST API: Use a consistent name for the textdomain schema property between plugins, themes, and block directory controllers.

Follow-up to [48242].

See #50321, #50776.

File:
1 edited

Legend:

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

    r48626 r48627  
    549549            'requires_wp'  => $item['RequiresWP'],
    550550            'requires_php' => $item['RequiresPHP'],
    551             'text_domain'  => $item['TextDomain'],
     551            'textdomain'   => $item['TextDomain'],
    552552        );
    553553
     
    909909                    'context'     => array( 'view', 'edit', 'embed' ),
    910910                ),
    911                 'text_domain'  => array(
     911                'textdomain'   => array(
    912912                    'description' => __( 'The plugin\'s text domain.' ),
    913913                    'type'        => 'string',
Note: See TracChangeset for help on using the changeset viewer.