[wp-trac] [WordPress Trac] #33723: Allow WP_Post on thumbnail functions

WordPress Trac noreply at wordpress.org
Tue Sep 8 10:46:20 UTC 2015


#33723: Allow WP_Post on thumbnail functions
------------------------------------+-------------------------
 Reporter:  Rahe                    |       Owner:  swissspidy
     Type:  enhancement             |      Status:  assigned
 Priority:  normal                  |   Milestone:  4.4
Component:  Post Thumbnails         |     Version:  2.9
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  docs
------------------------------------+-------------------------

Comment (by DrewAPicture):

 @swissspidy: The docs look pretty good. The only thing missing is that all
 of the functions that accept `$post = null` default to the global `$post`,
 therefore the parameter should be documented as optional, and mention that
 it defaults to the global `$post`.

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


More information about the wp-trac mailing list