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

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 15 12:12:27 GMT 2009


#9336: E_NOTICE undefined offset in wp-includes/theme.php
----------------------------+-----------------------------------------------
 Reporter:  Mittineague     |       Owner:                 
     Type:  task (blessed)  |      Status:  new            
 Priority:  lowest          |   Milestone:  2.8            
Component:  Themes          |     Version:  2.7.1          
 Severity:  trivial         |    Keywords:  has-patch theme
----------------------------+-----------------------------------------------
Changes (by filosofo):

  * keywords:  => has-patch theme
  * milestone:  Unassigned => 2.8


Comment:

 Replying to [comment:2 DD32]:
 > Changing the regex's to (.+) should fix this possibility?

 No, because if you had for example just "Theme URI:" the parentheses would
 capture nothing and put it in {{{$theme_uri[1]}}}, avoiding the undefined
 notice.  This happens when there's no Theme URI line whatsoever; the
 preg_match returns false, but later on the $theme_uri[1] is used.

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


More information about the wp-trac mailing list