From 28639fc8d524e955fd27a846a677127ab78aa5b0 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 6 Jan 2020 16:21:04 +0000 Subject: [PATCH] I18N: Replace `rest_authentication_errors` filter name with a placeholder in a translatable string. Follow-up to [38947] and [40038]. See #38446. Built from https://develop.svn.wordpress.org/trunk@47044 git-svn-id: http://core.svn.wordpress.org/trunk@46844 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/rest-api/class-wp-rest-server.php | 6 +++++- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-includes/rest-api/class-wp-rest-server.php b/wp-includes/rest-api/class-wp-rest-server.php index e07e214d97..1b1bed5d73 100644 --- a/wp-includes/rest-api/class-wp-rest-server.php +++ b/wp-includes/rest-api/class-wp-rest-server.php @@ -270,7 +270,11 @@ class WP_REST_Server { array( true ), '4.7.0', 'rest_authentication_errors', - __( 'The REST API can no longer be completely disabled, the rest_authentication_errors filter can be used to restrict access to the API, instead.' ) + sprintf( + /* translators: %s: rest_authentication_errors */ + __( 'The REST API can no longer be completely disabled, the %s filter can be used to restrict access to the API, instead.' ), + 'rest_authentication_errors' + ) ); /** diff --git a/wp-includes/version.php b/wp-includes/version.php index b9b9e28257..e3acd373fc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-47043'; +$wp_version = '5.4-alpha-47044'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.