From 55bb9a8c0101202f5c931fbc3529d364e12ad604 Mon Sep 17 00:00:00 2001 From: Rachel Baker Date: Mon, 7 Dec 2015 22:40:27 +0000 Subject: [PATCH] REST API: Make strings translatable in `register_rest_route`. Adds i18n to the `doing_it_wrong()` messages for invalid parameters within `register_rest_route()`. Props Latz,danielbachhuber. Fixes #34902 Built from https://develop.svn.wordpress.org/trunk@35822 git-svn-id: http://core.svn.wordpress.org/trunk@35786 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/rest-api.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/rest-api.php b/wp-includes/rest-api.php index eb41c48fb7..29cac58fa6 100644 --- a/wp-includes/rest-api.php +++ b/wp-includes/rest-api.php @@ -39,10 +39,10 @@ function register_rest_route( $namespace, $route, $args = array(), $override = f * and namespace indexes. If you really need to register a * non-namespaced route, call `WP_REST_Server::register_route` directly. */ - _doing_it_wrong( 'register_rest_route', 'Routes must be namespaced with plugin or theme name and version.', '4.4.0' ); + _doing_it_wrong( 'register_rest_route', __( 'Routes must be namespaced with plugin or theme name and version.' ), '4.4.0' ); return false; } else if ( empty( $route ) ) { - _doing_it_wrong( 'register_rest_route', 'Route must be specified.', '4.4.0' ); + _doing_it_wrong( 'register_rest_route', __( 'Route must be specified.' ), '4.4.0' ); return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 6ea1e22b89..cb4f340c97 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-35820'; +$wp_version = '4.5-alpha-35822'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.