Make WordPress Core


Ignore:
Timestamp:
06/04/2024 10:21:11 AM (11 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-posts-controller.php

    r58065 r58326  
    43634363        $data       = $response->get_data();
    43644364        $properties = $data['schema']['properties'];
    4365         $this->assertCount( 26, $properties );
     4365        $this->assertCount( 27, $properties );
    43664366        $this->assertArrayHasKey( 'author', $properties );
    43674367        $this->assertArrayHasKey( 'comment_status', $properties );
     
    43904390        $this->assertArrayHasKey( 'tags', $properties );
    43914391        $this->assertArrayHasKey( 'categories', $properties );
     4392        $this->assertArrayHasKey( 'class_list', $properties );
    43924393    }
    43934394
     
    44194420            'author',
    44204421            'categories',
     4422            'class_list',
    44214423            'comment_status',
    44224424            'content',
     
    44574459            'author',
    44584460            'categories',
     4461            'class_list',
    44594462            'comment_status',
    44604463            'content',
Note: See TracChangeset for help on using the changeset viewer.