Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (5 years ago)
Author:
SergeyBiryukov
Message:

I18N: Capitalize translator comments consistently, add trailing punctuation.

Includes minor code layout fixes.

See #44360.

File:
1 edited

Legend:

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

    r45811 r45932  
    5858     */
    5959    public function get_items_permissions_check( $request ) {
    60         /* translators: %s: method name */
     60        /* translators: %s: Method name. */
    6161        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    6262    }
     
    7171     */
    7272    public function get_items( $request ) {
    73         /* translators: %s: method name */
     73        /* translators: %s: Method name. */
    7474        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    7575    }
     
    8484     */
    8585    public function get_item_permissions_check( $request ) {
    86         /* translators: %s: method name */
     86        /* translators: %s: Method name. */
    8787        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    8888    }
     
    9797     */
    9898    public function get_item( $request ) {
    99         /* translators: %s: method name */
     99        /* translators: %s: Method name. */
    100100        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    101101    }
     
    110110     */
    111111    public function create_item_permissions_check( $request ) {
    112         /* translators: %s: method name */
     112        /* translators: %s: Method name. */
    113113        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    114114    }
     
    123123     */
    124124    public function create_item( $request ) {
    125         /* translators: %s: method name */
     125        /* translators: %s: Method name. */
    126126        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    127127    }
     
    136136     */
    137137    public function update_item_permissions_check( $request ) {
    138         /* translators: %s: method name */
     138        /* translators: %s: Method name. */
    139139        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    140140    }
     
    149149     */
    150150    public function update_item( $request ) {
    151         /* translators: %s: method name */
     151        /* translators: %s: Method name. */
    152152        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    153153    }
     
    162162     */
    163163    public function delete_item_permissions_check( $request ) {
    164         /* translators: %s: method name */
     164        /* translators: %s: Method name. */
    165165        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    166166    }
     
    175175     */
    176176    public function delete_item( $request ) {
    177         /* translators: %s: method name */
     177        /* translators: %s: Method name. */
    178178        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    179179    }
     
    188188     */
    189189    protected function prepare_item_for_database( $request ) {
    190         /* translators: %s: method name */
     190        /* translators: %s: Method name. */
    191191        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    192192    }
     
    202202     */
    203203    public function prepare_item_for_response( $item, $request ) {
    204         /* translators: %s: method name */
     204        /* translators: %s: Method name. */
    205205        return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );
    206206    }
Note: See TracChangeset for help on using the changeset viewer.