[wp-trac] [WordPress Trac] #9536: update, and make better use of,
login and logout url functions
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 14 17:37:23 GMT 2009
#9536: update, and make better use of, login and logout url functions
-------------------------+--------------------------------------------------
Reporter: wnorris | Owner: ryan
Type: enhancement | Status: new
Priority: normal | Milestone: 2.8
Component: Security | Version: 2.8
Severity: normal | Keywords: has-patch needs-review
-------------------------+--------------------------------------------------
I've attached two diffs to this ticket. The first updates the
wp_login_url and wp_logout_url functions in two ways. It makes use of
add_query_arg() to ensure query parameters are escaped, and it adds a new
filter at the end of each method so that plugins can replace the default
URL location. You can already do this with site_url, but it requires a
lot more work to skip over all the calls to site_url that you don't care
about. This allow plugins to hook right in where they need to.
The second diff updates a number of other core files to actually make use
of the wp_login_url and wp_logout_url methods. This includes the two
included themes, comment templates, new user emails, and a few other
places.
All changes should be fully backwards compatible.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9536>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list