Changeset 62619 for trunk/src/wp-includes/media.php
- Timestamp:
- 07/01/2026 09:32:34 PM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/media.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r62615 r62619 17 17 * @since 4.7.0 18 18 * 19 * @see add_image_size() 20 * 19 21 * @global array $_wp_additional_image_sizes 20 22 * 21 23 * @return array Additional images size data. 24 * 25 * @phpstan-return array<string, array{ 26 * width: non-negative-int, 27 * height: non-negative-int, 28 * crop: array{ 'left'|'center'|'right', 'top'|'center'|'bottom' }|bool, 29 * }> 22 30 */ 23 31 function wp_get_additional_image_sizes() { … … 297 305 * @type string $1 The y crop position. Accepts 'top', 'center', or 'bottom'. 298 306 * } 307 * 308 * @phpstan-param non-negative-int $width 309 * @phpstan-param non-negative-int $height 310 * @phpstan-param array{ 'left'|'center'|'right', 'top'|'center'|'bottom' }|bool $crop 299 311 */ 300 312 function add_image_size( $name, $width = 0, $height = 0, $crop = false ) { … … 909 921 * @return array[] Associative array of arrays of image sub-size information, 910 922 * keyed by image size name. 911 */ 912 function wp_get_registered_image_subsizes() { 923 * 924 * @phpstan-return array<string, array{ 925 * width: non-negative-int, 926 * height: non-negative-int, 927 * crop: array{ 'left'|'center'|'right', 'top'|'center'|'bottom' }|bool, 928 * }> 929 */ 930 function wp_get_registered_image_subsizes(): array { 913 931 $additional_sizes = wp_get_additional_image_sizes(); 914 932 $all_sizes = array();
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)