[wp-trac] [WordPress Trac] #24330: When adding the post_formats_compat the_content filter a post ID argument should be included

WordPress Trac noreply at wordpress.org
Sun Jun 21 10:29:08 UTC 2020


#24330: When adding the post_formats_compat the_content filter a post ID argument
should be included
--------------------------+---------------------
 Reporter:  gcorne        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.6
Component:  Post Formats  |     Version:  3.6
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |
--------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"48113" 48113]:
 {{{
 #!CommitTicketReference repository="" revision="48113"
 Posts, Post Types: Simplify `test_setup_postdata_loop()`.

 The important part here is calling `the_content()` after setting up post
 data for another post without updating global `$post`.

 The `foreach()` loop is not necessary.

 Follow-up to [UT1289].

 See #47824, #24330.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/24330#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list