From cc6d56f5039eb348229e6dcc64d2d841ac08c7f8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 22 May 2021 13:08:12 +0000 Subject: [PATCH] Docs: Use 3-digit, x.x.x-style semantic versioning for two `_doing_it_wrong()` calls. Follow-up to [37985], [38420], [39021]. See #52628. git-svn-id: https://develop.svn.wordpress.org/trunk@50952 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/pluggable.php | 2 +- src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php index 68e24b11ec..f164eb2cbb 100644 --- a/src/wp-includes/pluggable.php +++ b/src/wp-includes/pluggable.php @@ -1221,7 +1221,7 @@ if ( ! function_exists( 'check_ajax_referer' ) ) : */ function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) { if ( -1 == $action ) { - _doing_it_wrong( __FUNCTION__, __( 'You should specify an action to be verified by using the first parameter.' ), '4.7' ); + _doing_it_wrong( __FUNCTION__, __( 'You should specify an action to be verified by using the first parameter.' ), '4.7.0' ); } $nonce = ''; 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 06913af48f..3417a6fe75 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 @@ -50,7 +50,7 @@ abstract class WP_REST_Controller { 'WP_REST_Controller::register_routes', /* translators: %s: register_routes() */ sprintf( __( "Method '%s' must be overridden." ), __METHOD__ ), - '4.7' + '4.7.0' ); }