Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: wpseo-functions.php
- ===================================================================
- --- wpseo-functions.php (revision 577)
- +++ wpseo-functions.php (revision 578)
- @@ -151,18 +151,18 @@
- }
- if ( strpos( $string, '%%' ) === false ) {
- - $string = preg_replace( '/\s\s+/',' ', $string );
- + $string = preg_replace( '/\s\s+/u',' ', $string );
- return trim( $string );
- }
- - if ( preg_match_all( '/%%cf_([^%]+)%%/', $string, $matches, PREG_SET_ORDER ) ) {
- + if ( preg_match_all( '/%%cf_([^%]+)%%/u', $string, $matches, PREG_SET_ORDER ) ) {
- global $post;
- foreach ($matches as $match) {
- $string = str_replace( $match[0], get_post_meta( $post->ID, $match[1], true), $string );
- }
- }
- - $string = preg_replace( '/\s\s+/',' ', $string );
- + $string = preg_replace( '/\s\s+/u',' ', $string );
- return trim( $string );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement