More int casts

git-svn-id: https://develop.svn.wordpress.org/trunk@5082 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-03-22 20:52:29 +00:00
parent 8357362440
commit 77559c20b4
3 changed files with 8 additions and 3 deletions
+4
View File
@@ -447,6 +447,8 @@ function wp_delete_post($postid = 0) {
}
function wp_get_post_categories($post_id = 0) {
$post_id = (int) $post_id;
$cats = &get_the_category($post_id);
$cat_ids = array();
foreach ( $cats as $cat )
@@ -471,6 +473,8 @@ function wp_get_recent_posts($num = 10) {
function wp_get_single_post($postid = 0, $mode = OBJECT) {
global $wpdb;
$postid = (int) $postid;
$post = get_post($postid, $mode);
// Set categories