Make WordPress Core


Ignore:
Timestamp:
04/30/2024 09:31:41 AM (16 months ago)
Author:
swissspidy
Message:

REST API: allow overriding excerpt length.

This can be used by the excerpt block in the editor to change the excerpt length without filtering excerpt_length in a conflicting way. This enhancement still needs a corresponding change on the Gutenberg side.

Props swissspidy, antonvlasenko, mukesh27, azaozz, andraganescu, timothyblynjacobs.
Fixes #59043.

File:
1 edited

Legend:

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

    r57603 r58065  
    260260        $data     = $response->get_data();
    261261        $keys     = array_keys( $data['endpoints'][0]['args'] );
    262         sort( $keys );
    263         $this->assertSame( array( 'context', 'id' ), $keys );
     262        $this->assertEqualSets( array( 'context', 'id' ), $keys );
    264263    }
    265264
Note: See TracChangeset for help on using the changeset viewer.