Reply To: version 1.7. not working for me

Home Forums Lite Version version 1.7. not working for me Reply To: version 1.7. not working for me

Martina Bartik

OK now there’s something I found out:
there’s a problem with polylang.
it can be solved if you change the line nr. 6 in file /wp-content/plugins/wp-masonry-layout/includes/client/wml_container.php to fit polylang language settings as noted below:

// @BAM 2016-07-31
// orig. incorrect, commented out: 
// $link = admin_url('admin-ajax.php?action=wml_load_posts&shortcodeId='.$shortcodeId);
// corrected to fit polylang language settings:
$currentWebsiteLanguage = pll_current_language();
$link = admin_url('admin-ajax.php?lang='.$currentWebsiteLanguage.'&action=wml_load_posts&shortcodeId='.$shortcodeId);
// @BAM end correction
$containerDivId	= 'wmle_container';

if this is done, all seems to work well with polylang – could you please integrate this rather quickly in a bugfix version?
Thank you!