[wp-trac] Re: [WordPress Trac] #10011: Use of add_theme_page() causes Wordpress on IIS to crash.

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 5 09:36:45 GMT 2009


#10011: Use of add_theme_page() causes Wordpress on IIS to crash.
--------------------------+-------------------------------------------------
 Reporter:  bforchhammer  |        Type:  defect (bug)
   Status:  new           |    Priority:  normal      
Milestone:  2.8           |   Component:  Plugins     
  Version:  2.7.1         |    Severity:  major       
 Keywords:  needs-patch   |  
--------------------------+-------------------------------------------------

Comment(by dd32):

 My only negitive point to the patch: Not only themes add items under
 there.

 Perhaps a helper function could be used:
 {{{
 function the_base($in) {
 $plugin = plugin_basename($in);
 if ( $plugin != $in )
 return $in;
 else
 return theme_basename($in); //No need to check this, a non-theme dir
 passes right through.
 }
 }}}
 and use that for all menu's.

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


More information about the wp-trac mailing list