WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » Bug in v2.0.5 adding language to tinymce for shortcodes addon

Bug in v2.0.5 adding language to tinymce for shortcodes addon

  • 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 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Bug in v2.0.5 adding language to tinymce for shortcodes addon’ is closed to new replies.
Skip to toolbar