WordPress中文引号

前几天迁移了服务器,Wordpress又把英文引号改为中文引号了,太坑了。。又Google了N久,特此记录。

把以下几处$curl开头的都注释掉即可, 约在280行附近。

else if empty$no_texturize_shortcodes_stack&& empty($no_texturize_tags_stack){

                        // This is neither a delimiter, nor is this content inside of no_texturize pairs.  Do texturize.

                        //$curl = str_replace( $static_characters, $static_replacements, $curl );

if ( false !== strpos( $curl, "'" ) ) {
                                //$curl = preg_replace( $dynamic_characters['apos'], $dynamic_replacements['apos'], $curl );
}
if ( false !== strpos( $curl, '"' ) ) {
                                //$curl = preg_replace( $dynamic_characters['quote'], $dynamic_replacements['quote'], $curl );
}
if ( false !== strpos( $curl, '-' ) ) {
                                //$curl = preg_replace( $dynamic_characters['dash'], $dynamic_replacements['dash'], $curl );
}

Leave a Reply

Your email address will not be published. Required fields are marked *

twenty − 16 =