Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Borgtex

    (@borgtex)

    Hey! sorry for the late response

    After checking further, I think it only happens for the theme I’m using or due to another plugin as gtsiokos suggested, and only when using it to control sidebar visibility; works ok for the widgets.
    Thanks for your help, anyway.

    Thread Starter Borgtex

    (@borgtex)

    Oh I see. I suppose i’ll have to look into the source code to find the problem with the ajax call and make the corrections to make it work for my installation.

    Thanks anyway

    You’ll have to edit two files in /wp-content/plugins/baw-manual-related-posts/inc/

    bothend-noajax.inc.php

    comment or delete this block of code (lines 111 to 116):

    if ( isset( $sitepress ) && null === $langs ) {
    $langs = $sitepress->get_languages( “en’ AND active=’1”);
    $codes = wp_list_pluck( $langs, ‘code’ );
    $langs = wp_list_pluck( $langs, ‘default_locale’ );
    $langs = array_combine( $codes, $langs );
    }

    setting_fields.inc.php

    comment or remove this code (lines 39 to 43)

    if ( isset( $sitepress ) ) {
    $langs = $sitepress->get_languages( “en’ AND active=’1” );
    } else {
    $langs = array( array( ‘default_locale’=>get_locale() ) );
    }

    an put this one instead:
    $langs = array( array( ‘default_locale’=>get_locale() ) );

    Don’t worry about the deleted code. It has an error in the query (maybe it worked in previous wordpress versions) so it always returns an empty array.

Viewing 3 replies - 1 through 3 (of 3 total)