Make WordPress Core


Ignore:
Timestamp:
11/15/2016 05:38:21 AM (8 years ago)
Author:
rmccue
Message:

REST API: Move translator comments to preceding line.

Inline translator comments break POT file generation.

Props dd32.
See #38791.

File:
1 edited

Legend:

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

    r39238 r39239  
    19341934            $base = ! empty( $taxonomy->rest_base ) ? $taxonomy->rest_base : $taxonomy->name;
    19351935            $schema['properties'][ $base ] = array(
    1936                 'description' => sprintf( __( /* translators: %s: taxonomy name */ 'The terms assigned to the object in the %s taxonomy.' ), $taxonomy->name ),
     1936                /* translators: %s: taxonomy name */
     1937                'description' => sprintf( __( 'The terms assigned to the object in the %s taxonomy.' ), $taxonomy->name ),
    19371938                'type'        => 'array',
    19381939                'items'       => array(
     
    20892090
    20902091            $params[ $base ] = array(
    2091                 'description'       => sprintf( __( /* translators: %s: taxonomy name */ 'Limit result set to all items that have the specified term assigned in the %s taxonomy.' ), $base ),
     2092                /* translators: %s: taxonomy name */
     2093                'description'       => sprintf( __( 'Limit result set to all items that have the specified term assigned in the %s taxonomy.' ), $base ),
    20922094                'type'              => 'array',
    20932095                'items'             => array(
     
    20982100
    20992101            $params[ $base . '_exclude' ] = array(
    2100                 'description' => sprintf( __( /* translators: %s: taxonomy name */ 'Limit result set to all items except those that have the specified term assigned in the %s taxonomy.' ), $base ),
     2102                /* translators: %s: taxonomy name */
     2103                'description' => sprintf( __( 'Limit result set to all items except those that have the specified term assigned in the %s taxonomy.' ), $base ),
    21012104                'type'        => 'array',
    21022105                'items'       => array(
Note: See TracChangeset for help on using the changeset viewer.