General: Escape periods in regular expressions where the character is intended to match only a literal period.

Props westonruter, mukesh27, johnbillion

Fixes #63988
Built from https://develop.svn.wordpress.org/trunk@60783


git-svn-id: http://core.svn.wordpress.org/trunk@60119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn
2025-09-19 12:22:23 +00:00
parent 1e8e058801
commit 1db0619348
3 changed files with 4 additions and 4 deletions

View File

@@ -377,7 +377,7 @@ function wp_admin_bar_site_menu( $wp_admin_bar ) {
$blogname = get_bloginfo( 'name' );
if ( ! $blogname ) {
$blogname = preg_replace( '#^(https?://)?(www.)?#', '', get_home_url() );
$blogname = preg_replace( '#^(https?://)?(www\.)?#', '', get_home_url() );
}
if ( is_network_admin() ) {
@@ -698,7 +698,7 @@ function wp_admin_bar_my_sites_menu( $wp_admin_bar ) {
$blogname = $blog->blogname;
if ( ! $blogname ) {
$blogname = preg_replace( '#^(https?://)?(www.)?#', '', get_home_url() );
$blogname = preg_replace( '#^(https?://)?(www\.)?#', '', get_home_url() );
}
$menu_id = 'blog-' . $blog->userblog_id;

View File

@@ -202,7 +202,7 @@ function wp_maybe_load_embeds() {
return;
}
wp_embed_register_handler( 'youtube_embed_url', '#https?://(www.)?youtube\.com/(?:v|embed)/([^/]+)#i', 'wp_embed_handler_youtube' );
wp_embed_register_handler( 'youtube_embed_url', '#https?://(www\.)?youtube\.com/(?:v|embed)/([^/]+)#i', 'wp_embed_handler_youtube' );
/**
* Filters the audio embed handler callback.

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.9-alpha-60782';
$wp_version = '6.9-alpha-60783';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.