mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 01:57:53 +01:00
Tweak the first post/page content to get with the times.
props chriscct7. fixes #22474. Built from https://develop.svn.wordpress.org/trunk@32768 git-svn-id: http://core.svn.wordpress.org/trunk@32739 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
36e593a46c
commit
e7f618d86e
@ -156,12 +156,12 @@ function wp_install_defaults( $user_id ) {
|
|||||||
$first_post = get_site_option( 'first_post' );
|
$first_post = get_site_option( 'first_post' );
|
||||||
|
|
||||||
if ( empty($first_post) )
|
if ( empty($first_post) )
|
||||||
$first_post = __( 'Welcome to <a href="SITE_URL">SITE_NAME</a>. This is your first post. Edit or delete it, then start blogging!' );
|
$first_post = __( 'Welcome to <a href="SITE_URL">SITE_NAME</a>. This is your first post. Edit or delete it, then start writing!' );
|
||||||
|
|
||||||
$first_post = str_replace( "SITE_URL", esc_url( network_home_url() ), $first_post );
|
$first_post = str_replace( "SITE_URL", esc_url( network_home_url() ), $first_post );
|
||||||
$first_post = str_replace( "SITE_NAME", get_current_site()->site_name, $first_post );
|
$first_post = str_replace( "SITE_NAME", get_current_site()->site_name, $first_post );
|
||||||
} else {
|
} else {
|
||||||
$first_post = __('Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!');
|
$first_post = __( 'Welcome to WordPress. This is your first post. Edit or delete it, then start writing!' );
|
||||||
}
|
}
|
||||||
|
|
||||||
$wpdb->insert( $wpdb->posts, array(
|
$wpdb->insert( $wpdb->posts, array(
|
||||||
@ -206,7 +206,7 @@ To delete a comment, just log in and view the post's comments. There you wi
|
|||||||
// First Page
|
// First Page
|
||||||
$first_page = sprintf( __( "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:
|
$first_page = sprintf( __( "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:
|
||||||
|
|
||||||
<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>
|
<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>
|
||||||
|
|
||||||
...or something like this:
|
...or something like this:
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-alpha-32767';
|
$wp_version = '4.3-alpha-32768';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user