[wp-trac] [WordPress Trac] #54518: There could be an issue with setting the post_title to "Custom Styles"

WordPress Trac noreply at wordpress.org
Mon Nov 29 18:05:05 UTC 2021


#54518: There could be an issue with setting the post_title to "Custom Styles"
---------------------------+-----------------------
 Reporter:  antonvlasenko  |       Owner:  audrasjb
     Type:  defect (bug)   |      Status:  assigned
 Priority:  normal         |   Milestone:  5.9
Component:  Editor         |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  rest-api
---------------------------+-----------------------

Comment (by desrosj):

 I went back and looked at how the Hello World! post is handled. It looks
 like it does wrap the string in `__()`
 ([https://core.trac.wordpress.org/browser/trunk/src/wp-
 admin/includes/upgrade.php#L240 source code]).

 However, since this is during installation, the string will be translated
 to the default language selected during installation. The same is true for
 the `post_name` for the post (not relevant for global styles), and the
 first comment.

 If global style posts are not visible through a UI by default, I'd argue
 that using the site's default language is the desired behavior. This would
 more closely match the established practices.

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


More information about the wp-trac mailing list