Opened 4 years ago

Closed 4 years ago

#9634 closed defect (bug) (invalid)

Filter on logout link + Diff

Reported by: nicolagreco Owned by: nicolagreco
Priority: normal Milestone:
Component: Users Version: 2.7.1
Severity: normal Keywords: has-patch
Cc:

Description

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' );

Attachments (1)

logoutlink-filter.patch (347 bytes) - added by nicolagreco 4 years ago.

Download all attachments as: .zip

Change History (4)

  • Summary changed from Filter on logut link + Diff to Filter on logout link + Diff

another example could be

function force_gets($args) {

global $current_user

if ( 2 != (int)$current_user->ID )

$args .= '&user=2';

}
add_filter( 'wp_logout_link', 'force_gets' );

  • Milestone 2.7.2 deleted
  • Resolution set to invalid
  • Status changed from new to closed

there is a logout_url filter in trunk.

Note: See TracTickets for help on using tickets.