Changeset 6364 for trunk/wp-includes/category.php
- Timestamp:
- 12/06/2007 07:49:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category.php
r6125 r6364 2 2 3 3 function get_all_category_ids() { 4 global $wpdb;5 6 4 if ( ! $cat_ids = wp_cache_get('all_category_ids', 'category') ) { 7 5 $cat_ids = get_terms('category', 'fields=ids&get=all'); … … 40 38 41 39 function get_category_by_path($category_path, $full_match = true, $output = OBJECT) { 42 global $wpdb;43 40 $category_path = rawurlencode(urldecode($category_path)); 44 41 $category_path = str_replace('%2F', '/', $category_path); … … 87 84 // Get the ID of a category from its name 88 85 function get_cat_ID($cat_name='General') { 89 global $wpdb;90 91 86 $cat = get_term_by('name', $cat_name, 'category'); 92 87 if ($cat) … … 133 128 134 129 function &get_tags($args = '') { 135 global $wpdb, $category_links;136 137 130 $key = md5( serialize( $args ) ); 138 131 if ( $cache = wp_cache_get( 'get_tags', 'category' ) )
Note: See TracChangeset
for help on using the changeset viewer.