diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php index 49e5c8d829..df8a3dcd6d 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php @@ -105,7 +105,7 @@ class WP_REST_Templates_Controller extends WP_REST_Controller { // Excludes invalid directory name characters: `/:<>*?"|`. '([^\/:<>\*\?"\|]+(?:\/[^\/:<>\*\?"\|]+)?)', // Matches the template name. - '[\/\w-]+' + '[\/\w%-]+' ), array( 'args' => array( @@ -834,7 +834,7 @@ class WP_REST_Templates_Controller extends WP_REST_Controller { 'context' => array( 'embed', 'view', 'edit' ), 'required' => true, 'minLength' => 1, - 'pattern' => '[a-zA-Z0-9_\-]+', + 'pattern' => '[a-zA-Z0-9_\%-]+', ), 'theme' => array( 'description' => __( 'Theme identifier for the template.' ), diff --git a/wp-includes/version.php b/wp-includes/version.php index 3b6a80cb80..55940f1bd0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-beta1-55293'; +$wp_version = '6.2-beta1-55294'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.