[wp-trac] [WordPress Trac] #43895: Organize privacy functions into logical files and classes
WordPress Trac
noreply at wordpress.org
Sat Apr 28 20:15:02 UTC 2018
#43895: Organize privacy functions into logical files and classes
-------------------------+-----------------------------
Reporter: iandunn | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords: gdpr
Focuses: |
-------------------------+-----------------------------
Many new functions and classes are being created in 4.9.6 for the privacy
features, but they can only be added in existing files, because it's a
point release (and they have to be in the next point release, because
GDPR).
That results in a bit of a mess, since functions are tacked on to
unrelated files, or files that already have thousands of lines of code.
The codebase would be much more maintainable if we can migrate logical
groups of functions to their own file, and move classes to their own
files.
We may need to consider back-compat issues, like plugins including `wp-
admin/includes/file.php` in order to call a function that resides there in
`4.9.6`. Ideally this should be done in 5.0, to minimize the time where
plugins will start to rely on functions being available in certain files.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43895>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list