[wp-trac] [WordPress Trac] #23236: Add functions to format attributes
WordPress Trac
noreply at wordpress.org
Sat Jan 19 06:32:57 UTC 2013
#23236: Add functions to format attributes
-----------------------------+-----------------------------
Reporter: ryanve | Type: feature request
Status: new | Priority: normal
Milestone: Awaiting Review | Component: General
Version: | Severity: normal
Keywords: |
-----------------------------+-----------------------------
I'd like to see WP add functions for attributes. These would be extremely
useful and resuable for theme devs and internally. I've developed very
solid generic functions for this in [http://phat.airve.com phat] and would
be happy to make WP versions to the effect of:
{{{
wp_attrs( $array ) // converts array to attributes string
wp_attrs( $name, $value ) // formats attribute string
wp_attrs( $string ) // reformats attribute string
wp_parse_attrs( $string ) parses attributes into assoc array
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23236>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list