[wp-trac] [WordPress Trac] #62042: Global Styles: allow read access to users with edit_posts capabilities

WordPress Trac noreply at wordpress.org
Thu Sep 12 04:58:54 UTC 2024


#62042: Global Styles: allow read access to users with edit_posts capabilities
-------------------------+-----------------------------
 Reporter:  ramonopoly   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  REST API     |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:  rest-api     |
-------------------------+-----------------------------
 This ticket tracks the syncing of the Gutenberg PR:

 [https://github.com/WordPress/gutenberg/pull/65071, Global Styles: allow
 read access to users with edit_posts capabilities]

 The gist is to allow any role that can edit a post, including custom post
 types, to read global styles from the API and in the editor.

 Why?

 Block style variations and other global styles are not available to non-
 admin editors. See: https://github.com/WordPress/gutenberg/issues/64755

 Furthermore, having global styles available in the post editor will, one
 day, allow block controls to reflect any values inherited from the
 theme/global styles. See:
 https://github.com/WordPress/gutenberg/issues/64670

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62042>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list