[wp-trac] [WordPress Trac] #12078: Warning : in_array Invalid argument in wp-includes/post.php on line 1997

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 29 17:24:23 UTC 2010


#12078: Warning : in_array Invalid argument in wp-includes/post.php on line 1997
--------------------------+-------------------------------------------------
 Reporter:  firebird75    |       Owner:  ryan     
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.0      
Component:  Permalinks    |     Version:  2.9.1    
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
Changes (by nacin):

  * keywords:  => has-patch
  * owner:  => ryan
  * component:  General => Permalinks
  * milestone:  Unassigned => 3.0


Comment:

 Looking through the rest of the code the change looks correct without any
 implications. Above that:

 {{{
 $feeds = $wp_rewrite->feeds;
 if ( !is_array($feeds) )
     $feeds = array();
 }}}

 And a bunch of {{{ $post_name_check || in_array($slug, $feeds) }}} between
 that line and this as well.

 Patch forthcoming.

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


More information about the wp-trac mailing list