WordPress.org

Forums

Start Point
Characters in 3-Column Feature area (2 posts)

  1. Randy W Brown
    Member
    Posted 1 year ago #

    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..

  2. pankaj064
    Blocked
    Posted 1 year ago #

    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: http://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 );
    }

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.