[wp-trac] [WordPress Trac] #9336: E_NOTICE undefined offset in wp-includes/theme.php

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 15 06:43:45 GMT 2009


#9336: E_NOTICE undefined offset in wp-includes/theme.php
----------------------------+-----------------------------------------------
 Reporter:  Mittineague     |       Owner:            
     Type:  task (blessed)  |      Status:  new       
 Priority:  lowest          |   Milestone:  Unassigned
Component:  Themes          |     Version:  2.7.1     
 Severity:  trivial         |    Keywords:            
----------------------------+-----------------------------------------------
 With my Error Reporting plugin I get

 E_NOTICE
 Undefined offset:  1 at /home/mittineague/mittineague.com/blog/wp-
 includes/theme.php (212)
 timed at 15-Mar-2009 01:53:41

 eg. (several similar lines)

 {{{if ( preg_match( '|Author URI:(.*)$|mi', $theme_data, $author_uri ) )
                 $author_uri = clean_url( trim( $author_uri[1]) );}}}

 preg_match returns FALSE upon an error, or 0 or 1 $matches found. It is
 possible for no $matches to be found causing $matches[1] to be undefined
 using the conditional if ( preg_match() )

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9336>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list