WordPress.org

Make WordPress Core

Changeset 49017


Ignore:
Timestamp:
09/20/2020 02:03:17 PM (12 months ago)
Author:
johnbillion
Message:

Media: Correct some types for attachment ID parameters passed to functions and filters.

See #47364, #50768

File:
1 edited

Legend:

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

    r48905 r49017  
    918918 * @since 2.9.0
    919919 *
    920  * @param string $attachment_id Attachment ID.
     920 * @param int    $attachment_id Attachment ID.
    921921 * @param string $mime_type     Image mime type.
    922922 * @param string $size          Optional. Image size. Default 'full'.
     
    952952         *
    953953         * @param resource|GdImage $image         Current image.
    954          * @param string           $attachment_id Attachment ID.
     954         * @param int              $attachment_id Attachment ID.
    955955         * @param string           $size          Image size.
    956956         */
     
    975975 * @access private
    976976 *
    977  * @param string $attachment_id Attachment ID.
     977 * @param int    $attachment_id Attachment ID.
    978978 * @param string $size          Optional. Image size. Default 'full'.
    979979 * @return string|false File path or url on success, false on failure.
     
    997997                 *
    998998                 * @param string $path          Path to the current image.
    999                  * @param string $attachment_id Attachment ID.
     999                 * @param int    $attachment_id Attachment ID.
    10001000                 * @param string $size          Size of the image.
    10011001                 */
     
    10121012         *
    10131013         * @param string $image_url     Current image URL.
    1014          * @param string $attachment_id Attachment ID.
     1014         * @param int    $attachment_id Attachment ID.
    10151015         * @param string $size          Size of the image.
    10161016         */
     
    10241024     *
    10251025     * @param string|bool $filepath      File path or URL to current image, or false.
    1026      * @param string      $attachment_id Attachment ID.
     1026     * @param int         $attachment_id Attachment ID.
    10271027     * @param string      $size          Size of the image.
    10281028     */
     
    10361036 * @access private
    10371037 *
    1038  * @param string $attachment_id Attachment ID.
     1038 * @param int $attachment_id Attachment ID.
    10391039 * @return string|false New file path on success, false on failure.
    10401040 */
Note: See TracChangeset for help on using the changeset viewer.