Make WordPress Core

Changeset 725


Ignore:
Timestamp:
01/06/2004 10:33:07 AM (21 years ago)
Author:
saxmatt
Message:

Various fixes from forums and such.

Location:
trunk
Files:
5 edited

Legend:

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

    r696 r725  
    168168                pingback($content, $post_ID);
    169169            }
     170           
     171            apply_filters('action_publish_post', $post_ID);
    170172
    171173            // Time for trackbacks
  • trunk/wp-admin/upgrade-functions.php

    r711 r725  
    606606        // Check to see if it's already been imported
    607607        $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 result
     608        if (!$cat && 0 != $post->post_category) { // If there's no result
    609609            $wpdb->query("
    610610                INSERT INTO $tablepost2cat
     
    618618
    619619function upgrade_101() {
    620     global $wpdb, $tableoptionvalues;
     620    global $wpdb, $tableoptionvalues, $tablelinkcategories;
    621621    // Fix possible duplicate problem from CVS
    622622    $option59 = $wpdb->get_results("SELECT * FROM $tableoptionvalues WHERE option_id  = 59");
     
    627627    // Remove 'automatic' option for comment moderation until it actually does something
    628628    $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");
    629631}
    630632
  • trunk/wp-blog-header.php

    r677 r725  
    77
    88if (!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.");
    1010
    1111require_once ($curpath.'/wp-config.php');
  • trunk/wp-includes/template-functions.php

    r721 r725  
    16561656
    16571657    $url = str_replace('http://url', '', $url);
    1658     $url = preg_replace('|[^a-z0-9-_.,/:]|i', '', $url);
     1658    $url = preg_replace('|[^a-z0-9-_.?=&;,/:]|i', '', $url);
    16591659    if (empty($url) && empty($email)) {
    16601660        echo $author;
  • trunk/wp-settings.php

    r707 r725  
    2525
    2626$wpdb->hide_errors();
    27 if (!$wpdb->get_row("SELECT * FROM $tableoptions LIMIT 1") && !strstr($HTTP_SERVER_VARS['REQUEST_URI'], 'install.php')) {
     27if (!$wpdb->get_row("SELECT * FROM $tableusers LIMIT 1") && !strstr($HTTP_SERVER_VARS['REQUEST_URI'], 'install.php')) {
    2828    die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>.");
    2929}
Note: See TracChangeset for help on using the changeset viewer.