Make WordPress Core


Ignore:
Timestamp:
02/13/2024 03:10:37 PM (7 months ago)
Author:
davidbaumwald
Message:

REST API: Revert the refactor of global styles endpoints in REST API in [57624].

[57624] introduced some E2E test failures which are the result of an incompatibility with the Gutenberg plugin.

Props jorbin, spacedmonkey, swissspidy, hellofromTonya, youknowriad, costdev.
See #60131.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-global-styles-revisions-controller.php

    r57624 r57628  
    421421    /**
    422422     * @ticket 58524
    423      * @ticket 60131
    424423     *
    425424     * @covers WP_REST_Global_Styles_Controller::get_item_permissions_check
     
    430429        $response = rest_get_server()->dispatch( $request );
    431430
    432         $this->assertErrorResponse( 'rest_cannot_read', $response, 403 );
     431        $this->assertErrorResponse( 'rest_cannot_view', $response, 403 );
    433432    }
    434433
     
    831830     */
    832831    public function test_context_param() {
    833         // Controller does not implement get_context_param().
     832        // Controller does not implement test_context_param().
    834833    }
    835834
Note: See TracChangeset for help on using the changeset viewer.