Make WordPress Core

Changeset 2386


Ignore:
Timestamp:
02/26/2005 08:46:12 PM (20 years ago)
Author:
ryan
Message:

Give first post a slug. http://mosquito.wordpress.org/view.php?id=987 Props: MaThIbUs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/install.php

    r2256 r2386  
    151151$now = date('Y-m-d H:i:s');
    152152$now_gmt = gmdate('Y-m-d H:i:s');
    153 $wpdb->query("INSERT INTO $wpdb->posts (post_author, post_date, post_date_gmt, post_content, post_title, post_category, post_modified, post_modified_gmt) VALUES ('1', '$now', '$now_gmt', 'Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!', 'Hello world!', '0', '$now', '$now_gmt')");
     153$wpdb->query("INSERT INTO $wpdb->posts (post_author, post_date, post_date_gmt, post_content, post_title, post_category, post_name, post_modified, post_modified_gmt) VALUES ('1', '$now', '$now_gmt', 'Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!', 'Hello world!', '0', 'hello-world', '$now', '$now_gmt')");
    154154
    155155$wpdb->query( "INSERT INTO $wpdb->post2cat (`rel_id`, `post_id`, `category_id`) VALUES (1, 1, 1)" );
Note: See TracChangeset for help on using the changeset viewer.