Make WordPress Core

Changeset 1031


Ignore:
Timestamp:
03/30/2004 01:44:21 AM (21 years ago)
Author:
michelvaldrighi
Message:

updated install.php to keep up with changes in wp_posts

File:
1 edited

Legend:

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

    r957 r1031  
    196196  post_author int(4) NOT NULL default '0',
    197197  post_date datetime NOT NULL default '0000-00-00 00:00:00',
     198  post_date_gmt datetime NOT NULL default '0000-00-00 00:00:00',
    198199  post_content text NOT NULL,
    199200  post_title text NOT NULL,
     
    206207  ping_status enum('open','closed') NOT NULL default 'open',
    207208  post_password varchar(20) NOT NULL default '',
     209  post_name varchar(200) NOT NULL default '',
     210  to_ping text NOT NULL,
     211  pinged text NOT NULL,
     212  post_modified datetime NOT NULL default '0000-00-00 00:00:00',
     213  post_modified_gmt datetime NOT NULL default '0000-00-00 00:00:00',
     214  post_content_filtered text NOT NULL,
    208215  PRIMARY KEY  (ID),
     216  KEY post_date (post_date),
     217  KEY post_date_gmt (post_date_gmt),
     218  KEY post_name (post_name),
    209219  KEY post_status (post_status)
    210220)
     
    217227<?php
    218228$now = date('Y-m-d H:i:s');
    219 $query = "INSERT INTO $tableposts (post_author, post_date, post_content, post_title, post_category) VALUES ('1', '$now', 'Welcome to WordPress. This is the first post. Edit or delete it, then start blogging!', 'Hello world!', '1')";
     229$now_gmt = gmdate('Y-m-d H:i:s');
     230$query = "INSERT INTO $tableposts (post_author, post_date, post_date_gmt, post_content, post_title, post_modified, post_modified_gmt) VALUES ('1', '$now', '$now_gmt', 'Welcome to WordPress. This is the first post. Edit or delete it, then start blogging!', 'Hello world!', '$now', '$now_gmt')";
    220231
    221232$q = $wpdb->query($query);
Note: See TracChangeset for help on using the changeset viewer.