[wp-cvs] wordpress/wp-includes functions-post.php,1.38,1.39
Ryan Boren
rboren at users.sourceforge.net
Sat Feb 5 20:45:52 GMT 2005
Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29014
Modified Files:
functions-post.php
Log Message:
Respect the mode. Props: ringmaster. http://mosquito.wordpress.org/view.php?id=804
Index: functions-post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions-post.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** functions-post.php 2 Feb 2005 08:40:44 -0000 1.38
--- functions-post.php 5 Feb 2005 20:45:50 -0000 1.39
***************
*** 65,69 ****
// Set categories
! $result['post_category'] = wp_get_post_cats('',$postid);
return $result;
--- 65,74 ----
// Set categories
! if($mode == OBJECT) {
! $result->post_category = wp_get_post_cats('',$postid);
! }
! else {
! $result['post_category'] = wp_get_post_cats('',$postid);
! }
return $result;
More information about the cvs
mailing list