WordPress.org

Support

Support » Plugins and Hacks » Bug Report – Wrong use of shortcode_atts

Bug Report – Wrong use of shortcode_atts

  • destroflyer
    Member

    @destroflyer

    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.

    Example:
    [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.

    Yours,
    destro 🙂

    http://wordpress.org/extend/plugins/features-by-woothemes/

Viewing 1 replies (of 1 total)
  • ICEbaby86
    Member

    @icebaby86

    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.