Changeset 43149 for branches/4.9/src/wp-admin/privacy.php
- Timestamp:
- 05/03/2018 05:58:40 PM (6 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
- Property svn:mergeinfo changed
/trunk merged: 43044,43048,43052,43126,43146,43148
- Property svn:mergeinfo changed
-
branches/4.9/src/wp-admin/privacy.php
r43134 r43149 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.