Make WordPress Core

Changeset 58050


Ignore:
Timestamp:
04/26/2024 03:25:54 PM (2 years 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.

Reviewed by jorbin.
Merges [58049] to the 6.5 branch.

Props yguyon.
Fixes #60980.

Location:
branches/6.5
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/6.5

  • branches/6.5/src/wp-includes/class-avif-info.php

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

    r57737 r58050  
    15231523                                        IMAGETYPE_AVIF,
    15241524                                        'width="128" height="128"',
     1525                                        'mime' => 'image/avif',
     1526                                ),
     1527                        ),
     1528                        // Grid AVIF.
     1529                        array(
     1530                                DIR_TESTDATA . '/images/avif-alpha-grid2x1.avif',
     1531                                array(
     1532                                        199,
     1533                                        200,
     1534                                        IMAGETYPE_AVIF,
     1535                                        'width="199" height="200"',
    15251536                                        'mime' => 'image/avif',
    15261537                                ),
  • branches/6.5/tests/phpunit/tests/image/editor.php

    r57524 r58050  
    449449                        ),
    450450                        array(
     451                                DIR_TESTDATA . '/images/avif-alpha-grid2x1.avif',
     452                                array(
     453                                        'width'        => 199,
     454                                        'height'       => 200,
     455                                        'bit_depth'    => 8,
     456                                        'num_channels' => 4,
     457                                ),
     458                        ),
     459                        array(
    451460                                DIR_TESTDATA . '/images/colors_hdr_p3.avif',
    452461                                array(
Note: See TracChangeset for help on using the changeset viewer.