Make WordPress Core


Ignore:
Timestamp:
06/17/2026 11:34:55 AM (2 months ago)
Author:
SergeyBiryukov
Message:

Media: Make ::update_size() parameters consistent across image editors.

Includes:

  • Standardizing default values on null vs. false.
  • Updating the documentation to correct parameter types.
  • Adding missing parameter descriptions.

Follow-up to [22094].

Props Soean, mukesh27, SergeyBiryukov.
See #64897.

File:
1 edited

Legend:

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

    r61387 r62517  
    202202         * @since 3.5.0
    203203         *
    204          * @param int $width
    205          * @param int $height
     204         * @param int|null $width  Image width.
     205         * @param int|null $height Image height.
    206206         * @return true
    207207         */
Note: See TracChangeset for help on using the changeset viewer.