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:
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user