diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 43d38734da..e6aa1b8cfb 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -1691,7 +1691,7 @@ class WP_MatchesMapRegex { */ function callback($matches) { $index = intval(substr($matches[0], 9, -1)); - return ( isset( $this->_matches[$index] ) ? $this->_matches[$index] : '' ); + return ( isset( $this->_matches[$index] ) ? urlencode($this->_matches[$index]) : '' ); } }