mp-wp_genesis 1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * Deprecated functions from past WordPress versions. You shouldn't use these
mp-wp_genesis 4 * globals and functions and look for the alternatives instead. The functions
mp-wp_genesis 5 * and globals will be removed in a later version.
mp-wp_genesis 6 *
mp-wp_genesis 7 * @package WordPress
mp-wp_genesis 8 * @subpackage Deprecated
mp-wp_genesis 9 */
mp-wp_genesis 10
mp-wp_genesis 11 /*
mp-wp_genesis 12 * Deprecated global variables.
mp-wp_genesis 13 */
mp-wp_genesis 14
mp-wp_genesis 15 /**
mp-wp_genesis 16 * The name of the Posts table
mp-wp_genesis 17 * @global string $tableposts
mp-wp_genesis 18 * @deprecated Use $wpdb->posts
mp-wp_genesis 19 */
mp-wp_genesis 20 $tableposts = $wpdb->posts;
mp-wp_genesis 21
mp-wp_genesis 22 /**
mp-wp_genesis 23 * The name of the Users table
mp-wp_genesis 24 * @global string $tableusers
mp-wp_genesis 25 * @deprecated Use $wpdb->users
mp-wp_genesis 26 */
mp-wp_genesis 27 $tableusers = $wpdb->users;
mp-wp_genesis 28
mp-wp_genesis 29 /**
mp-wp_genesis 30 * The name of the Categories table
mp-wp_genesis 31 * @global string $tablecategories
mp-wp_genesis 32 * @deprecated Use $wpdb->categories
mp-wp_genesis 33 */
mp-wp_genesis 34 $tablecategories = $wpdb->categories;
mp-wp_genesis 35
mp-wp_genesis 36 /**
mp-wp_genesis 37 * The name of the post to category table
mp-wp_genesis 38 * @global string $tablepost2cat
mp-wp_genesis 39 * @deprecated Use $wpdb->post2cat;
mp-wp_genesis 40 */
mp-wp_genesis 41 $tablepost2cat = $wpdb->post2cat;
mp-wp_genesis 42
mp-wp_genesis 43 /**
mp-wp_genesis 44 * The name of the comments table
mp-wp_genesis 45 * @global string $tablecomments
mp-wp_genesis 46 * @deprecated Use $wpdb->comments;
mp-wp_genesis 47 */
mp-wp_genesis 48 $tablecomments = $wpdb->comments;
mp-wp_genesis 49
mp-wp_genesis 50 /**
mp-wp_genesis 51 * The name of the links table
mp-wp_genesis 52 * @global string $tablelinks
mp-wp_genesis 53 * @deprecated Use $wpdb->links;
mp-wp_genesis 54 */
mp-wp_genesis 55 $tablelinks = $wpdb->links;
mp-wp_genesis 56
mp-wp_genesis 57 /**
mp-wp_genesis 58 * @global string $tablelinkcategories
mp-wp_genesis 59 * @deprecated Not used anymore;
mp-wp_genesis 60 */
mp-wp_genesis 61 $tablelinkcategories = 'linkcategories_is_gone';
mp-wp_genesis 62
mp-wp_genesis 63 /**
mp-wp_genesis 64 * The name of the options table
mp-wp_genesis 65 * @global string $tableoptions
mp-wp_genesis 66 * @deprecated Use $wpdb->options;
mp-wp_genesis 67 */
mp-wp_genesis 68 $tableoptions = $wpdb->options;
mp-wp_genesis 69
mp-wp_genesis 70 /**
mp-wp_genesis 71 * The name of the postmeta table
mp-wp_genesis 72 * @global string $tablepostmeta
mp-wp_genesis 73 * @deprecated Use $wpdb->postmeta;
mp-wp_genesis 74 */
mp-wp_genesis 75 $tablepostmeta = $wpdb->postmeta;
mp-wp_genesis 76
mp-wp_genesis 77 /*
mp-wp_genesis 78 * Deprecated functions come here to die.
mp-wp_genesis 79 */
mp-wp_genesis 80
mp-wp_genesis 81 /**
mp-wp_genesis 82 * @since 0.71
mp-wp_genesis 83 * @deprecated Use wp_list_categories()
mp-wp_genesis 84 * @see wp_list_categories()
mp-wp_genesis 85 *
mp-wp_genesis 86 * @param int $optionall
mp-wp_genesis 87 * @param string $all
mp-wp_genesis 88 * @param string $sort_column
mp-wp_genesis 89 * @param string $sort_order
mp-wp_genesis 90 * @param string $file
mp-wp_genesis 91 * @param bool $list
mp-wp_genesis 92 * @param int $optiondates
mp-wp_genesis 93 * @param int $optioncount
mp-wp_genesis 94 * @param int $hide_empty
mp-wp_genesis 95 * @param int $use_desc_for_title
mp-wp_genesis 96 * @param bool $children
mp-wp_genesis 97 * @param int $child_of
mp-wp_genesis 98 * @param int $categories
mp-wp_genesis 99 * @param int $recurse
mp-wp_genesis 100 * @param string $feed
mp-wp_genesis 101 * @param string $feed_image
mp-wp_genesis 102 * @param string $exclude
mp-wp_genesis 103 * @param bool $hierarchical
mp-wp_genesis 104 * @return unknown
mp-wp_genesis 105 */
mp-wp_genesis 106 function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0,
mp-wp_genesis 107 $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0,
mp-wp_genesis 108 $recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) {
mp-wp_genesis 109 _deprecated_function(__FUNCTION__, '0.0', 'wp_list_categories()');
mp-wp_genesis 110
mp-wp_genesis 111 $query = compact('optionall', 'all', 'sort_column', 'sort_order', 'file', 'list', 'optiondates', 'optioncount', 'hide_empty', 'use_desc_for_title', 'children',
mp-wp_genesis 112 'child_of', 'categories', 'recurse', 'feed', 'feed_image', 'exclude', 'hierarchical');
mp-wp_genesis 113 return wp_list_cats($query);
mp-wp_genesis 114 }
mp-wp_genesis 115
mp-wp_genesis 116 /**
mp-wp_genesis 117 * @since 1.2
mp-wp_genesis 118 * @deprecated Use wp_list_categories()
mp-wp_genesis 119 * @see wp_list_categories()
mp-wp_genesis 120 *
mp-wp_genesis 121 * @param string|array $args
mp-wp_genesis 122 * @return unknown
mp-wp_genesis 123 */
mp-wp_genesis 124 function wp_list_cats($args = '') {
mp-wp_genesis 125 _deprecated_function(__FUNCTION__, '0.0', 'wp_list_categories()');
mp-wp_genesis 126
mp-wp_genesis 127 $r = wp_parse_args( $args );
mp-wp_genesis 128
mp-wp_genesis 129 // Map to new names.
mp-wp_genesis 130 if ( isset($r['optionall']) && isset($r['all']))
mp-wp_genesis 131 $r['show_option_all'] = $r['all'];
mp-wp_genesis 132 if ( isset($r['sort_column']) )
mp-wp_genesis 133 $r['orderby'] = $r['sort_column'];
mp-wp_genesis 134 if ( isset($r['sort_order']) )
mp-wp_genesis 135 $r['order'] = $r['sort_order'];
mp-wp_genesis 136 if ( isset($r['optiondates']) )
mp-wp_genesis 137 $r['show_last_update'] = $r['optiondates'];
mp-wp_genesis 138 if ( isset($r['optioncount']) )
mp-wp_genesis 139 $r['show_count'] = $r['optioncount'];
mp-wp_genesis 140 if ( isset($r['list']) )
mp-wp_genesis 141 $r['style'] = $r['list'] ? 'list' : 'break';
mp-wp_genesis 142 $r['title_li'] = '';
mp-wp_genesis 143
mp-wp_genesis 144 return wp_list_categories($r);
mp-wp_genesis 145 }
mp-wp_genesis 146