Changeset 5083 for branches/2.1/wp-includes/post.php
- Timestamp:
- 03/22/2007 09:40:54 PM (19 years ago)
- File:
-
- 1 edited
-
branches/2.1/wp-includes/post.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)