Changeset 5100
- Timestamp:
- 03/25/2007 11:12:38 PM (18 years ago)
- Location:
- branches/2.0/wp-includes
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-includes/comment-functions.php
r5041 r5100 91 91 "); 92 92 93 $id = $wpdb->insert_id;93 $id = (int) $wpdb->insert_id; 94 94 95 95 if ( $comment_approved == 1) { … … 225 225 226 226 if ( !$post_id ) 227 $post_id = $id;227 $post_id = (int) $id; 228 228 229 229 if ( !isset($comment_count_cache[$post_id]) ) -
branches/2.0/wp-includes/functions-post.php
r5084 r5100 48 48 // Get the post ID. 49 49 if ( $update ) 50 $post_ID = $ID;50 $post_ID = (int) $ID; 51 51 52 52 // Create a valid post name. Drafts are allowed to have an empty -
branches/2.0/wp-includes/functions.php
r5058 r5100 2023 2023 global $wp_query; 2024 2024 2025 $id = $wp_query->post->ID;2025 $id = (int) $wp_query->post->ID; 2026 2026 $template = get_post_meta($id, '_wp_page_template', true); 2027 2027 -
branches/2.0/wp-includes/pluggable-functions.php
r4514 r5100 467 467 function wp_verify_nonce($nonce, $action = -1) { 468 468 $user = wp_get_current_user(); 469 $uid = $user->id;469 $uid = (int) $user->id; 470 470 471 471 $i = ceil(time() / 43200); … … 481 481 function wp_create_nonce($action = -1) { 482 482 $user = wp_get_current_user(); 483 $uid = $user->id;483 $uid = (int) $user->id; 484 484 485 485 $i = ceil(time() / 43200); -
branches/2.0/wp-includes/registration-functions.php
r3802 r5100 78 78 $query = apply_filters('update_user_query', $query); 79 79 $wpdb->query( $query ); 80 $user_id = $ID;80 $user_id = (int) $ID; 81 81 } else { 82 82 $query = "INSERT INTO $wpdb->users … … 86 86 $query = apply_filters('create_user_query', $query); 87 87 $wpdb->query( $query ); 88 $user_id = $wpdb->insert_id;88 $user_id = (int) $wpdb->insert_id; 89 89 } 90 90 -
branches/2.0/wp-includes/template-functions-author.php
r4656 r5100 137 137 function get_author_link($echo = false, $author_id, $author_nicename = '') { 138 138 global $wpdb, $wp_rewrite, $post, $cache_userdata; 139 $auth_ID = $author_id;139 $auth_ID = (int) $author_id; 140 140 $link = $wp_rewrite->get_author_permastruct(); 141 141 -
branches/2.0/wp-includes/template-functions-category.php
r5084 r5100 6 6 $id = (int) $id; 7 7 if ( !$id ) 8 $id = $post->ID;8 $id = (int) $post->ID; 9 9 10 10 if ( !isset($category_cache[$id]) ) -
branches/2.0/wp-includes/template-functions-links.php
r5080 r5100 90 90 $id = (int) $id; 91 91 if ( !$id ) 92 $id = $post->ID;92 $id = (int) $post->ID; 93 93 94 94 $pagestruct = $wp_rewrite->get_page_permastruct(); … … 111 111 112 112 if (! $id) { 113 $id = $post->ID;113 $id = (int) $post->ID; 114 114 } 115 115
Note: See TracChangeset
for help on using the changeset viewer.