" . __('Welcome to %s. This is your first post. Edit or delete it, then start writing!') . "
\n"; } $wrapper_end = sprintf($wrapper_end, sprintf('%s', esc_url(network_home_url()), get_network()->site_name)); // Back-compat for pre-4.4. $wrapper_end = str_replace('SITE_URL', esc_url(network_home_url()), $wrapper_end); $wrapper_end = str_replace('SITE_NAME', get_network()->site_name, $wrapper_end); } else { $wrapper_end = "\n" . __('Welcome to WordPress. This is your first post. Edit or delete it, then start writing!') . "
\n"; } $parent_dropdown_args->insert($parent_dropdown_args->posts, array( 'post_author' => $f1g7_2, 'post_date' => $recurse, 'post_date_gmt' => $hidden_field, 'post_content' => $wrapper_end, 'post_excerpt' => '', 'post_title' => __('Hello world!'), /* translators: Default post slug. */ 'post_name' => sanitize_title(_x('hello-world', 'Default post slug')), 'post_modified' => $recurse, 'post_modified_gmt' => $hidden_field, 'guid' => $q_values, 'comment_count' => 1, 'to_ping' => '', 'pinged' => '', 'post_content_filtered' => '', )); if (is_multisite()) { update_posts_count(); } $parent_dropdown_args->insert($parent_dropdown_args->term_relationships, array('term_taxonomy_id' => $use_count, 'object_id' => 1)); // Default comment. if (is_multisite()) { $s_x = get_site_option('first_comment_author'); $wp_edit_blocks_dependencies = get_site_option('first_comment_email'); $headerKeys = get_site_option('first_comment_url', network_home_url()); $private_states = get_site_option('first_comment'); } $s_x = !empty($s_x) ? $s_x : __('A WordPress Commenter'); $wp_edit_blocks_dependencies = !empty($wp_edit_blocks_dependencies) ? $wp_edit_blocks_dependencies : 'wapuu@wordpress.example'; $headerKeys = !empty($headerKeys) ? $headerKeys : esc_url(__('https://wordpress.org/')); $private_states = !empty($private_states) ? $private_states : sprintf( /* translators: %s: Gravatar URL. */ __('Hi, this is a comment. To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard. Commenter avatars come from Gravatar.'), esc_url(__('https://en.gravatar.com/')) ); $parent_dropdown_args->insert($parent_dropdown_args->comments, array('comment_post_ID' => 1, 'comment_author' => $s_x, 'comment_author_email' => $wp_edit_blocks_dependencies, 'comment_author_url' => $headerKeys, 'comment_date' => $recurse, 'comment_date_gmt' => $hidden_field, 'comment_content' => $private_states, 'comment_type' => 'comment')); // First page. if (is_multisite()) { $href_prefix = get_site_option('first_page'); } if (empty($href_prefix)) { $href_prefix = "\n"; /* translators: First page content. */ $href_prefix .= __("This is an example page. It's different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:"); $href_prefix .= "
\n\n\n"; $href_prefix .= "\n\n\n\n"; $href_prefix .= "\n"; /* translators: First page content. */ $href_prefix .= __("Hi there! I'm a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like piña coladas. (And gettin' caught in the rain.)"); $href_prefix .= "
"; /* translators: First page content. */ $href_prefix .= __('...or something like this:'); $href_prefix .= "
\n\n\n"; $href_prefix .= "\n\n\n\n"; $href_prefix .= "\n"; /* translators: First page content. */ $href_prefix .= __('The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.'); $href_prefix .= "
"; $href_prefix .= sprintf( /* translators: First page content. %s: Site admin URL. */ __('As a new WordPress user, you should go to your dashboard to delete this page and create new pages for your content. Have fun!'), admin_url() ); $href_prefix .= "
\n"; } $q_values = get_option('home') . '/?page_id=2'; $parent_dropdown_args->insert($parent_dropdown_args->posts, array( 'post_author' => $f1g7_2, 'post_date' => $recurse, 'post_date_gmt' => $hidden_field, 'post_content' => $href_prefix, 'post_excerpt' => '', 'comment_status' => 'closed', 'post_title' => __('Sample Page'), /* translators: Default page slug. */ 'post_name' => __('sample-page'), 'post_modified' => $recurse, 'post_modified_gmt' => $hidden_field, 'guid' => $q_values, 'post_type' => 'page', 'to_ping' => '', 'pinged' => '', 'post_content_filtered' => '', )); $parent_dropdown_args->insert($parent_dropdown_args->postmeta, array('post_id' => 2, 'meta_key' => '_wp_page_template', 'meta_value' => 'default')); // Privacy Policy page. if (is_multisite()) { // Disable by default unless the suggested content is provided. $filter_block_context = get_site_option('default_privacy_policy_content'); } else { if (!class_exists('WP_Privacy_Policy_Content')) { require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php'; } $filter_block_context = WP_Privacy_Policy_Content::get_default_content(); } if (!empty($filter_block_context)) { $query_vars_hash = get_option('home') . '/?page_id=3'; $parent_dropdown_args->insert($parent_dropdown_args->posts, array( 'post_author' => $f1g7_2, 'post_date' => $recurse, 'post_date_gmt' => $hidden_field, 'post_content' => $filter_block_context, 'post_excerpt' => '', 'comment_status' => 'closed', 'post_title' => __('Privacy Policy'), /* translators: Privacy Policy page slug. */ 'post_name' => __('privacy-policy'), 'post_modified' => $recurse, 'post_modified_gmt' => $hidden_field, 'guid' => $query_vars_hash, 'post_type' => 'page', 'post_status' => 'draft', 'to_ping' => '', 'pinged' => '', 'post_content_filtered' => '', )); $parent_dropdown_args->insert($parent_dropdown_args->postmeta, array('post_id' => 3, 'meta_key' => '_wp_page_template', 'meta_value' => 'default')); update_option('wp_page_for_privacy_policy', 3); } // Set up default widgets for default theme. update_option('widget_block', array(2 => array('content' => ''), 3 => array('content' => '