[Bug report Fix] Shortcodes
-
Hi there!
Thank you for this awesome plugin.I’ve noticed that some shortcode attributes (like “overlayClose” and “overlayEscClose”) are not working. And after a couple of hours of digging I finally have found what’s wrong.
According to this WordPress Codex page about “add_shortcode” function (look in “Notes” section):
Shortcode attribute names are always converted to lowercase before they are passed into the handler function. Values are untouched.
So when “shortcode_atts” is combining default values and values provided in shortcode it throws away some of last ones.
To fix this you should make all names of attributes in lowercase (/include/shortcodes.php and /include/deprecated.php).
Take care!
- The topic ‘[Bug report Fix] Shortcodes’ is closed to new replies.