[wp-trac] [WordPress Trac] #17562: esc_url() printed by the_permalink()
WordPress Trac
noreply at wordpress.org
Thu Feb 28 18:56:40 UTC 2013
#17562: esc_url() printed by the_permalink()
---------------------------------+---------------------
Reporter: mfields | Owner: nacin
Type: enhancement | Status: closed
Priority: normal | Milestone: 3.6
Component: Template | Version: 3.2
Severity: normal | Resolution: fixed
Keywords: has-patch 3.4-early |
---------------------------------+---------------------
Changes (by nacin):
* owner: => nacin
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"23527"]:
{{{
#!CommitTicketReference repository="" revision="23527"
Automatically esc_url() the URL echoed by the_permalink().
This makes the_permalink() useful, rather than needing to do `echo
esc_url( get_permalink() )` to get proper encoding of ampersands, etc.
This will not double-encode when esc_url() has already been applied to the
filter here, but that code can now be removed.
props mfields.
fixes #17562.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17562#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list