mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-03 16:50:13 +00:00
Docs: In various @return tags, list the expected type first, instead of false.
Follow-up to [46696], [47060], [49926], [49927], [49929]. See #51800. git-svn-id: https://develop.svn.wordpress.org/trunk@49963 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -6223,7 +6223,7 @@ function wp_get_attachment_url( $attachment_id = 0 ) {
|
||||
* @since 4.6.0
|
||||
*
|
||||
* @param int $post_id Optional. Attachment ID. Default is the ID of the global `$post`.
|
||||
* @return string|false False on failure. Attachment caption on success.
|
||||
* @return string|false Attachment caption on success, false on failure.
|
||||
*/
|
||||
function wp_get_attachment_caption( $post_id = 0 ) {
|
||||
$post_id = (int) $post_id;
|
||||
@@ -6256,7 +6256,7 @@ function wp_get_attachment_caption( $post_id = 0 ) {
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @param int $post_id Optional. Attachment ID. Default 0.
|
||||
* @return string|false False on failure. Thumbnail file path on success.
|
||||
* @return string|false Thumbnail file path on success, false on failure.
|
||||
*/
|
||||
function wp_get_attachment_thumb_file( $post_id = 0 ) {
|
||||
$post_id = (int) $post_id;
|
||||
@@ -6296,7 +6296,7 @@ function wp_get_attachment_thumb_file( $post_id = 0 ) {
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @param int $post_id Optional. Attachment ID. Default 0.
|
||||
* @return string|false False on failure. Thumbnail URL on success.
|
||||
* @return string|false Thumbnail URL on success, false on failure.
|
||||
*/
|
||||
function wp_get_attachment_thumb_url( $post_id = 0 ) {
|
||||
$post_id = (int) $post_id;
|
||||
|
||||
Reference in New Issue
Block a user