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

WordPress Trac noreply at wordpress.org
Wed Sep 18 05:17:20 UTC 2024


#62042: Global Styles: allow read access to users with edit_posts capabilities
--------------------------------------+-------------------------
 Reporter:  ramonopoly                |       Owner:  ramonopoly
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.7
Component:  REST API                  |     Version:  trunk
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+-------------------------
Changes (by ramonopoly):

 * owner:  (none) => ramonopoly
 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59048" 59048]:
 {{{
 #!CommitTicketReference repository="" revision="59048"
 Global Styles: allow read access to users with `edit_posts` capabilities

 This patch any role that can edit a post, including custom post types, or
 edit theme options to read global styles from the API. This enables read-
 only access to global styles in the post editor. Test coverage in
 included.

 Props ramonopoly, peterwilsoncc, mukesh27, aaronrobertshaw, mamaduka,
 spacedmonkey, talldanwp, timothyblynjacobs.
 Fixes #62042.
 }}}

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


More information about the wp-trac mailing list