Changes between Version 2 and Version 3 of Ticket #43869, comment 5
- Timestamp:
- 09/23/2018 03:33:09 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #43869, comment 5
v2 v3 14 14 the 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) ? 15 15 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 16 How to overcome the problem, as many plugins call those functions before `plugins_loaded` hook, and our dashboard pages are broken?