diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php
index 3822c61a7b..7c82229177 100644
--- a/wp-includes/formatting.php
+++ b/wp-includes/formatting.php
@@ -3063,13 +3063,12 @@ function wp_rel_callback( $matches, $rel ) {
* @return string Converted content.
*/
function wp_rel_nofollow( $text ) {
- // This is a pre save filter, so text is already escaped.
+ // This is a pre-save filter, so text is already escaped.
$text = stripslashes( $text );
- $rel = 'nofollow';
$text = preg_replace_callback(
'||i',
- function( $matches ) use ( $rel ) {
- return wp_rel_callback( $matches, $rel );
+ function( $matches ) {
+ return wp_rel_callback( $matches, 'nofollow' );
},
$text
);
@@ -3098,13 +3097,12 @@ function wp_rel_nofollow_callback( $matches ) {
* @return string Converted content.
*/
function wp_rel_ugc( $text ) {
- // This is a pre save filter, so text is already escaped.
+ // This is a pre-save filter, so text is already escaped.
$text = stripslashes( $text );
- $rel = 'nofollow ugc';
$text = preg_replace_callback(
'||i',
- function( $matches ) use ( $rel ) {
- return wp_rel_callback( $matches, $rel );
+ function( $matches ) {
+ return wp_rel_callback( $matches, 'nofollow ugc' );
},
$text
);
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 89a4d056ba..7dec2cbab7 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
-$wp_version = '5.3-beta2-46395';
+$wp_version = '5.3-beta2-46396';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.