Changeset 725
- Timestamp:
- 01/06/2004 10:33:07 AM (21 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r696 r725 168 168 pingback($content, $post_ID); 169 169 } 170 171 apply_filters('action_publish_post', $post_ID); 170 172 171 173 // Time for trackbacks -
trunk/wp-admin/upgrade-functions.php
r711 r725 606 606 // Check to see if it's already been imported 607 607 $cat = $wpdb->get_row("SELECT * FROM $tablepost2cat WHERE post_id = $post->ID AND category_id = $post->post_category"); 608 if (!$cat ) { // If there's no result608 if (!$cat && 0 != $post->post_category) { // If there's no result 609 609 $wpdb->query(" 610 610 INSERT INTO $tablepost2cat … … 618 618 619 619 function upgrade_101() { 620 global $wpdb, $tableoptionvalues ;620 global $wpdb, $tableoptionvalues, $tablelinkcategories; 621 621 // Fix possible duplicate problem from CVS 622 622 $option59 = $wpdb->get_results("SELECT * FROM $tableoptionvalues WHERE option_id = 59"); … … 627 627 // Remove 'automatic' option for comment moderation until it actually does something 628 628 $wpdb->query("DELETE FROM $tableoptionvalues WHERE optionvalue = 'auto'"); 629 // Less intrusive default 630 $wpdb->query("ALTER TABLE `$tablelinkcategories` CHANGE `show_description` `show_description` ENUM( 'Y', 'N' ) DEFAULT 'N' NOT NULL"); 629 631 } 630 632 -
trunk/wp-blog-header.php
r677 r725 7 7 8 8 if (!file_exists($curpath . '/wp-config.php')) 9 die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. ");9 die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='wp-admin/install-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file."); 10 10 11 11 require_once ($curpath.'/wp-config.php'); -
trunk/wp-includes/template-functions.php
r721 r725 1656 1656 1657 1657 $url = str_replace('http://url', '', $url); 1658 $url = preg_replace('|[^a-z0-9-_. ,/:]|i', '', $url);1658 $url = preg_replace('|[^a-z0-9-_.?=&;,/:]|i', '', $url); 1659 1659 if (empty($url) && empty($email)) { 1660 1660 echo $author; -
trunk/wp-settings.php
r707 r725 25 25 26 26 $wpdb->hide_errors(); 27 if (!$wpdb->get_row("SELECT * FROM $table options LIMIT 1") && !strstr($HTTP_SERVER_VARS['REQUEST_URI'], 'install.php')) {27 if (!$wpdb->get_row("SELECT * FROM $tableusers LIMIT 1") && !strstr($HTTP_SERVER_VARS['REQUEST_URI'], 'install.php')) { 28 28 die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>."); 29 29 }
Note: See TracChangeset
for help on using the changeset viewer.