Make WordPress Core


Ignore:
Timestamp:
06/21/2022 11:16:09 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for WP_Image_Editor::save() and related functions.

Includes:

  • Documenting the returned array using hash notation.
  • Adding a @since note for the $filesize value being included in the returned array.

This affects:

  • wp_generate_attachment_metadata()
  • wp_get_attachment_metadata()
  • WP_Image_Editor::save()
  • WP_Image_Editor_GD::save() and ::_save()
  • WP_Image_Editor_Imagick::save() and ::_save()

Follow-up to [22094], [22619], [52837], [53546].

See #55646.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r53543 r53547  
    65096509 *
    65106510 * @since 2.1.0
     6511 * @since 6.0.0 The `$filesize` value was added to the returned array.
    65116512 *
    65126513 * @param int  $attachment_id Attachment post ID. Defaults to global $post.
Note: See TracChangeset for help on using the changeset viewer.