Changeset 43044 for trunk/src/wp-admin/privacy.php
- Timestamp:
- 04/30/2018 02:46:25 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/privacy.php
r42978 r43044 37 37 ); 38 38 } elseif ( 'create-privacy-page' === $action ) { 39 if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) { 40 require_once( ABSPATH . 'wp-admin/includes/misc.php' ); 41 } 42 43 $privacy_policy_page_content = WP_Privacy_Policy_Content::get_default_content(); 39 44 $privacy_policy_page_id = wp_insert_post( 40 45 array( 41 'post_title' => __( 'Privacy Policy' ), 42 'post_status' => 'draft', 43 'post_type' => 'page', 46 'post_title' => __( 'Privacy Policy' ), 47 'post_status' => 'draft', 48 'post_type' => 'page', 49 'post_content' => $privacy_policy_page_content, 44 50 ), 45 51 true
Note: See TracChangeset
for help on using the changeset viewer.