[wp-trac] [WordPress Trac] #54336: Add Global Styles REST API endpoints from Gutenberg plugin into Core

WordPress Trac noreply at wordpress.org
Wed Nov 10 14:34:52 UTC 2021


#54336: Add Global Styles REST API endpoints from Gutenberg plugin into Core
--------------------------------------+-------------------------------
 Reporter:  noisysocks                |       Owner:  jorgefilipecosta
     Type:  task (blessed)            |      Status:  assigned
 Priority:  normal                    |   Milestone:  5.9
Component:  REST API                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-------------------------------

Comment (by desrosj):

 Another thing I noticed is that the default `post_title` for a global
 styles post is set as `__( 'Custom Styles' )`
 ([https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-
 theme-json-resolver.php?annotate=blame#L234 source]).

 I believe that this will result in the post title being set to Custom
 Styles translated into the selected locale of the current user, which
 could be problematic. If user B has selected German, but the site default
 is English, it's possible that the title could be unreadable for a large
 number of users on the site.

 I'm not really sure what the best approach is for that.

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


More information about the wp-trac mailing list