From 982ba72da98bf635ca39a6b6c549da316b8d31b3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 24 Sep 2017 22:04:46 +0000 Subject: [PATCH] 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 --- wp-includes/rest-api/endpoints/class-wp-rest-controller.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-controller.php index e04193a511..d07095cedc 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-controller.php @@ -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' ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 6716c79307..cf03b7069e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.