[wp-trac] [WordPress Trac] #9634: Filter on logut link + Diff
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 24 13:09:27 GMT 2009
#9634: Filter on logut link + Diff
--------------------------+-------------------------------------------------
Reporter: nicolagreco | Owner: nicolagreco
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.7.2
Component: Users | Version: 2.7.1
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
If i would like to add &cal=1 on every wp_logout() call i can't, cause the
$redirect_to is not passed by a filter in wp-login.php
Look at the diff file.
here is a workflow of that change
{{{
function force_gets($args) {
$args .= '&cal=1';
}
add_filter( 'wp_logout_link', 'force_gets' );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9634>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list