• Resolved Starlord

    (@aqif-majid)


    to enable script in site the faq says in option-functions.php comment in line 534 like this
    //$newinput[$k] = wp_filter_post_kses($v);

    Where and how to comment this initially line no 534 contains
    <?php if($desc != ”) { ?>
    where to comment it there. I tried to put it like
    //$newinput[$k] = wp_filter_post_kses($v); <?php if($desc != ”) { ?>
    and also like
    <?php if($desc != ”) { ?> //$newinput[$k] = wp_filter_post_kses($v);
    but it desnt work can u please help me.
    Where am i doing wrong

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Richie KS

    (@rkcorp)

    should be line 634 in lib/functions/option-functions.php, search for line like this. and edit as below

    //validate all options
    function meso_validate_settings($input) {
    global $meso_options,$wp_cats2,$wp_pages;
    $option_name = MESO_OPTION . '_theme_options';
    $newinput = get_option( $option_name );
    foreach($input as $k => $v) {
    $newinput[$k] = trim($v);
    //$newinput[$k] = wp_filter_post_kses($v);
    }
    return $newinput;
    }

    the edited code
    //$newinput[$k] = wp_filter_post_kses($v);

    Thread Starter Starlord

    (@aqif-majid)

    thankyou so much it worked but i am still getting error in opera mini in adsense while i checked other websites they were working fine even in opera mini

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error Enabling Script’ is closed to new replies.