Changeset 1746
- Timestamp:
- 10/05/2004 07:36:50 AM (20 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r1745 r1746 7 7 require_once('admin-header.php'); 8 8 if (empty($_GET['mode'])) $mode = 'view'; 9 else $mode = $_GET['mode'];9 else $mode = htmlspecialchars($_GET['mode']); 10 10 ?> 11 11 … … 107 107 <form action="" method="get"> 108 108 <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; ?>" /> 110 110 <input type="submit" name="submit" value="<?php _e('View Next 20 Comments »');?>" /> 111 111 </p> -
trunk/wp-admin/upgrade-functions.php
r1719 r1746 34 34 35 35 $wpdb->query("UPDATE $wpdb->options SET option_value = REPLACE(option_value, 'wp-links/links-images/', 'wp-images/links/') 36 37 36 WHERE option_name LIKE 'links_rating_image%' 37 AND option_value LIKE 'wp-links/links-images/%'"); 38 38 39 39 $done_ids = $wpdb->get_results("SELECT DISTINCT post_id FROM $wpdb->post2cat"); … … 149 149 $post_excerpt = addslashes(deslash($post->post_excerpt)); 150 150 if ( empty($post->guid) ) 151 $guid = get_ option('home') . '/' . get_permalink();151 $guid = get_permalink($post->ID); 152 152 else 153 153 $guid = $post->guid; … … 195 195 // Update comments table to use comment_type 196 196 $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 />%'"); 198 198 199 199 } -
trunk/wp-includes/functions.php
r1741 r1746 301 301 function get_settings($setting) { 302 302 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') ) 304 304 return false; 305 305
Note: See TracChangeset
for help on using the changeset viewer.