mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-12 00:24:34 +00:00
Privacy tools: Organize privacy functions into logical files and classes.
Props xkon, birgire, desrosj, garrett-eclipse, azaozz. See #43895. git-svn-id: https://develop.svn.wordpress.org/trunk@45448 602fd350-edb4-49c9-b593-d223f7449a82
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