Sergey Biryukov b58ca547e5 Privacy: Make sure wp_add_privacy_policy_content() does not cause a fatal error by unintentionally flushing rewrite rules outside of the admin context.
Add a `_doing_it_wrong()` message describing the correct usage of the function.

Props kraftbj, azaozz, SergeyBiryukov, YuriV.
Merges [43361], [43362], [43363] to the 4.9 branch.
Fixes #44142.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43364 602fd350-edb4-49c9-b593-d223f7449a82
2018-06-16 13:11:57 +00:00
2018-05-17 19:56:28 +00:00
Description
No description provided
244 MiB
Languages
PHP 81.4%
CSS 8.9%
JavaScript 8.2%
SCSS 0.8%
HTML 0.7%