#23334 closed defect (bug) (fixed)
Use the proper function to escape WP.org links
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.6 |
| Component: | Formatting | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
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.
Attachments (1)
Change History (5)
SergeyBiryukov — 4 months ago
comment:1
SergeyBiryukov — 4 months ago
comment:2
DrewAPicture — 4 months ago
+1, 23334.patch looks good to me.
comment:3
SergeyBiryukov — 3 months ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 23413:
comment:4
SergeyBiryukov — 3 months ago
In 23455:
Note: See
TracTickets for help on using
tickets.

Related: #23266