From d3f791728f0f31251259bfe4fe8bfc151a1310c6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 24 Sep 2017 22:03:01 +0000 Subject: [PATCH] I18N: Replace method name in a translatable string in `WP_REST_Controller::register_routes()` with a placeholder. Props ramiy. Fixes #41667. git-svn-id: https://develop.svn.wordpress.org/trunk@41587 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php index e04193a511..d07095cedc 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php +++ b/src/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' ); } /**