1
0
Fork 0
forked from lino/radar-wp

Fix for wpml langages filter format.

This commit is contained in:
ekes 2019-05-01 11:00:07 +02:00
parent 2342ebb052
commit ff9f429ba3

View file

@ -54,6 +54,7 @@ class Squat_Radar_Widget extends WP_Widget {
$connector = new Squat_Radar_Connector(); $connector = new Squat_Radar_Connector();
$languages = apply_filters( 'wpml_active_languages', NULL); $languages = apply_filters( 'wpml_active_languages', NULL);
$languages = array_keys($languages);
$languages = array_merge($instance['url']['keys']['language'], (array) $languages); $languages = array_merge($instance['url']['keys']['language'], (array) $languages);
foreach ($languages as $language) { foreach ($languages as $language) {
try { try {