Make WordPress Core

Changeset 35434


Ignore:
Timestamp:
10/29/2015 08:11:22 PM (10 years ago)
Author:
SergeyBiryukov
Message:

REST API: Use correct version in _doing_it_wrong() call.

Props TobiasBg.
Fixes #34490.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/rest-functions.php

    r35433 r35434  
    5353         * non-namespaced route, call `WP_REST_Server::register_route` directly.
    5454         */
    55         _doing_it_wrong( 'register_rest_route', 'Routes must be namespaced with plugin name and version', 'WPAPI-2.0' );
     55        _doing_it_wrong( 'register_rest_route', 'Routes must be namespaced with plugin name and version', '4.4.0' );
    5656
    5757        $full_route = '/' . trim( $route, '/' );
Note: See TracChangeset for help on using the changeset viewer.