[wp-trac] [WordPress Trac] #58686: Fix docBlock of image_get_intermediate_size()

WordPress Trac noreply at wordpress.org
Sat Jul 1 23:08:58 UTC 2023


#58686: Fix docBlock of image_get_intermediate_size()
------------------------------+-----------------------
 Reporter:  crstauf           |       Owner:  audrasjb
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  6.3
Component:  Media             |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  docs
------------------------------+-----------------------
Changes (by audrasjb):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56122" 56122]:
 {{{
 #!CommitTicketReference repository="" revision="56122"
 Docs: Fix `image_get_intermediate_size()` docblock.

 The description of returned values in array was incorrect for
 `image_get_intermediate_size()`:
 - `$file` returns the filename of image, no path information
 - `$path` returns path relative to the uploads directory, not absolute

 Props crstauf, sccr410.
 Fixes #58686.
 See #57840.
 }}}

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


More information about the wp-trac mailing list