[wp-trac] Re: [WordPress Trac] #9393: PHP notices for WordPress 2.8

WordPress Trac wp-trac at lists.automattic.com
Sun May 31 23:51:46 GMT 2009


#9393: PHP notices for WordPress 2.8
-------------------------------------+--------------------------------------
 Reporter:  Viper007Bond             |        Type:  defect (bug)    
   Status:  new                      |    Priority:  lowest          
Milestone:  2.8                      |   Component:  Warnings/Notices
  Version:  2.8                      |    Severity:  minor           
 Keywords:  has-patch tested commit  |  
-------------------------------------+--------------------------------------

Comment(by dd32):

 > When DB Cache plugin is active, WP shows following warning many times:

 Thats a issue in the DB Cache plugin, not WordPress.

 Its probably got code such as this:
 {{{
 if ( $this->options['debug'] ) {
 ...
 }}}

 Which is wrong, Really, it should be written like this:
 {{{
 if ( isset($this->options['debug']) && $this->options['debug'] ) {
 or just
 if ( !empty($this->options['debug']) ) {
 }}}

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


More information about the wp-trac mailing list