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

WordPress Trac noreply at wordpress.org
Tue Oct 23 21:06:25 UTC 2018


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

Comment (by desrosj):

 [attachment:"45151.3.diff"] adds `Default true` to the function.

 I think that adding a new filter should be explored in a new ticket. My
 goal here is to change the function only enough to achieve the goal of
 returning Privacy Policy starter content for both the block-based editor
 and the Privacy Policy Guide.

 > Should the h2 replace set a level of 2 for the gutenberg markup?

 The default level for the heading block is 2, so we don't have to specify
 a level on `<h2>`s.

 @dimadin If I am understanding correctly (which I may not be), you are
 asking for the privacy policy to be one translatable string. If so, that
 should be explored in a new ticket.

 The privacy policy strings are currently split up into one string for each
 paragraph. This patch should maintain the existing behavior. The resulting
 single, combined string can still be filtered using the
 `wp_get_default_privacy_policy_content` filter.

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


More information about the wp-trac mailing list