• MrOG

    (@mrgrownupgeek)


    Any special characters (“,’, etc) show with \\ in front of it .. ie: My Aunt’s blog shows as My Aunt\\s blog ..
    Using escape codes works until the next time you view the 3-Column Feature Area settings, when the escape code is automatically converted back to the original character, and it then appears wrong on the blog..

Viewing 1 replies (of 1 total)
  • Reason: This problem arises because of stripslashes — Un-quotes a quoted string.
    If magic_quotes_sybase is on (it was on by default before PHP 5.4), no backslashes are stripped off but two apostrophes are replaced by one instead. Read here for more: https://in1.php.net/stripslashes
    Solution: Place the following code in your function.php file. or in your child theme’s function.php.

    //stripslashes issue
    if ( get_magic_quotes_gpc() ) {
        $_POST      = array_map( 'stripslashes_deep', $_POST );
        $_GET       = array_map( 'stripslashes_deep', $_GET );
        $_COOKIE    = array_map( 'stripslashes_deep', $_COOKIE );
        $_REQUEST   = array_map( 'stripslashes_deep', $_REQUEST );
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Characters in 3-Column Feature area’ is closed to new replies.