Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #41036, comment 2


Ignore:
Timestamp:
06/21/2017 10:57:21 PM (8 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41036, comment 2

    initial v1  
    1717
    1818I did finally find a solution, but it involved not using the wp_redirect call, replacing it with a header call instead.  This skips the filters and then the plugin started to work again. You can see the code snippet below, with comments to the right on what was there originally and what I just changed.
    19 
     19{{{
    2020         $user_id = get_current_user_id();
    2121         if($user_id == 0)
     
    3131           return; 
    3232           }
    33 
     33}}}
    3434Could there have been something with the filters in the upgrade?
    35 
    36 
    37 
    38 
    39 
    40