Changeset 5120
- Timestamp:
- 03/27/07 23:46:21 (1 year ago)
- Files:
-
- branches/2.1/wp-admin/admin-functions.php (modified) (1 diff)
- branches/2.1/wp-includes/bookmark.php (modified) (1 diff)
- branches/2.1/wp-includes/category.php (modified) (1 diff)
- branches/2.1/wp-includes/comment.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.1/wp-admin/admin-functions.php
r5092 r5120 479 479 $user->user_email = wp_specialchars( trim( $_POST['email'] )); 480 480 if ( isset( $_POST['url'] ) ) { 481 $user->user_url = wp_specialchars( trim( $_POST['url'] ));481 $user->user_url = clean_url( trim( $_POST['url'] )); 482 482 $user->user_url = preg_match('/^(https?|ftps?|mailto|news|irc|gopher|nntp|feed|telnet):/is', $user->user_url) ? $user->user_url : 'http://'.$user->user_url; 483 483 } branches/2.1/wp-includes/bookmark.php
r4529 r5120 4 4 global $wpdb; 5 5 6 $bookmark_id = (int) $bookmark_id; 6 7 $link = $wpdb->get_row("SELECT * FROM $wpdb->links WHERE link_id = '$bookmark_id'"); 7 8 $link->link_category = wp_get_link_cats($bookmark_id); branches/2.1/wp-includes/category.php
r4849 r5120 147 147 $_category = $category; 148 148 } else { 149 $category = (int) $category; 149 150 if ( ! $_category = wp_cache_get($category, 'category') ) { 150 151 $_category = $wpdb->get_row("SELECT * FROM $wpdb->categories WHERE cat_ID = '$category' LIMIT 1"); branches/2.1/wp-includes/comment.php
r5092 r5120 82 82 $_comment = & $comment_cache[$comment->comment_ID]; 83 83 } else { 84 $comment = (int) $comment; 84 85 if ( !isset($comment_cache[$comment]) ) { 85 86 $_comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID = '$comment' LIMIT 1");
