[wp-trac] [WordPress Trac] #45151: Convert 'Sample Page', 'Hello World', and 'Privacy Policy' to block content

WordPress Trac noreply at wordpress.org
Thu Oct 25 01:31:03 UTC 2018


#45151: Convert 'Sample Page', 'Hello World', and 'Privacy Policy' to block content
-----------------------------+-----------------------
 Reporter:  danielbachhuber  |       Owner:  desrosj
     Type:  enhancement      |      Status:  reopened
 Priority:  normal           |   Milestone:  5.0
Component:  Upgrade/Install  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+-----------------------

Comment (by SergeyBiryukov):

 Replying to [comment:17 desrosj]:
 > [attachment:"45151.4.diff"] changes the translatable sample page content
 to not include the block editor markup.
 Looks good, could we also remove the markup from the "Hello world" post
 content?

 > I am thinking that using `printf()` and `sprintf()` to insert block
 markup is going to become more and more common. Should we open a new
 ticket to discuss a best practice and document somewhere?
 I think it's addressed by "Do not put unnecessary HTML markup into the
 translated string" from
 [https://developer.wordpress.org/plugins/internationalization/how-to-
 internationalize-your-plugin/#best-practices-for-writing-strings i18n best
 practices], maybe additional examples would be helpful though?

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


More information about the wp-trac mailing list