From 170d361287eae152419ab444019aa94c4429b316 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 29 Oct 2015 20:11:22 +0000 Subject: [PATCH] REST API: Use correct version in `_doing_it_wrong()` call. Props TobiasBg. Fixes #34490. git-svn-id: https://develop.svn.wordpress.org/trunk@35434 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rest-api/rest-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/rest-api/rest-functions.php b/src/wp-includes/rest-api/rest-functions.php index 4dd69dd805..90bb2e7305 100644 --- a/src/wp-includes/rest-api/rest-functions.php +++ b/src/wp-includes/rest-api/rest-functions.php @@ -52,7 +52,7 @@ 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 name and version', 'WPAPI-2.0' ); + _doing_it_wrong( 'register_rest_route', 'Routes must be namespaced with plugin name and version', '4.4.0' ); $full_route = '/' . trim( $route, '/' ); }