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

WordPress Trac noreply at wordpress.org
Mon May 12 01:38:19 UTC 2014


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

Comment (by rmccue):

 Oh, and to reproduce:

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

 Expected result: Always logged in as user 1.
 Actual result: Still uses cookie authentication.

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


More information about the wp-trac mailing list