Plugin Directory

Changeset 3333647


Ignore:
Timestamp:
07/24/2025 12:53:51 PM (8 months ago)
Author:
bdeleasa
Message:

Changing the $size parameter to the correct options which are string or array.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-random-post-thumbnails/trunk/classes/class-wprpt.php

    r3219372 r3333647  
    262262     * @param array $attr Attributes for the image markup.
    263263     * @param object $attachment Image attachment post.
    264      * @param ?string $size Requested image size.
     264     * @param string|array $size Requested image size.
    265265     * @return array
    266266     */
    267     function add_image_attributes( array $attr, object $attachment, ?string $size ) : array
     267    function add_image_attributes( array $attr, object $attachment, string|array $size ) : array
    268268    {
    269269        $post_id                = get_the_ID();
Note: See TracChangeset for help on using the changeset viewer.