Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all articles
Browse latest Browse all 102102

wizzud on "[Plugin: WooCommerce - excelling eCommerce] Bug in v2.0.5 adding language to tinymce for shortcodes addon"

$
0
0

If you are running WooCommerce (I'm on v2.0.5) and Ultimate TinyMCE, you may have noticed that a number of TinyMCE's addons are not resolving their language replacements, eg. {#style_dlg.title} in the Edit CSS Style dialog.

This stems from the way in which WooCommerce adds the language for the WooCommerceShortcodes addon to TinyMCE.

In wp-content/plugins/woocommerce/admin/woocommerce-admin-functions.php, at line 319, there is a woocommerce_add_tinymce_lang() function which is run on the 'mce_external_languages' filter. Instead of ...

$arr[] = $woocommerce->plugin_path() . '/assets/js/admin/editor_plugin_lang.php';

...the assignment within that function should be...

$arr['WooCommerceShortcodes'] = $woocommerce->plugin_path() . '/assets/js/admin/editor_plugin_lang.php';

The code that applies the 'mce_external_languages' filters - _WP_Editors::editor_settings() - expects the returned array to be associative, with the plugin name being the key.

http://wordpress.org/extend/plugins/woocommerce/


Viewing all articles
Browse latest Browse all 102102

Trending Articles