[wp-trac] [WordPress Trac] #25409: Update return documentation on get_attached_file() as only returning a string

WordPress Trac noreply at wordpress.org
Tue Sep 24 20:05:58 UTC 2013


#25409: Update return documentation on get_attached_file() as only returning a
string
--------------------------+------------------
 Reporter:  DrewAPicture  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.7
Component:  Inline Docs   |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------
Description changed by DrewAPicture:

Old description:

> As noted in [comment:15:ticket:25170], `get_attached_file()` returns the
> path to where an attachment ''should be'' and grokking the source shows
> no indication the function would ever return false.
>
> Attached patch updates the `get_attached_file()` phpdoc to reflect the
> above.

New description:

 As noted in [comment:15:ticket:25170], `get_attached_file()` returns the
 path to where an attachment ''should be'' and grokking the source shows no
 indication the function would ever return false on an "attachment that
 does not exist".

 Attached patch updates the `get_attached_file()` phpdoc to reflect the
 above.

--

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


More information about the wp-trac mailing list