[wp-trac] Re: [WordPress Trac] #9634: Filter on logout link + Diff

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 24 21:40:06 GMT 2009


#9634: Filter on logout 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  
--------------------------+-------------------------------------------------

Comment(by nicolagreco):

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

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9634#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list