Make WordPress Core

Opened 17 months ago

Closed 17 months ago

Last modified 17 months ago

#57526 closed enhancement (fixed)

Globals Styles Endpoint: Declare 'edit_css' capability in links

Reported by: mamaduka's profile Mamaduka Owned by: hellofromtonya's profile hellofromTonya
Milestone: 6.2 Priority: normal
Severity: normal Version: 5.9
Component: REST API Keywords: has-patch has-unit-tests gutenberg-merge commit
Focuses: Cc:

Description (last modified by hellofromTonya)

Update the Global Styles endpoint to expose the 'edit_css' capability via action links.

This is the part of an effort to hide custom CSS setting for users without 'edit_css' capability. See https://github.com/WordPress/gutenberg/pull/46815.

Change History (8)

This ticket was mentioned in PR #3889 on WordPress/wordpress-develop by @Mamaduka.


17 months ago
#1

  • Keywords has-patch has-unit-tests added

#2 @Mamaduka
17 months ago

  • Milestone changed from Awaiting Review to 6.2

@Mamaduka commented on PR #3889:


17 months ago
#3

cc @hellofromtonya

#4 @hellofromTonya
17 months ago

  • Description modified (diff)
  • Keywords gutenberg-merge added
  • Owner set to hellofromTonya
  • Status changed from new to reviewing
  • Summary changed from Globals Styles Endpoint: Declare edit_css capability in links to Globals Styles Endpoint: Declare 'edit_css' capability in links
  • Version set to 5.9

@hellofromTonya commented on PR #3889:


17 months ago
#5

Currently reviewing.

#6 @hellofromTonya
17 months ago

  • Keywords commit added

PR 3889:

  • Confirmed this patch has the REST PHP code changes from the GB PR ✅
  • Timothy confirmed the URL is okay ✅
  • Tests included ✅

Ready for commit 👍 Prepping commit now.

#7 @hellofromTonya
17 months ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 55177:

REST API: Declare 'edit_css' capability in links within WP_REST_Global_Styles_Controller.

Updates the Global Styles endpoint to expose the 'edit_css' capability via action links.

References:

  • Gutenberg PR 46815 Part of an effort to hide custom CSS setting for users without 'edit_css' capability.

Follow-up to [52342], [52051].

Props mamaduka, dsas, glendaviesnz, mmtr86, talldanwp, timothyblynjacobs.
Fixes #57526.

Note: See TracTickets for help on using tickets.