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

Props ramiy.
Fixes #41667.
Built from https://develop.svn.wordpress.org/trunk@41587


git-svn-id: http://core.svn.wordpress.org/trunk@41420 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-09-24 22:04:46 +00:00
parent d1948f623a
commit 982ba72da9
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ abstract class WP_REST_Controller {
* @since 4.7.0
*/
public function register_routes() {
_doing_it_wrong( 'WP_REST_Controller::register_routes', __( 'The register_routes() method must be overridden' ), '4.7' );
_doing_it_wrong( 'WP_REST_Controller::register_routes', sprintf( __( "Method '%s' must be overridden." ), __METHOD__ ), '4.7' );
}
/**

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-alpha-41586';
$wp_version = '4.9-alpha-41587';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.