WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Bug in v2.0.5 adding language to tinymce for shortcodes addon (2 posts)

  1. wizzud
    Member
    Posted 1 year ago #

    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/

  2. Roy Ho
    Member
    Posted 1 year ago #

    Perhaps you want to post this here instead -> https://github.com/woothemes/woocommerce

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic