[wp-trac] [WordPress Trac] #49609: Minor code cleanup

WordPress Trac noreply at wordpress.org
Tue Mar 10 15:08:15 UTC 2020


#49609: Minor code cleanup
-------------------------------+-----------------------
 Reporter:  dontdream          |       Owner:  (none)
     Type:  enhancement        |      Status:  reopened
 Priority:  normal             |   Milestone:
Component:  Posts, Post Types  |     Version:
 Severity:  minor              |  Resolution:
 Keywords:  has-patch close    |     Focuses:
-------------------------------+-----------------------
Changes (by ocean90):

 * keywords:  has-patch => has-patch close


Comment:

 If no post is passed to `get_the_content()` it assumes that it's used in a
 context where all globals have been set up already. That's why it's using
 a simple `compact()` for the existing globals instead of the heavy
 `generate_postdata()` function.

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


More information about the wp-trac mailing list