[wp-trac] [WordPress Trac] #15265: PHP Notice undefined string offset in post.php

WordPress Trac wp-trac at lists.automattic.com
Sun Oct 31 08:44:02 UTC 2010


#15265: PHP Notice undefined string offset in post.php
--------------------------+-------------------------------------------------
 Reporter:  solarissmoke  |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  3.1            
 Severity:  minor         |    Keywords:                 
--------------------------+-------------------------------------------------
 I'm getting the following PHP Notice in debug mode when creating/editing
 posts:

 {{{
 Uninitialized string offset: 0 in \wp\wp-admin\includes\post.php on line
 1549
 }}}

 It's because some of the TinyMCE initArray options are empty strings.
 Suggest adding an extra check in line 1549's elseif.

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


More information about the wp-trac mailing list