WordPress.org

Support

Support » Plugins and Hacks » CMS Tree Page View » [Resolved] [Plugin: CMS Tree Page View] Broken for Languages with a '-' in

[Resolved] [Plugin: CMS Tree Page View] Broken for Languages with a '-' in

  • my problem was that no posts were showing for chinese simplified or chinese traditional.

    after a bit of debugging I noticed it was because the cms_tpv_meta_wpml_language field was being set to “zh” instead of “zh-hans” or “zh-hant”

    the easy fix was to change the regexp to respect ‘-‘s in the css class

    Here is my diff


    plugins/cms-tree-page-view/scripts/cms_tree_page_
    - var re = /cms_tpv_switch_language_code_([\w]+)/;
    + var re = /cms_tpv_switch_language_code_([\w-]+)/;

    http://wordpress.org/extend/plugins/cms-tree-page-view/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: CMS Tree Page View] Broken for Languages with a '-' in’ is closed to new replies.
Skip to toolbar