posts */ $tableposts = $wpdb->posts; /** * The name of the Users table * @global string $tableusers * @deprecated Use $wpdb->users */ $tableusers = $wpdb->users; /** * The name of the Categories table * @global string $tablecategories * @deprecated Use $wpdb->categories */ $tablecategories = $wpdb->categories; /** * The name of the post to category table * @global string $tablepost2cat * @deprecated Use $wpdb->post2cat; */ $tablepost2cat = $wpdb->post2cat; /** * The name of the comments table * @global string $tablecomments * @deprecated Use $wpdb->comments; */ $tablecomments = $wpdb->comments; /** * The name of the links table * @global string $tablelinks * @deprecated Use $wpdb->links; */ $tablelinks = $wpdb->links; /** * @global string $tablelinkcategories * @deprecated Not used anymore; */ $tablelinkcategories = 'linkcategories_is_gone'; /** * The name of the options table * @global string $tableoptions * @deprecated Use $wpdb->options; */ $tableoptions = $wpdb->options; /** * The name of the postmeta table * @global string $tablepostmeta * @deprecated Use $wpdb->postmeta; */ $tablepostmeta = $wpdb->postmeta; /* * Deprecated functions come here to die. */ /** * @since 0.71 * @deprecated Use wp_list_categories() * @see wp_list_categories() * * @param int $optionall * @param string $all * @param string $sort_column * @param string $sort_order * @param string $file * @param bool $list * @param int $optiondates * @param int $optioncount * @param int $hide_empty * @param int $use_desc_for_title * @param bool $children * @param int $child_of * @param int $categories * @param int $recurse * @param string $feed * @param string $feed_image * @param string $exclude * @param bool $hierarchical * @return unknown */ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0, $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0, $recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) { _deprecated_function(__FUNCTION__, '0.0', 'wp_list_categories()'); $query = compact('optionall', 'all', 'sort_column', 'sort_order', 'file', 'list', 'optiondates', 'optioncount', 'hide_empty', 'use_desc_for_title', 'children', 'child_of', 'categories', 'recurse', 'feed', 'feed_image', 'exclude', 'hierarchical'); return wp_list_cats($query); } /** * @since 1.2 * @deprecated Use wp_list_categories() * @see wp_list_categories() * * @param string|array $args * @return unknown */ function wp_list_cats($args = '') { _deprecated_function(__FUNCTION__, '0.0', 'wp_list_categories()'); $r = wp_parse_args( $args ); // Map to new names. if ( isset($r['optionall']) && isset($r['all'])) $r['show_option_all'] = $r['all']; if ( isset($r['sort_column']) ) $r['orderby'] = $r['sort_column']; if ( isset($r['sort_order']) ) $r['order'] = $r['sort_order']; if ( isset($r['optiondates']) ) $r['show_last_update'] = $r['optiondates']; if ( isset($r['optioncount']) ) $r['show_count'] = $r['optioncount']; if ( isset($r['list']) ) $r['style'] = $r['list'] ? 'list' : 'break'; $r['title_li'] = ''; return wp_list_categories($r); }