Make WordPress Core


Ignore:
Timestamp:
09/24/2017 10:03:01 PM (7 years ago)
Author:
SergeyBiryukov
Message:

I18N: Replace method name in a translatable string in WP_REST_Controller::register_routes() with a placeholder.

Props ramiy.
Fixes #41667.

File:
1 edited

Legend:

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

    r41162 r41587  
    3737     */
    3838    public function register_routes() {
    39         _doing_it_wrong( 'WP_REST_Controller::register_routes', __( 'The register_routes() method must be overridden' ), '4.7' );
     39        _doing_it_wrong( 'WP_REST_Controller::register_routes', sprintf( __( "Method '%s' must be overridden." ), __METHOD__ ), '4.7' );
    4040    }
    4141
Note: See TracChangeset for help on using the changeset viewer.