Make WordPress Core

Changeset 1746


Ignore:
Timestamp:
10/05/2004 07:36:50 AM (20 years ago)
Author:
saxmatt
Message:

Fix GUID generation

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r1745 r1746  
    77require_once('admin-header.php');
    88if (empty($_GET['mode'])) $mode = 'view';
    9 else $mode = $_GET['mode'];
     9else $mode = htmlspecialchars($_GET['mode']);
    1010?>
    1111
     
    107107<form action="" method="get">
    108108<p class="submit">
    109 <input type="hidden" name="offset" value="<?php echo $_GET['offset']+ 1; ?>" />
     109<input type="hidden" name="offset" value="<?php echo $_GET['offset'] + 1; ?>" />
    110110<input type="submit" name="submit" value="<?php _e('View Next 20 Comments &raquo;');?>" />
    111111</p>
  • trunk/wp-admin/upgrade-functions.php

    r1719 r1746  
    3434
    3535    $wpdb->query("UPDATE $wpdb->options SET option_value = REPLACE(option_value, 'wp-links/links-images/', 'wp-images/links/')
    36                                                       WHERE option_name LIKE 'links_rating_image%'
    37                                                       AND option_value LIKE 'wp-links/links-images/%'");
     36    WHERE option_name LIKE 'links_rating_image%'
     37    AND option_value LIKE 'wp-links/links-images/%'");
    3838
    3939    $done_ids = $wpdb->get_results("SELECT DISTINCT post_id FROM $wpdb->post2cat");
     
    149149            $post_excerpt = addslashes(deslash($post->post_excerpt));
    150150            if ( empty($post->guid) )
    151                 $guid = get_option('home') . '/' . get_permalink();
     151                $guid = get_permalink($post->ID);
    152152            else
    153153                $guid = $post->guid;
     
    195195    // Update comments table to use comment_type
    196196    $wpdb->query("UPDATE $wpdb->comments SET comment_type='trackback', comment_content = REPLACE(comment_content, '<trackback />', '') WHERE comment_content LIKE '<trackback />%'");
    197     $wpdb->query("UPDATE $wpdb->comments SET comment_type='trackback', comment_content = REPLACE(comment_content, '<pingback />', '') WHERE comment_content LIKE '<pingback />%'");
     197    $wpdb->query("UPDATE $wpdb->comments SET comment_type='pingback', comment_content = REPLACE(comment_content, '<pingback />', '') WHERE comment_content LIKE '<pingback />%'");
    198198
    199199}
  • trunk/wp-includes/functions.php

    r1741 r1746  
    301301function get_settings($setting) {
    302302  global $wpdb, $cache_settings, $cache_nonexistantoptions;
    303     if ( strstr($_SERVER['REQUEST_URI'], 'wp-admin/install.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/upgrade.php') )
     303    if ( strstr($_SERVER['REQUEST_URI'], 'wp-admin/install.php') )
    304304        return false;
    305305
Note: See TracChangeset for help on using the changeset viewer.