Privacy tools: Organize privacy functions into logical files and classes.
Props xkon, birgire, desrosj, garrett-eclipse, azaozz. See #43895. Built from https://develop.svn.wordpress.org/trunk@45448 git-svn-id: http://core.svn.wordpress.org/trunk@45259 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -2187,7 +2187,7 @@ function wp_add_privacy_policy_content( $plugin_name, $policy_text ) {
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
|
||||
require_once( ABSPATH . 'wp-admin/includes/misc.php' );
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php' );
|
||||
}
|
||||
|
||||
WP_Privacy_Policy_Content::add( $plugin_name, $policy_text );
|
||||
|
||||
Reference in New Issue
Block a user