Ticket #2103: meta-2103.patch
File meta-2103.patch, 1.3 KB (added by , 8 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-codexify/wporg-bbp-codexify.php
49 49 * @return string 50 50 */ 51 51 public static function convert_base_wiki_link( $matches ) { 52 $ matches[1] = preg_replace( '/[\s]+/', '', trim( $matches[1] ) );53 return '<a href="' . esc_url( self::BASE_URI . strtr( $matches[1], ' ', '_' )) . '">' . esc_html( $matches[1] ) . '</a>';52 $path = preg_replace( '/[\s]+/', '_', trim( $matches[1] ) ); 53 return '<a href="' . esc_url( self::BASE_URI . $path ) . '">' . esc_html( $matches[1] ) . '</a>'; 54 54 } 55 55 56 56 /** … … 61 61 * @return string 62 62 */ 63 63 public static function convert_vbar_wiki_link( $matches ) { 64 $ matches[1]= preg_replace( '/[\s]+/', '_', trim( $matches[1] ) );65 return '<a href="' . esc_url( self::BASE_URI . strtr( $matches[1], ' ', '_' )) . '">' . esc_html( $matches[2] ) . '</a>';64 $path = preg_replace( '/[\s]+/', '_', trim( $matches[1] ) ); 65 return '<a href="' . esc_url( self::BASE_URI . $path ) . '">' . esc_html( $matches[2] ) . '</a>'; 66 66 } 67 67 } } 68 68