WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #43869, comment 5


Ignore:
Timestamp:
09/23/2018 03:33:09 PM (10 months ago)
Author:
tazotodua
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43869, comment 5

    v2 v3  
    1414the problem is fixed.  Will that be accepted as patch or it has negative effects (what's more, that check can be added directly in `wp_set_current_user` function) ? 
    1515
    16 How to overcome the problem, as many plugins call those functions before `plugins_loaded` hook, and our dashboard pages are broken? at this moment, i use this as a "temporary solution":
    17 
    18 {{{add_action('set_current_user', function(){     if(!did_action('plugins_loaded'))  $GLOBALS['current_user']=null;     } );}}}
    19 
     16How to overcome the problem, as many plugins call those functions before `plugins_loaded` hook, and our dashboard pages are broken?