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-pages-controller.php

    r56547 r58326  
    749749        $data       = $response->get_data();
    750750        $properties = $data['schema']['properties'];
    751         $this->assertCount( 24, $properties );
     751        $this->assertCount( 25, $properties );
    752752        $this->assertArrayHasKey( 'author', $properties );
    753753        $this->assertArrayHasKey( 'comment_status', $properties );
     
    774774        $this->assertArrayHasKey( 'title', $properties );
    775775        $this->assertArrayHasKey( 'type', $properties );
     776        $this->assertArrayHasKey( 'class_list', $properties );
    776777    }
    777778
Note: See TracChangeset for help on using the changeset viewer.