[wp-trac] [WordPress Trac] #14275: excerpt_more filter does not follow $post even after setup_postdata($post)

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 22 11:46:56 UTC 2010


#14275: excerpt_more filter does not follow $post even after setup_postdata($post)
--------------------------+-------------------------------------------------
 Reporter:  jimmynguyc    |        Owner:                 
     Type:  defect (bug)  |       Status:  closed         
 Priority:  normal        |    Milestone:  Awaiting Review
Component:  Formatting    |      Version:  3.0            
 Severity:  minor         |   Resolution:  worksforme     
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by sirono):

  * status:  new => closed
  * resolution:  => worksforme
  * severity:  normal => minor


Comment:

 This is because setup-postdata() doesn't set the global $post variable.
 this is done in WP_Query().the_post();

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


More information about the wp-trac mailing list