[wp-trac] [WordPress Trac] #28212: determine_current_user filter with priority <10 gets overridden

WordPress Trac noreply at wordpress.org
Tue Mar 24 09:06:55 UTC 2015


#28212: determine_current_user filter with priority <10 gets overridden
--------------------------+------------------------------
 Reporter:  rmccue        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  3.9
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by skeemer):

 There's an additional condition with a lower priority being ignored if it
 determines that there should not be a user. With the following filter
 added, you can still be logged in.

 {{{
 add_filter( 'determine_current_user', function ( $user ) {
   return 0;
 }, 0 );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28212#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list