[wp-trac] [WordPress Trac] #45779: probable issue in Plugin activation hook

WordPress Trac noreply at wordpress.org
Thu Dec 27 13:46:31 UTC 2018


#45779: probable issue in Plugin activation hook
--------------------------+------------------------------
 Reporter:  tazotodua     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by tazotodua):

 that can be confirmed, if we put this code in `my` function:



 {{{
 function my($network_wide)
 {
     $die=$network_wide || is_network_admin();
     file_put_contents(ABSPATH.'/aaa.txt', ($die ? "yes" : "no") ."\r\n",
 FILE_APPEND);
     if($die)
     {
        die("Activation from Network");
     }
 }


 }}}

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


More information about the wp-trac mailing list