• Hi,

    i just had a challenge with the plugin “shortcode ui”, which i really like (great job), in combination with the also quite cool plugin “qTranslate X”.

    While “qTranslate X” is running, attributes will not be resolved. I found the reason in the following lines of code of your “shortcode-maker.php:

    444
    629
    687
    748

    U do unserialize($sc_meta['_bascsh_attr'][0]), but with qTranslate $sc_meta['_bascsh_attr'][0] is already a valid Array, so those lines fail.
    I changed it to $externals = (is_array($sc_meta['_bascsh_attr'][0]))?$sc_meta['_bascsh_attr'][0]:unserialize($sc_meta['_bascsh_attr'][0]);
    and $shortcode_attributes = (is_array($sc_meta['_bascsh_attr'][0]))?$sc_meta['_bascsh_attr'][0]:unserialize($sc_meta['_bascsh_attr'][0]); so it works for me for now. Dunno, if it can cause other problems later. Maybe this can be fixed in a future release 🙂 (THX in advance)
    Lines 449 – 451 are now throwing a notice due to unset variables, but this doesnt break the plugin.

    Best regards

    aenyway

    https://wordpress.org/plugins/shortcodes-ui/

The topic ‘conflict with qTranslate X’ is closed to new replies.