Changeset 1031
- Timestamp:
- 03/30/2004 01:44:21 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/install.php
r957 r1031 196 196 post_author int(4) NOT NULL default '0', 197 197 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', 198 199 post_content text NOT NULL, 199 200 post_title text NOT NULL, … … 206 207 ping_status enum('open','closed') NOT NULL default 'open', 207 208 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, 208 215 PRIMARY KEY (ID), 216 KEY post_date (post_date), 217 KEY post_date_gmt (post_date_gmt), 218 KEY post_name (post_name), 209 219 KEY post_status (post_status) 210 220 ) … … 217 227 <?php 218 228 $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')"; 220 231 221 232 $q = $wpdb->query($query);
Note: See TracChangeset
for help on using the changeset viewer.