Make WordPress Core

Changeset 58049

Timestamp:
04/26/2024 03:00:03 PM (3 months ago)
Author:
adamsilverstein
Message:

Media: fix potential error in class-avif-info.php::get_item_features().

Import upstream fix from libavifinfo, correcting a potential fatal error.

Props yguyon.
Fixes #60980.

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-avif-info.php

    r57524 r58049  
    176176          continue;
    177177        }
    178         $status = get_item_features( $tile->tile_item_id, $tile_depth + 1 );
     178        $status = get_item_features( $tile->tile_item_id, $tile_depth + 1 );
    179179        if ( $status != NOT_FOUND ) {
    180180          return $status;
  • trunk/tests/phpunit/tests/functions.php

    r57987 r58049  
    15231523                    IMAGETYPE_AVIF,
    15241524                    'width="128" height="128"',
     1525
     1526
     1527
     1528
     1529
     1530
     1531
     1532
     1533
     1534
     1535
    15251536                    'mime' => 'image/avif',
    15261537                ),
  • trunk/tests/phpunit/tests/image/editor.php

    r57524 r58049  
    449449            ),
    450450            array(
     451
     452
     453
     454
     455
     456
     457
     458
     459
    451460                DIR_TESTDATA . '/images/colors_hdr_p3.avif',
    452461                array(
Note: See TracChangeset for help on using the changeset viewer.