Commit 339da15a39 for wordpress.org

commit 339da15a39f0012c75e49e18afe0fcaf34c81891
Author: johnbillion <johnbillion@git.wordpress.org>
Date:   Wed Nov 18 13:12:58 2026 +0000

    REST API: Escape a hyphen in `wp_is_json_media_type()`.

    Props batmoo, xknown, jonsurrell.

    Built from https://develop.svn.wordpress.org/trunk@65569


    git-svn-id: http://core.svn.wordpress.org/trunk@64642 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-includes/load.php b/wp-includes/load.php
index ce309d2ecd..909a4ed98f 100644
--- a/wp-includes/load.php
+++ b/wp-includes/load.php
@@ -2007,7 +2007,7 @@ function wp_is_json_media_type( $media_type ) {
 	static $cache = array();

 	if ( ! isset( $cache[ $media_type ] ) ) {
-		$cache[ $media_type ] = (bool) preg_match( '/(^|\s|,)application\/([\w!#\$&-\^\.\+]+\+)?json(\+oembed)?($|\s|;|,)/i', $media_type );
+		$cache[ $media_type ] = (bool) preg_match( '/(^|\s|,)application\/([\w!#\$&\-\^\.\+]+\+)?json(\+oembed)?($|\s|;|,)/i', $media_type );
 	}

 	return $cache[ $media_type ];
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 0b377043de..e17fcc791c 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.2-RC1-65568';
+$wp_version = '7.2-RC1-65569';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.