[wp-trac] Re: [WordPress Trac] #5750: New Dashboard Interface

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 4 14:01:05 GMT 2008


#5750: New Dashboard Interface
-------------------------------------+--------------------------------------
 Reporter:  mdawaffe                 |        Owner:  mdawaffe
     Type:  enhancement              |       Status:  assigned
 Priority:  normal                   |    Milestone:  2.5     
Component:  Administration           |      Version:          
 Severity:  normal                   |   Resolution:          
 Keywords:  has-patch needs-testing  |  
-------------------------------------+--------------------------------------
Comment (by darkdragon):

 Replying to [comment:7 ryan]:
 > Some widgets define their control and display functions within their
 init function.  Lame, but it seems to be fairly common.

 I'm going to start a campaign to stop that behavior, as it is quite
 annoying. I think I posted my thoughts to wp-hackers, but I doubt anyone
 responded.

 So basically what you are saying is that when the *_init() is called more
 than once, PHP is trying to compile the internal functions more than once?
 That seems odd, PHP should realize that the functions have already been
 compiled and not compile them again. However, the behavior for having
 functions inside of functions might be undefined to the compiler, so might
 not realize that it already compiled the functions or doesn't need to
 compile them again. Or whatever.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5750#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list