diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 9159ae4c69..063e02115e 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -5243,7 +5243,7 @@ function links_add_target( $content, $target = '_blank', $tags = array( 'a' ) ) global $_links_add_target; $_links_add_target = $target; $tags = implode( '|', (array) $tags ); - return preg_replace_callback( "!<($tags)([^>]*)>!i", '_links_add_target', $content ); + return preg_replace_callback( "!<($tags)((\s[^>]*)?)>!i", '_links_add_target', $content ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index efdab6ce3c..ec5d7c9b1f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-48982'; +$wp_version = '5.6-alpha-48983'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.