[wp-trac] [WordPress Trac] #23334: Use the proper function to escape WP.org links

WordPress Trac noreply at wordpress.org
Thu Jan 31 03:34:14 UTC 2013


#23334: Use the proper function to escape WP.org links
----------------------------+--------------------------
 Reporter:  SergeyBiryukov  |       Type:  defect (bug)
   Status:  new             |   Priority:  normal
Milestone:  3.6             |  Component:  Formatting
  Version:                  |   Severity:  normal
 Keywords:  has-patch       |
----------------------------+--------------------------
 We use `esc_attr_e()` in some places:
 {{{
 <a href="<?php esc_attr_e( 'http://wordpress.org/' ); ?>"><?php _e(
 'WordPress' ); ?></a>
 }}}
 `esc_url( __( 'http://wordpress.org/' ) )` should be used instead.

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


More information about the wp-trac mailing list