[wp-trac] [WordPress Trac] #11878: Null value passed to apply_filters when get_post_class() is called without parameters.

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 25 23:41:19 UTC 2010


#11878: Null value passed to apply_filters when get_post_class() is called without
parameters.
--------------------------+-------------------------------------------------
 Reporter:  Utkarsh       |       Owner:  nacin    
     Type:  defect (bug)  |      Status:  accepted 
 Priority:  low           |   Milestone:  3.0      
Component:  General       |     Version:  2.9      
 Severity:  minor         |    Keywords:  has-patch
--------------------------+-------------------------------------------------
Changes (by nacin):

  * owner:  => nacin
  * status:  new => accepted


Comment:

 It looks like we should just change $post_id to $post->ID in the filter.

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


More information about the wp-trac mailing list