Make WordPress Core


Ignore:
Timestamp:
06/04/2024 10:21:11 AM (12 months ago)
Author:
ellatrix
Message:

REST API: Add post class list field.

See https://github.com/WordPress/gutenberg/pull/60642.
See https://github.com/WordPress/wordpress-develop/pull/6716.

Fixes #61360.

Props antonvlasenko, timothyblynjacobs, ellatrix, oandregal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php

    r58130 r58326  
    16471647        $data       = $response->get_data();
    16481648        $properties = $data['schema']['properties'];
    1649         $this->assertCount( 28, $properties );
     1649        $this->assertCount( 29, $properties );
    16501650        $this->assertArrayHasKey( 'author', $properties );
    16511651        $this->assertArrayHasKey( 'alt_text', $properties );
     
    16821682        $this->assertArrayHasKey( 'missing_image_sizes', $properties );
    16831683        $this->assertArrayHasKey( 'featured_media', $properties );
     1684        $this->assertArrayHasKey( 'class_list', $properties );
    16841685    }
    16851686
Note: See TracChangeset for help on using the changeset viewer.