Make WordPress Core


Ignore:
Timestamp:
09/30/2025 05:03:34 PM (11 months ago)
Author:
desrosj
Message:

Grouped backports for the 5.6 branch.

  • REST API: Increase the specificity of capability checks for collections when the edit context is in use.
  • Menus: Prevent HTML in menu item titles from being rendered unexpectedly.

Merges [60814], [60815], [60816] to the 5.6 branch.

Props andraganescu, desrosj, ehti, hurayraiit, iandunn, joehoyle, johnbillion, jorbin, mnelson4, noisysocks, peterwilsoncc, phillsav, rmccue, timothyblynjacobs, vortfu, westonruter , whyisjake, zieladam.

Location:
branches/5.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.6

  • branches/5.6/tests/phpunit/tests/rest-api/rest-users-controller.php

    r49603 r60830  
    11271127                $request->set_param( 'context', 'edit' );
    11281128                $response = rest_get_server()->dispatch( $request );
    1129                 $this->assertErrorResponse( 'rest_user_cannot_view', $response, 401 );
     1129                $this->assertErrorResponse( 'rest_forbidden_context', $response, 401 );
    11301130        }
    11311131
Note: See TracChangeset for help on using the changeset viewer.