Ticket #22474: 22474.2.patch
File 22474.2.patch, 2.5 KB (added by , 10 years ago) |
---|
-
wp-admin/includes/upgrade.php
152 152 $first_post = get_site_option( 'first_post' ); 153 153 154 154 if ( empty($first_post) ) 155 $first_post = __( 'Welcome to <a href="SITE_URL">SITE_NAME</a>. This is your first post. Edit or delete it, then start blogging!' );155 $first_post = __( 'Welcome to <a href="SITE_URL">SITE_NAME</a>. This is your first post. Edit or delete it, then start writing!' ); 156 156 157 157 $first_post = str_replace( "SITE_URL", esc_url( network_home_url() ), $first_post ); 158 158 $first_post = str_replace( "SITE_NAME", get_current_site()->site_name, $first_post ); 159 159 } else { 160 $first_post = __('Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!');160 $first_post = __('Welcome to WordPress. This is your first post. Edit or delete it, then start writing!'); 161 161 } 162 162 163 163 $wpdb->insert( $wpdb->posts, array( … … 166 166 'post_date_gmt' => $now_gmt, 167 167 'post_content' => $first_post, 168 168 'post_excerpt' => '', 169 'post_title' => __('Hello world!'),169 'post_title' => __('Hello, World!'), 170 170 /* translators: Default post slug */ 171 171 'post_name' => sanitize_title( _x('hello-world', 'Default post slug') ), 172 172 'post_modified' => $now, … … 200 200 )); 201 201 202 202 // First Page 203 $first_page = sprintf( __( "This is an example page. It's different from a blogpost 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:203 $first_page = sprintf( __( "This is an example page. It's different from a 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: 204 204 205 <blockquote>Hi there! I'm a bike messenger by day, aspiring actor by night, and this is my blog. I live in Los Angeles, have a great dog named Jack, and I like piña coladas. (And gettin' caught in the rain.)</blockquote>205 <blockquote>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.)</blockquote> 206 206 207 207 ...or something like this: 208 208