Changeset 5083
- Timestamp:
- 03/22/2007 09:40:54 PM (19 years ago)
- Location:
- branches/2.1
- Files:
-
- 3 edited
-
wp-includes/category-template.php (modified) (1 diff)
-
wp-includes/post.php (modified) (3 diffs)
-
xmlrpc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/wp-includes/category-template.php
r4774 r5083 63 63 global $post, $category_cache, $blog_id; 64 64 65 $id = (int) $id; 65 66 if ( !$id ) 66 67 $id = $post->ID; -
branches/2.1/wp-includes/post.php
r5030 r5083 448 448 449 449 function wp_get_post_categories($post_id = 0) { 450 $post_id = (int) $post_id; 451 450 452 $cats = &get_the_category($post_id); 451 453 $cat_ids = array(); … … 459 461 460 462 // Set the limit clause, if we got a limit 463 $num = (int) $num; 461 464 if ($num) { 462 465 $limit = "LIMIT $num"; … … 471 474 function wp_get_single_post($postid = 0, $mode = OBJECT) { 472 475 global $wpdb; 476 477 $postid = (int) $postid; 473 478 474 479 $post = get_post($postid, $mode); -
branches/2.1/xmlrpc.php
r5075 r5083 412 412 $this->escape($args); 413 413 414 $post_ID = $args[1];414 $post_ID = (int) $args[1]; 415 415 $user_login = $args[2]; 416 416 $user_pass = $args[3]; … … 601 601 $this->escape($args); 602 602 603 $post_ID = $args[0];603 $post_ID = (int) $args[0]; 604 604 $user_login = $args[1]; 605 605 $user_pass = $args[2];
Note: See TracChangeset
for help on using the changeset viewer.