[wp-trac] [WordPress Trac] #43895: Organize privacy functions into logical files and classes

WordPress Trac noreply at wordpress.org
Fri May 24 03:43:27 UTC 2019


#43895: Organize privacy functions into logical files and classes
-------------------------------------------+-----------------------
 Reporter:  iandunn                        |       Owner:  desrosj
     Type:  enhancement                    |      Status:  assigned
 Priority:  normal                         |   Milestone:  5.3
Component:  Privacy                        |     Version:  4.9.6
 Severity:  normal                         |  Resolution:
 Keywords:  early has-patch needs-refresh  |     Focuses:
-------------------------------------------+-----------------------

Comment (by azaozz):

 This is a lot of moving.. :)

 In 43895.1.diff:
 - Rename `privacy` to `privacy-tools`.
 - Move `WP_Privacy_Policy_Content` from `wp-admin/includes/misc.php` to
 `wp-admin/includes/class-wp-privacy-policy-content.php`.
 - Rename the settings screen from `wp-admin/privacy.php` to `wp-admin
 /options-privacy.php`. `wp-admin/privacy.php` will need to be restored to
 its previous content in another commit.
 - Add `/wp-admin/privacy-policy-guide.php` to output the guide. Previously
 this was done with a query arg from tools.php. Also add a redirect for it.

 Would be great to avoid loading of `class-wp-privacy-policy-content.php`
 on every run. It has a big chunk of translated text that is very rarely
 used/needed. Currently there are actions that require it, perhaps can look
 into moving the callbacks for the actions to `wp-admin/includes/privacy-
 tools.php`?

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


More information about the wp-trac mailing list