Ticket #16718: 16718.patch
| File 16718.patch, 736 bytes (added by , 16 years ago) |
|---|
-
wp-includes/category-template.php
226 226 * As of 2.7, the function can be used anywhere if it is provided a post ID or post object. 227 227 * 228 228 * @since 1.2.0 229 * @uses has_category() 229 230 * 230 231 * @param int|string|array $category Category ID, name or slug, or array of said. 231 232 * @param int|object $_post Optional. Post to check instead of the current post. (since 2.7.0) … … 235 236 if ( empty( $category ) ) 236 237 return false; 237 238 238 return has_ term( $category, 'category', $post );239 return has_category( $category, $post ); 239 240 } 240 241 241 242 /**