Support » Plugin: Features by WooThemes » Bug Report – Wrong use of shortcode_atts

  • Hey guys,
    it seems you’ve forgotten to define all available attributes in the $default array for the shortcodes (function woothemes_features_shortcode, line 141 in woothemes-features-template.php), e.g. title => ”
    This way, wordpress deletes those attributes if you call the plugin via shortcode.

    [woothemes_features title=”Hello”] leads to no title.

    If you add the above line to the $defaults array, it works – So I guess, wordpress internally removes all attribues, whose keys don’t appear in the default-array.

    destro 🙂

Viewing 1 replies (of 1 total)
  • Thanks destroflyer,
    Also to be noted when using any of the ‘before’ or ‘after’ attributes, you must use “Text” tab in page editor (not “Visual”), when inputing ‘<‘ or ‘>’ they are converted to “gt” and “lt” (&_ _ 😉 throwing a wrench in your workaround. Hope this little tidbit will help others.

Viewing 1 replies (of 1 total)
  • The topic ‘Bug Report – Wrong use of shortcode_atts’ is closed to new replies.