[wp-trac] [WordPress Trac] #23237: Add tag function to format markup

WordPress Trac noreply at wordpress.org
Sat Jan 19 06:46:55 UTC 2013


#23237: Add tag function to format markup
-----------------------------+-------------------------
 Reporter:  ryanve           |       Type:  enhancement
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:                   |   Severity:  normal
 Keywords:                   |
-----------------------------+-------------------------
 Related to #23236 I'd like to add a generic function for making html tags:

 {{{
 wp_tag( $tagname, $attrs, $inner_html ) // returns an html tag
 wp_tag_e( $tagname, $attrs, $inner_html ) // echoes an html tag
 }}}

 $attrs could be an array|string, and the tag should only close if
 $inner_html is defined, like tag() in [http://phat.airve.com phat].

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23237>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list