Advertisement
Guest User

wpseo-functions.php

a guest
May 24th, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.85 KB | None | 0 0
  1. Index: wpseo-functions.php
  2. ===================================================================
  3. --- wpseo-functions.php (revision 577)
  4. +++ wpseo-functions.php (revision 578)
  5. @@ -151,18 +151,18 @@
  6.     }
  7.    
  8.     if ( strpos( $string, '%%' ) === false ) {
  9. -       $string = preg_replace( '/\s\s+/',' ', $string );
  10. +       $string = preg_replace( '/\s\s+/u',' ', $string );
  11.         return trim( $string );
  12.     }
  13.  
  14. -   if ( preg_match_all( '/%%cf_([^%]+)%%/', $string, $matches, PREG_SET_ORDER ) ) {
  15. +   if ( preg_match_all( '/%%cf_([^%]+)%%/u', $string, $matches, PREG_SET_ORDER ) ) {
  16.         global $post;
  17.         foreach ($matches as $match) {
  18.             $string = str_replace( $match[0], get_post_meta( $post->ID, $match[1], true), $string );
  19.         }
  20.     }
  21.    
  22. -   $string = preg_replace( '/\s\s+/',' ', $string );
  23. +   $string = preg_replace( '/\s\s+/u',' ', $string );
  24.     return trim( $string );
  25.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement