diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 7e1add25b8..6e21b0d4de 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -308,13 +308,13 @@ As a new WordPress user, you should go to your dashboard to d ); // Privacy Policy page - if ( class_exists( 'WP_Privacy_Policy_Content' ) ) { + if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) { include_once( ABSPATH . 'wp-admin/includes/misc.php' ); } $privacy_policy_content = WP_Privacy_Policy_Content::get_default_content(); - $privacy_policy_guid = get_option( 'home' ) . '/?page_id=3'; + $wpdb->insert( $wpdb->posts, array( 'post_author' => $user_id, diff --git a/wp-includes/version.php b/wp-includes/version.php index 3f20892d3a..3c500c1a07 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42981'; +$wp_version = '5.0-alpha-42982'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.