Conflict with WPML
-
Widget Logic has a conflict with the latest WPML plugin. The WPML team has recommended the following changes. Could these be included in the plugin?
1) The Widget Logic plugin author is loading domain with the load_plugin_textdomain in the wrong way in wp-content\plugins\widget-logic\widget_logic.php::15
load_plugin_textdomain( 'widget-logic', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );Instead it should be like this :
function widget_logic_load_textdomain() { load_plugin_textdomain( 'widget-logic', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); } add_action( 'init', 'widget_logic_load_textdomain' );2) Right after where he loads the doamin, he’s using gettext calls inside of the array for the description of the WP hook names he made. I’m not completely sure what he’s doing but this is affecting!? I suggest changing this:
$wl_load_points=array( 'plugins_loaded' => __( 'when plugin starts (default)', 'widget-logic' ), 'after_setup_theme' => __( 'after theme loads', 'widget-logic' ), 'wp_loaded' => __( 'when all PHP loaded', 'widget-logic' ), 'wp_head' => __( 'during page header', 'widget-logic' ) );Into this :
$wl_load_points=array( 'plugins_loaded' => 'when plugin starts (default)', 'after_setup_theme' => 'after theme loads', 'wp_loaded' => 'when all PHP loaded', 'wp_head' => 'during page header' );
The topic ‘Conflict with WPML’ is closed to new replies.