[wp-trac] Re: [WordPress Trac] #9915: Cannot activate plugin which override function from pluggable.php

WordPress Trac wp-trac at lists.automattic.com
Sat May 23 11:01:06 GMT 2009


#9915: Cannot activate plugin which override function from pluggable.php
--------------------------+-------------------------------------------------
 Reporter:  sirzooro      |        Owner:           
     Type:  defect (bug)  |       Status:  closed   
 Priority:  normal        |    Milestone:           
Component:  General       |      Version:  2.7.1    
 Severity:  normal        |   Resolution:  duplicate
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by dd32):

  * status:  reopened => closed
  * resolution:  => duplicate
  * milestone:  2.9 =>


Comment:

 Ah. I see the problem now.

 Yes, You *MUST* include function_exists() checks NO MATTER WHAT. (like
 Westi said)

 When plugins are being activated, they are includeded after the
 pluggables, (Under every version of WordPress, particularly in 2.5+) -
 there is nothing that can be done here, Which is why the function_exists
 check must be used regardless when overriding pluggables.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9915#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list