[wp-trac] [WordPress Trac] #24417: get_the_post_format_url() should not escape data

WordPress Trac noreply at wordpress.org
Sat May 25 04:15:21 UTC 2013


#24417: get_the_post_format_url() should not escape data
--------------------------+-----------------------------
 Reporter:  tollmanz      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Post Formats  |    Version:  trunk
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Like `get_permalink()`, `get_the_post_format_url()` should not escape
 data. The responsibility of escaping the data should be placed on the
 calling function. An analogous situation in core is that `get_permalink()`
 does not escape the data and `the_permalink()` does. I think this pattern
 should continue in the `get_the_post_format_url()` and
 `the_post_format_url()` functions. It is very handy to have access to the
 rawest form of the data via `get_the_post_format_url()`.

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


More information about the wp-trac mailing list