Changeset 5082
- Timestamp:
- 03/22/2007 08:52:29 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
wp-includes/category-template.php (modified) (1 diff)
-
wp-includes/post.php (modified) (2 diffs)
-
xmlrpc.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r5019 r5082 63 63 global $post, $category_cache, $blog_id; 64 64 65 $id = (int) $id; 65 66 if ( !$id ) 66 67 $id = $post->ID; -
trunk/wp-includes/post.php
r5029 r5082 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(); … … 471 473 function wp_get_single_post($postid = 0, $mode = OBJECT) { 472 474 global $wpdb; 475 476 $postid = (int) $postid; 473 477 474 478 $post = get_post($postid, $mode); -
trunk/xmlrpc.php
r5074 r5082 362 362 // Items not escaped here will be escaped in editPost. 363 363 $blog_id = $args[0]; 364 $page_id = $this->escape( $args[1]);364 $page_id = $this->escape((int) $args[1]); 365 365 $username = $this->escape($args[2]); 366 366 $password = $this->escape($args[3]); … … 823 823 $this->escape($args); 824 824 825 $post_ID = $args[1];825 $post_ID = (int) $args[1]; 826 826 $user_login = $args[2]; 827 827 $user_pass = $args[3]; … … 1065 1065 $this->escape($args); 1066 1066 1067 $post_ID = $args[0];1067 $post_ID = (int) $args[0]; 1068 1068 $user_login = $args[1]; 1069 1069 $user_pass = $args[2];
Note: See TracChangeset
for help on using the changeset viewer.