raw
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 * Entire Post data.
mp-wp_genesis 83 *
mp-wp_genesis 84 * @since 0.71
mp-wp_genesis 85 * @deprecated Use get_post()
mp-wp_genesis 86 * @see get_post()
mp-wp_genesis 87 *
mp-wp_genesis 88 * @param int $postid
mp-wp_genesis 89 * @return array
mp-wp_genesis 90 */
mp-wp_genesis 91 function get_postdata($postid) {
mp-wp_genesis 92 _deprecated_function(__FUNCTION__, '0.0', 'get_post()');
mp-wp_genesis 93
mp-wp_genesis 94 $post = &get_post($postid);
mp-wp_genesis 95
mp-wp_genesis 96 $postdata = array (
mp-wp_genesis 97 'ID' => $post->ID,
mp-wp_genesis 98 'Author_ID' => $post->post_author,
mp-wp_genesis 99 'Date' => $post->post_date,
mp-wp_genesis 100 'Content' => $post->post_content,
mp-wp_genesis 101 'Excerpt' => $post->post_excerpt,
mp-wp_genesis 102 'Title' => $post->post_title,
mp-wp_genesis 103 'Category' => $post->post_category,
mp-wp_genesis 104 'post_status' => $post->post_status,
mp-wp_genesis 105 'comment_status' => $post->comment_status,
mp-wp_genesis 106 'ping_status' => $post->ping_status,
mp-wp_genesis 107 'post_password' => $post->post_password,
mp-wp_genesis 108 'to_ping' => $post->to_ping,
mp-wp_genesis 109 'pinged' => $post->pinged,
mp-wp_genesis 110 'post_type' => $post->post_type,
mp-wp_genesis 111 'post_name' => $post->post_name
mp-wp_genesis 112 );
mp-wp_genesis 113
mp-wp_genesis 114 return $postdata;
mp-wp_genesis 115 }
mp-wp_genesis 116
mp-wp_genesis 117 /**
mp-wp_genesis 118 * Sets up the WordPress Loop.
mp-wp_genesis 119 *
mp-wp_genesis 120 * @since 1.0.1
mp-wp_genesis 121 * @deprecated Since 1.5 - {@link http://codex.wordpress.org/The_Loop Use new WordPress Loop}
mp-wp_genesis 122 */
mp-wp_genesis 123 function start_wp() {
mp-wp_genesis 124 global $wp_query, $post;
mp-wp_genesis 125
mp-wp_genesis 126 _deprecated_function(__FUNCTION__, '1.5', __('new WordPress Loop') );
mp-wp_genesis 127
mp-wp_genesis 128 // Since the old style loop is being used, advance the query iterator here.
mp-wp_genesis 129 $wp_query->next_post();
mp-wp_genesis 130
mp-wp_genesis 131 setup_postdata($post);
mp-wp_genesis 132 }
mp-wp_genesis 133
mp-wp_genesis 134 /**
mp-wp_genesis 135 * Return or Print Category ID.
mp-wp_genesis 136 *
mp-wp_genesis 137 * @since 0.71
mp-wp_genesis 138 * @deprecated use get_the_category()
mp-wp_genesis 139 * @see get_the_category()
mp-wp_genesis 140 *
mp-wp_genesis 141 * @param bool $echo
mp-wp_genesis 142 * @return null|int
mp-wp_genesis 143 */
mp-wp_genesis 144 function the_category_ID($echo = true) {
mp-wp_genesis 145 _deprecated_function(__FUNCTION__, '0.0', 'get_the_category()');
mp-wp_genesis 146
mp-wp_genesis 147 // Grab the first cat in the list.
mp-wp_genesis 148 $categories = get_the_category();
mp-wp_genesis 149 $cat = $categories[0]->term_id;
mp-wp_genesis 150
mp-wp_genesis 151 if ( $echo )
mp-wp_genesis 152 echo $cat;
mp-wp_genesis 153
mp-wp_genesis 154 return $cat;
mp-wp_genesis 155 }
mp-wp_genesis 156
mp-wp_genesis 157 /**
mp-wp_genesis 158 * Print category with optional text before and after.
mp-wp_genesis 159 *
mp-wp_genesis 160 * @since 0.71
mp-wp_genesis 161 * @deprecated use get_the_category_by_ID()
mp-wp_genesis 162 * @see get_the_category_by_ID()
mp-wp_genesis 163 *
mp-wp_genesis 164 * @param string $before
mp-wp_genesis 165 * @param string $after
mp-wp_genesis 166 */
mp-wp_genesis 167 function the_category_head($before='', $after='') {
mp-wp_genesis 168 global $currentcat, $previouscat;
mp-wp_genesis 169
mp-wp_genesis 170 _deprecated_function(__FUNCTION__, '0.0', 'get_the_category_by_ID()');
mp-wp_genesis 171
mp-wp_genesis 172 // Grab the first cat in the list.
mp-wp_genesis 173 $categories = get_the_category();
mp-wp_genesis 174 $currentcat = $categories[0]->category_id;
mp-wp_genesis 175 if ( $currentcat != $previouscat ) {
mp-wp_genesis 176 echo $before;
mp-wp_genesis 177 echo get_the_category_by_ID($currentcat);
mp-wp_genesis 178 echo $after;
mp-wp_genesis 179 $previouscat = $currentcat;
mp-wp_genesis 180 }
mp-wp_genesis 181 }
mp-wp_genesis 182
mp-wp_genesis 183 /**
mp-wp_genesis 184 * Prints link to the previous post.
mp-wp_genesis 185 *
mp-wp_genesis 186 * @since 1.5
mp-wp_genesis 187 * @deprecated Use previous_post_link()
mp-wp_genesis 188 * @see previous_post_link()
mp-wp_genesis 189 *
mp-wp_genesis 190 * @param string $format
mp-wp_genesis 191 * @param string $previous
mp-wp_genesis 192 * @param string $title
mp-wp_genesis 193 * @param string $in_same_cat
mp-wp_genesis 194 * @param int $limitprev
mp-wp_genesis 195 * @param string $excluded_categories
mp-wp_genesis 196 */
mp-wp_genesis 197 function previous_post($format='%', $previous='previous post: ', $title='yes', $in_same_cat='no', $limitprev=1, $excluded_categories='') {
mp-wp_genesis 198
mp-wp_genesis 199 _deprecated_function(__FUNCTION__, '0.0', 'previous_post_link()');
mp-wp_genesis 200
mp-wp_genesis 201 if ( empty($in_same_cat) || 'no' == $in_same_cat )
mp-wp_genesis 202 $in_same_cat = false;
mp-wp_genesis 203 else
mp-wp_genesis 204 $in_same_cat = true;
mp-wp_genesis 205
mp-wp_genesis 206 $post = get_previous_post($in_same_cat, $excluded_categories);
mp-wp_genesis 207
mp-wp_genesis 208 if ( !$post )
mp-wp_genesis 209 return;
mp-wp_genesis 210
mp-wp_genesis 211 $string = '<a href="'.get_permalink($post->ID).'">'.$previous;
mp-wp_genesis 212 if ( 'yes' == $title )
mp-wp_genesis 213 $string .= apply_filters('the_title', $post->post_title, $post);
mp-wp_genesis 214 $string .= '</a>';
mp-wp_genesis 215 $format = str_replace('%', $string, $format);
mp-wp_genesis 216 echo $format;
mp-wp_genesis 217 }
mp-wp_genesis 218
mp-wp_genesis 219 /**
mp-wp_genesis 220 * Prints link to the next post.
mp-wp_genesis 221 *
mp-wp_genesis 222 * @since 0.71
mp-wp_genesis 223 * @deprecated Use next_post_link()
mp-wp_genesis 224 * @see next_post_link()
mp-wp_genesis 225 *
mp-wp_genesis 226 * @param string $format
mp-wp_genesis 227 * @param string $previous
mp-wp_genesis 228 * @param string $title
mp-wp_genesis 229 * @param string $in_same_cat
mp-wp_genesis 230 * @param int $limitprev
mp-wp_genesis 231 * @param string $excluded_categories
mp-wp_genesis 232 */
mp-wp_genesis 233 function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat='no', $limitnext=1, $excluded_categories='') {
mp-wp_genesis 234 _deprecated_function(__FUNCTION__, '0.0', 'next_post_link()');
mp-wp_genesis 235
mp-wp_genesis 236 if ( empty($in_same_cat) || 'no' == $in_same_cat )
mp-wp_genesis 237 $in_same_cat = false;
mp-wp_genesis 238 else
mp-wp_genesis 239 $in_same_cat = true;
mp-wp_genesis 240
mp-wp_genesis 241 $post = get_next_post($in_same_cat, $excluded_categories);
mp-wp_genesis 242
mp-wp_genesis 243 if ( !$post )
mp-wp_genesis 244 return;
mp-wp_genesis 245
mp-wp_genesis 246 $string = '<a href="'.get_permalink($post->ID).'">'.$next;
mp-wp_genesis 247 if ( 'yes' == $title )
mp-wp_genesis 248 $string .= apply_filters('the_title', $post->post_title, $nextpost);
mp-wp_genesis 249 $string .= '</a>';
mp-wp_genesis 250 $format = str_replace('%', $string, $format);
mp-wp_genesis 251 echo $format;
mp-wp_genesis 252 }
mp-wp_genesis 253
mp-wp_genesis 254 /**
mp-wp_genesis 255 * Whether user can create a post.
mp-wp_genesis 256 *
mp-wp_genesis 257 * @since 1.5
mp-wp_genesis 258 * @deprecated Use current_user_can()
mp-wp_genesis 259 * @see current_user_can()
mp-wp_genesis 260 *
mp-wp_genesis 261 * @param int $user_id
mp-wp_genesis 262 * @param int $blog_id Not Used
mp-wp_genesis 263 * @param int $category_id Not Used
mp-wp_genesis 264 * @return bool
mp-wp_genesis 265 */
mp-wp_genesis 266 function user_can_create_post($user_id, $blog_id = 1, $category_id = 'None') {
mp-wp_genesis 267 _deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
mp-wp_genesis 268
mp-wp_genesis 269 $author_data = get_userdata($user_id);
mp-wp_genesis 270 return ($author_data->user_level > 1);
mp-wp_genesis 271 }
mp-wp_genesis 272
mp-wp_genesis 273 /**
mp-wp_genesis 274 * Whether user can create a post.
mp-wp_genesis 275 *
mp-wp_genesis 276 * @since 1.5
mp-wp_genesis 277 * @deprecated Use current_user_can()
mp-wp_genesis 278 * @see current_user_can()
mp-wp_genesis 279 *
mp-wp_genesis 280 * @param int $user_id
mp-wp_genesis 281 * @param int $blog_id Not Used
mp-wp_genesis 282 * @param int $category_id Not Used
mp-wp_genesis 283 * @return bool
mp-wp_genesis 284 */
mp-wp_genesis 285 function user_can_create_draft($user_id, $blog_id = 1, $category_id = 'None') {
mp-wp_genesis 286 _deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
mp-wp_genesis 287
mp-wp_genesis 288 $author_data = get_userdata($user_id);
mp-wp_genesis 289 return ($author_data->user_level >= 1);
mp-wp_genesis 290 }
mp-wp_genesis 291
mp-wp_genesis 292 /**
mp-wp_genesis 293 * Whether user can edit a post.
mp-wp_genesis 294 *
mp-wp_genesis 295 * @since 1.5
mp-wp_genesis 296 * @deprecated Use current_user_can()
mp-wp_genesis 297 * @see current_user_can()
mp-wp_genesis 298 *
mp-wp_genesis 299 * @param int $user_id
mp-wp_genesis 300 * @param int $post_id
mp-wp_genesis 301 * @param int $blog_id Not Used
mp-wp_genesis 302 * @return bool
mp-wp_genesis 303 */
mp-wp_genesis 304 function user_can_edit_post($user_id, $post_id, $blog_id = 1) {
mp-wp_genesis 305 _deprecated_function(__FUNCTION__, '0', 'current_user_can()');
mp-wp_genesis 306
mp-wp_genesis 307 $author_data = get_userdata($user_id);
mp-wp_genesis 308 $post = get_post($post_id);
mp-wp_genesis 309 $post_author_data = get_userdata($post->post_author);
mp-wp_genesis 310
mp-wp_genesis 311 if ( (($user_id == $post_author_data->ID) && !($post->post_status == 'publish' && $author_data->user_level < 2))
mp-wp_genesis 312 || ($author_data->user_level > $post_author_data->user_level)
mp-wp_genesis 313 || ($author_data->user_level >= 10) ) {
mp-wp_genesis 314 return true;
mp-wp_genesis 315 } else {
mp-wp_genesis 316 return false;
mp-wp_genesis 317 }
mp-wp_genesis 318 }
mp-wp_genesis 319
mp-wp_genesis 320 /**
mp-wp_genesis 321 * Whether user can delete a post.
mp-wp_genesis 322 *
mp-wp_genesis 323 * @since 1.5
mp-wp_genesis 324 * @deprecated Use current_user_can()
mp-wp_genesis 325 * @see current_user_can()
mp-wp_genesis 326 *
mp-wp_genesis 327 * @param int $user_id
mp-wp_genesis 328 * @param int $post_id
mp-wp_genesis 329 * @param int $blog_id Not Used
mp-wp_genesis 330 * @return bool
mp-wp_genesis 331 */
mp-wp_genesis 332 function user_can_delete_post($user_id, $post_id, $blog_id = 1) {
mp-wp_genesis 333 _deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
mp-wp_genesis 334
mp-wp_genesis 335 // right now if one can edit, one can delete
mp-wp_genesis 336 return user_can_edit_post($user_id, $post_id, $blog_id);
mp-wp_genesis 337 }
mp-wp_genesis 338
mp-wp_genesis 339 /**
mp-wp_genesis 340 * Whether user can set new posts' dates.
mp-wp_genesis 341 *
mp-wp_genesis 342 * @since 1.5
mp-wp_genesis 343 * @deprecated Use current_user_can()
mp-wp_genesis 344 * @see current_user_can()
mp-wp_genesis 345 *
mp-wp_genesis 346 * @param int $user_id
mp-wp_genesis 347 * @param int $blog_id Not Used
mp-wp_genesis 348 * @param int $category_id Not Used
mp-wp_genesis 349 * @return bool
mp-wp_genesis 350 */
mp-wp_genesis 351 function user_can_set_post_date($user_id, $blog_id = 1, $category_id = 'None') {
mp-wp_genesis 352 _deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
mp-wp_genesis 353
mp-wp_genesis 354 $author_data = get_userdata($user_id);
mp-wp_genesis 355 return (($author_data->user_level > 4) && user_can_create_post($user_id, $blog_id, $category_id));
mp-wp_genesis 356 }
mp-wp_genesis 357
mp-wp_genesis 358 /**
mp-wp_genesis 359 * Whether user can delete a post.
mp-wp_genesis 360 *
mp-wp_genesis 361 * @since 1.5
mp-wp_genesis 362 * @deprecated Use current_user_can()
mp-wp_genesis 363 * @see current_user_can()
mp-wp_genesis 364 *
mp-wp_genesis 365 * @param int $user_id
mp-wp_genesis 366 * @param int $post_id
mp-wp_genesis 367 * @param int $blog_id Not Used
mp-wp_genesis 368 * @return bool returns true if $user_id can edit $post_id's date
mp-wp_genesis 369 */
mp-wp_genesis 370 function user_can_edit_post_date($user_id, $post_id, $blog_id = 1) {
mp-wp_genesis 371 _deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
mp-wp_genesis 372
mp-wp_genesis 373 $author_data = get_userdata($user_id);
mp-wp_genesis 374 return (($author_data->user_level > 4) && user_can_edit_post($user_id, $post_id, $blog_id));
mp-wp_genesis 375 }
mp-wp_genesis 376
mp-wp_genesis 377 /**
mp-wp_genesis 378 * Whether user can delete a post.
mp-wp_genesis 379 *
mp-wp_genesis 380 * @since 1.5
mp-wp_genesis 381 * @deprecated Use current_user_can()
mp-wp_genesis 382 * @see current_user_can()
mp-wp_genesis 383 *
mp-wp_genesis 384 * @param int $user_id
mp-wp_genesis 385 * @param int $post_id
mp-wp_genesis 386 * @param int $blog_id Not Used
mp-wp_genesis 387 * @return bool returns true if $user_id can edit $post_id's comments
mp-wp_genesis 388 */
mp-wp_genesis 389 function user_can_edit_post_comments($user_id, $post_id, $blog_id = 1) {
mp-wp_genesis 390 _deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
mp-wp_genesis 391
mp-wp_genesis 392 // right now if one can edit a post, one can edit comments made on it
mp-wp_genesis 393 return user_can_edit_post($user_id, $post_id, $blog_id);
mp-wp_genesis 394 }
mp-wp_genesis 395
mp-wp_genesis 396 /**
mp-wp_genesis 397 * Whether user can delete a post.
mp-wp_genesis 398 *
mp-wp_genesis 399 * @since 1.5
mp-wp_genesis 400 * @deprecated Use current_user_can()
mp-wp_genesis 401 * @see current_user_can()
mp-wp_genesis 402 *
mp-wp_genesis 403 * @param int $user_id
mp-wp_genesis 404 * @param int $post_id
mp-wp_genesis 405 * @param int $blog_id Not Used
mp-wp_genesis 406 * @return bool returns true if $user_id can delete $post_id's comments
mp-wp_genesis 407 */
mp-wp_genesis 408 function user_can_delete_post_comments($user_id, $post_id, $blog_id = 1) {
mp-wp_genesis 409 _deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
mp-wp_genesis 410
mp-wp_genesis 411 // right now if one can edit comments, one can delete comments
mp-wp_genesis 412 return user_can_edit_post_comments($user_id, $post_id, $blog_id);
mp-wp_genesis 413 }
mp-wp_genesis 414
mp-wp_genesis 415 /**
mp-wp_genesis 416 * Can user can edit other user.
mp-wp_genesis 417 *
mp-wp_genesis 418 * @since 1.5
mp-wp_genesis 419 * @deprecated Use current_user_can()
mp-wp_genesis 420 * @see current_user_can()
mp-wp_genesis 421 *
mp-wp_genesis 422 * @param int $user_id
mp-wp_genesis 423 * @param int $other_user
mp-wp_genesis 424 * @return bool
mp-wp_genesis 425 */
mp-wp_genesis 426 function user_can_edit_user($user_id, $other_user) {
mp-wp_genesis 427 _deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
mp-wp_genesis 428
mp-wp_genesis 429 $user = get_userdata($user_id);
mp-wp_genesis 430 $other = get_userdata($other_user);
mp-wp_genesis 431 if ( $user->user_level > $other->user_level || $user->user_level > 8 || $user->ID == $other->ID )
mp-wp_genesis 432 return true;
mp-wp_genesis 433 else
mp-wp_genesis 434 return false;
mp-wp_genesis 435 }
mp-wp_genesis 436
mp-wp_genesis 437 /**
mp-wp_genesis 438 * Gets the links associated with category $cat_name.
mp-wp_genesis 439 *
mp-wp_genesis 440 * @since 0.71
mp-wp_genesis 441 * @deprecated Use get_links()
mp-wp_genesis 442 * @see get_links()
mp-wp_genesis 443 *
mp-wp_genesis 444 * @param string $cat_name Optional. The category name to use. If no match is found uses all.
mp-wp_genesis 445 * @param string $before Optional. The html to output before the link.
mp-wp_genesis 446 * @param string $after Optional. The html to output after the link.
mp-wp_genesis 447 * @param string $between Optional. The html to output between the link/image and it's description. Not used if no image or $show_images is true.
mp-wp_genesis 448 * @param bool $show_images Optional. Whether to show images (if defined).
mp-wp_genesis 449 * @param string $orderby Optional. The order to output the links. E.g. 'id', 'name', 'url', 'description' or 'rating'. Or maybe owner.
mp-wp_genesis 450 * If you start the name with an underscore the order will be reversed. You can also specify 'rand' as the order which will return links in a
mp-wp_genesis 451 * random order.
mp-wp_genesis 452 * @param bool $show_description Optional. Whether to show the description if show_images=false/not defined.
mp-wp_genesis 453 * @param bool $show_rating Optional. Show rating stars/chars.
mp-wp_genesis 454 * @param int $limit Optional. Limit to X entries. If not specified, all entries are shown.
mp-wp_genesis 455 * @param int $show_updated Optional. Whether to show last updated timestamp
mp-wp_genesis 456 */
mp-wp_genesis 457 function get_linksbyname($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id',
mp-wp_genesis 458 $show_description = true, $show_rating = false,
mp-wp_genesis 459 $limit = -1, $show_updated = 0) {
mp-wp_genesis 460 _deprecated_function(__FUNCTION__, '0.0', 'get_links()');
mp-wp_genesis 461
mp-wp_genesis 462 $cat_id = -1;
mp-wp_genesis 463 $cat = get_term_by('name', $cat_name, 'link_category');
mp-wp_genesis 464 if ( $cat )
mp-wp_genesis 465 $cat_id = $cat->term_id;
mp-wp_genesis 466
mp-wp_genesis 467 get_links($cat_id, $before, $after, $between, $show_images, $orderby, $show_description, $show_rating, $limit, $show_updated);
mp-wp_genesis 468 }
mp-wp_genesis 469
mp-wp_genesis 470 /**
mp-wp_genesis 471 * Gets the links associated with the named category.
mp-wp_genesis 472 *
mp-wp_genesis 473 * @since 1.0.1
mp-wp_genesis 474 * @deprecated Use wp_get_links()
mp-wp_genesis 475 * @see wp_get_links()
mp-wp_genesis 476 *
mp-wp_genesis 477 * @param string $category The category to use.
mp-wp_genesis 478 * @param string $args
mp-wp_genesis 479 * @return bool|null
mp-wp_genesis 480 */
mp-wp_genesis 481 function wp_get_linksbyname($category, $args = '') {
mp-wp_genesis 482 _deprecated_function(__FUNCTION__, '0.0', 'wp_get_links()');
mp-wp_genesis 483
mp-wp_genesis 484 $cat = get_term_by('name', $category, 'link_category');
mp-wp_genesis 485 if ( !$cat )
mp-wp_genesis 486 return false;
mp-wp_genesis 487 $cat_id = $cat->term_id;
mp-wp_genesis 488
mp-wp_genesis 489 $args = add_query_arg('category', $cat_id, $args);
mp-wp_genesis 490 wp_get_links($args);
mp-wp_genesis 491 }
mp-wp_genesis 492
mp-wp_genesis 493 /**
mp-wp_genesis 494 * Gets an array of link objects associated with category $cat_name.
mp-wp_genesis 495 *
mp-wp_genesis 496 * <code>
mp-wp_genesis 497 * $links = get_linkobjectsbyname('fred');
mp-wp_genesis 498 * foreach ($links as $link) {
mp-wp_genesis 499 * echo '<li>'.$link->link_name.'</li>';
mp-wp_genesis 500 * }
mp-wp_genesis 501 * </code>
mp-wp_genesis 502 *
mp-wp_genesis 503 * @since 1.0.1
mp-wp_genesis 504 * @deprecated Use get_linkobjects()
mp-wp_genesis 505 * @see get_linkobjects()
mp-wp_genesis 506 *
mp-wp_genesis 507 * @param string $cat_name The category name to use. If no match is found uses all.
mp-wp_genesis 508 * @param string $orderby The order to output the links. E.g. 'id', 'name', 'url', 'description', or 'rating'.
mp-wp_genesis 509 * Or maybe owner. If you start the name with an underscore the order will be reversed. You can also
mp-wp_genesis 510 * specify 'rand' as the order which will return links in a random order.
mp-wp_genesis 511 * @param int $limit Limit to X entries. If not specified, all entries are shown.
mp-wp_genesis 512 * @return unknown
mp-wp_genesis 513 */
mp-wp_genesis 514 function get_linkobjectsbyname($cat_name = "noname" , $orderby = 'name', $limit = -1) {
mp-wp_genesis 515 _deprecated_function(__FUNCTION__, '0.0', 'get_linkobjects()');
mp-wp_genesis 516
mp-wp_genesis 517 $cat_id = -1;
mp-wp_genesis 518 $cat = get_term_by('name', $cat_name, 'link_category');
mp-wp_genesis 519 if ( $cat )
mp-wp_genesis 520 $cat_id = $cat->term_id;
mp-wp_genesis 521
mp-wp_genesis 522 return get_linkobjects($cat_id, $orderby, $limit);
mp-wp_genesis 523 }
mp-wp_genesis 524
mp-wp_genesis 525 /**
mp-wp_genesis 526 * Gets an array of link objects associated with category n.
mp-wp_genesis 527 *
mp-wp_genesis 528 * Usage:
mp-wp_genesis 529 * <code>
mp-wp_genesis 530 * $links = get_linkobjects(1);
mp-wp_genesis 531 * if ($links) {
mp-wp_genesis 532 * foreach ($links as $link) {
mp-wp_genesis 533 * echo '<li>'.$link->link_name.'<br />'.$link->link_description.'</li>';
mp-wp_genesis 534 * }
mp-wp_genesis 535 * }
mp-wp_genesis 536 * </code>
mp-wp_genesis 537 *
mp-wp_genesis 538 * Fields are:
mp-wp_genesis 539 * <ol>
mp-wp_genesis 540 * <li>link_id</li>
mp-wp_genesis 541 * <li>link_url</li>
mp-wp_genesis 542 * <li>link_name</li>
mp-wp_genesis 543 * <li>link_image</li>
mp-wp_genesis 544 * <li>link_target</li>
mp-wp_genesis 545 * <li>link_category</li>
mp-wp_genesis 546 * <li>link_description</li>
mp-wp_genesis 547 * <li>link_visible</li>
mp-wp_genesis 548 * <li>link_owner</li>
mp-wp_genesis 549 * <li>link_rating</li>
mp-wp_genesis 550 * <li>link_updated</li>
mp-wp_genesis 551 * <li>link_rel</li>
mp-wp_genesis 552 * <li>link_notes</li>
mp-wp_genesis 553 * </ol>
mp-wp_genesis 554 *
mp-wp_genesis 555 * @since 1.0.1
mp-wp_genesis 556 * @deprecated Use get_bookmarks()
mp-wp_genesis 557 * @see get_bookmarks()
mp-wp_genesis 558 *
mp-wp_genesis 559 * @param int $category The category to use. If no category supplied uses all
mp-wp_genesis 560 * @param string $orderby the order to output the links. E.g. 'id', 'name', 'url',
mp-wp_genesis 561 * 'description', or 'rating'. Or maybe owner. If you start the name with an
mp-wp_genesis 562 * underscore the order will be reversed. You can also specify 'rand' as the
mp-wp_genesis 563 * order which will return links in a random order.
mp-wp_genesis 564 * @param int $limit Limit to X entries. If not specified, all entries are shown.
mp-wp_genesis 565 * @return unknown
mp-wp_genesis 566 */
mp-wp_genesis 567 function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) {
mp-wp_genesis 568 _deprecated_function(__FUNCTION__, '0.0', 'get_bookmarks()');
mp-wp_genesis 569
mp-wp_genesis 570 $links = get_bookmarks("category=$category&orderby=$orderby&limit=$limit");
mp-wp_genesis 571
mp-wp_genesis 572 $links_array = array();
mp-wp_genesis 573 foreach ($links as $link)
mp-wp_genesis 574 $links_array[] = $link;
mp-wp_genesis 575
mp-wp_genesis 576 return $links_array;
mp-wp_genesis 577 }
mp-wp_genesis 578
mp-wp_genesis 579 /**
mp-wp_genesis 580 * Gets the links associated with category 'cat_name' and display rating stars/chars.
mp-wp_genesis 581 *
mp-wp_genesis 582 * @since 0.71
mp-wp_genesis 583 * @deprecated Use get_bookmarks()
mp-wp_genesis 584 * @see get_bookmarks()
mp-wp_genesis 585 *
mp-wp_genesis 586 * @param string $cat_name The category name to use. If no match is found uses all
mp-wp_genesis 587 * @param string $before The html to output before the link
mp-wp_genesis 588 * @param string $after The html to output after the link
mp-wp_genesis 589 * @param string $between The html to output between the link/image and it's description. Not used if no image or show_images is true
mp-wp_genesis 590 * @param bool $show_images Whether to show images (if defined).
mp-wp_genesis 591 * @param string $orderby the order to output the links. E.g. 'id', 'name', 'url',
mp-wp_genesis 592 * 'description', or 'rating'. Or maybe owner. If you start the name with an
mp-wp_genesis 593 * underscore the order will be reversed. You can also specify 'rand' as the
mp-wp_genesis 594 * order which will return links in a random order.
mp-wp_genesis 595 * @param bool $show_description Whether to show the description if show_images=false/not defined
mp-wp_genesis 596 * @param int $limit Limit to X entries. If not specified, all entries are shown.
mp-wp_genesis 597 * @param int $show_updated Whether to show last updated timestamp
mp-wp_genesis 598 */
mp-wp_genesis 599 function get_linksbyname_withrating($cat_name = "noname", $before = '', $after = '<br />', $between = " ",
mp-wp_genesis 600 $show_images = true, $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) {
mp-wp_genesis 601 _deprecated_function(__FUNCTION__, '0.0', 'get_bookmarks()');
mp-wp_genesis 602
mp-wp_genesis 603 get_linksbyname($cat_name, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated);
mp-wp_genesis 604 }
mp-wp_genesis 605
mp-wp_genesis 606 /**
mp-wp_genesis 607 * Gets the links associated with category n and display rating stars/chars.
mp-wp_genesis 608 *
mp-wp_genesis 609 * @since 0.71
mp-wp_genesis 610 * @deprecated Use get_bookmarks()
mp-wp_genesis 611 * @see get_bookmarks()
mp-wp_genesis 612 *
mp-wp_genesis 613 * @param int $category The category to use. If no category supplied uses all
mp-wp_genesis 614 * @param string $before The html to output before the link
mp-wp_genesis 615 * @param string $after The html to output after the link
mp-wp_genesis 616 * @param string $between The html to output between the link/image and it's description. Not used if no image or show_images == true
mp-wp_genesis 617 * @param bool $show_images Whether to show images (if defined).
mp-wp_genesis 618 * @param string $orderby The order to output the links. E.g. 'id', 'name', 'url',
mp-wp_genesis 619 * 'description', or 'rating'. Or maybe owner. If you start the name with an
mp-wp_genesis 620 * underscore the order will be reversed. You can also specify 'rand' as the
mp-wp_genesis 621 * order which will return links in a random order.
mp-wp_genesis 622 * @param bool $show_description Whether to show the description if show_images=false/not defined.
mp-wp_genesis 623 * @param string $limit Limit to X entries. If not specified, all entries are shown.
mp-wp_genesis 624 * @param int $show_updated Whether to show last updated timestamp
mp-wp_genesis 625 */
mp-wp_genesis 626 function get_links_withrating($category = -1, $before = '', $after = '<br />', $between = " ", $show_images = true,
mp-wp_genesis 627 $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) {
mp-wp_genesis 628 _deprecated_function(__FUNCTION__, '0.0', 'get_bookmarks()');
mp-wp_genesis 629
mp-wp_genesis 630 get_links($category, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated);
mp-wp_genesis 631 }
mp-wp_genesis 632
mp-wp_genesis 633 /**
mp-wp_genesis 634 * Gets the auto_toggle setting.
mp-wp_genesis 635 *
mp-wp_genesis 636 * @since 0.71
mp-wp_genesis 637 * @deprecated No alternative function available
mp-wp_genesis 638 *
mp-wp_genesis 639 * @param int $id The category to get. If no category supplied uses 0
mp-wp_genesis 640 * @return int Only returns 0.
mp-wp_genesis 641 */
mp-wp_genesis 642 function get_autotoggle($id = 0) {
mp-wp_genesis 643 _deprecated_function(__FUNCTION__, '0.0' );
mp-wp_genesis 644 return 0;
mp-wp_genesis 645 }
mp-wp_genesis 646
mp-wp_genesis 647 /**
mp-wp_genesis 648 * @since 0.71
mp-wp_genesis 649 * @deprecated Use wp_list_categories()
mp-wp_genesis 650 * @see wp_list_categories()
mp-wp_genesis 651 *
mp-wp_genesis 652 * @param int $optionall
mp-wp_genesis 653 * @param string $all
mp-wp_genesis 654 * @param string $sort_column
mp-wp_genesis 655 * @param string $sort_order
mp-wp_genesis 656 * @param string $file
mp-wp_genesis 657 * @param bool $list
mp-wp_genesis 658 * @param int $optiondates
mp-wp_genesis 659 * @param int $optioncount
mp-wp_genesis 660 * @param int $hide_empty
mp-wp_genesis 661 * @param int $use_desc_for_title
mp-wp_genesis 662 * @param bool $children
mp-wp_genesis 663 * @param int $child_of
mp-wp_genesis 664 * @param int $categories
mp-wp_genesis 665 * @param int $recurse
mp-wp_genesis 666 * @param string $feed
mp-wp_genesis 667 * @param string $feed_image
mp-wp_genesis 668 * @param string $exclude
mp-wp_genesis 669 * @param bool $hierarchical
mp-wp_genesis 670 * @return unknown
mp-wp_genesis 671 */
mp-wp_genesis 672 function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0,
mp-wp_genesis 673 $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0,
mp-wp_genesis 674 $recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) {
mp-wp_genesis 675 _deprecated_function(__FUNCTION__, '0.0', 'wp_list_categories()');
mp-wp_genesis 676
mp-wp_genesis 677 $query = compact('optionall', 'all', 'sort_column', 'sort_order', 'file', 'list', 'optiondates', 'optioncount', 'hide_empty', 'use_desc_for_title', 'children',
mp-wp_genesis 678 'child_of', 'categories', 'recurse', 'feed', 'feed_image', 'exclude', 'hierarchical');
mp-wp_genesis 679 return wp_list_cats($query);
mp-wp_genesis 680 }
mp-wp_genesis 681
mp-wp_genesis 682 /**
mp-wp_genesis 683 * @since 1.2
mp-wp_genesis 684 * @deprecated Use wp_list_categories()
mp-wp_genesis 685 * @see wp_list_categories()
mp-wp_genesis 686 *
mp-wp_genesis 687 * @param string|array $args
mp-wp_genesis 688 * @return unknown
mp-wp_genesis 689 */
mp-wp_genesis 690 function wp_list_cats($args = '') {
mp-wp_genesis 691 _deprecated_function(__FUNCTION__, '0.0', 'wp_list_categories()');
mp-wp_genesis 692
mp-wp_genesis 693 $r = wp_parse_args( $args );
mp-wp_genesis 694
mp-wp_genesis 695 // Map to new names.
mp-wp_genesis 696 if ( isset($r['optionall']) && isset($r['all']))
mp-wp_genesis 697 $r['show_option_all'] = $r['all'];
mp-wp_genesis 698 if ( isset($r['sort_column']) )
mp-wp_genesis 699 $r['orderby'] = $r['sort_column'];
mp-wp_genesis 700 if ( isset($r['sort_order']) )
mp-wp_genesis 701 $r['order'] = $r['sort_order'];
mp-wp_genesis 702 if ( isset($r['optiondates']) )
mp-wp_genesis 703 $r['show_last_update'] = $r['optiondates'];
mp-wp_genesis 704 if ( isset($r['optioncount']) )
mp-wp_genesis 705 $r['show_count'] = $r['optioncount'];
mp-wp_genesis 706 if ( isset($r['list']) )
mp-wp_genesis 707 $r['style'] = $r['list'] ? 'list' : 'break';
mp-wp_genesis 708 $r['title_li'] = '';
mp-wp_genesis 709
mp-wp_genesis 710 return wp_list_categories($r);
mp-wp_genesis 711 }
mp-wp_genesis 712
mp-wp_genesis 713 /**
mp-wp_genesis 714 * @since 0.71
mp-wp_genesis 715 * @deprecated Use wp_dropdown_categories()
mp-wp_genesis 716 * @see wp_dropdown_categories()
mp-wp_genesis 717 *
mp-wp_genesis 718 * @param int $optionall
mp-wp_genesis 719 * @param string $all
mp-wp_genesis 720 * @param string $orderby
mp-wp_genesis 721 * @param string $order
mp-wp_genesis 722 * @param int $show_last_update
mp-wp_genesis 723 * @param int $show_count
mp-wp_genesis 724 * @param int $hide_empty
mp-wp_genesis 725 * @param bool $optionnone
mp-wp_genesis 726 * @param int $selected
mp-wp_genesis 727 * @param int $exclude
mp-wp_genesis 728 * @return unknown
mp-wp_genesis 729 */
mp-wp_genesis 730 function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc',
mp-wp_genesis 731 $show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false,
mp-wp_genesis 732 $selected = 0, $exclude = 0) {
mp-wp_genesis 733 _deprecated_function(__FUNCTION__, '0.0', 'wp_dropdown_categories()');
mp-wp_genesis 734
mp-wp_genesis 735 $show_option_all = '';
mp-wp_genesis 736 if ( $optionall )
mp-wp_genesis 737 $show_option_all = $all;
mp-wp_genesis 738
mp-wp_genesis 739 $show_option_none = '';
mp-wp_genesis 740 if ( $optionnone )
mp-wp_genesis 741 $show_option_none = __('None');
mp-wp_genesis 742
mp-wp_genesis 743 $vars = compact('show_option_all', 'show_option_none', 'orderby', 'order',
mp-wp_genesis 744 'show_last_update', 'show_count', 'hide_empty', 'selected', 'exclude');
mp-wp_genesis 745 $query = add_query_arg($vars, '');
mp-wp_genesis 746 return wp_dropdown_categories($query);
mp-wp_genesis 747 }
mp-wp_genesis 748
mp-wp_genesis 749 /**
mp-wp_genesis 750 * @since 2.1
mp-wp_genesis 751 * @deprecated Use wp_print_scripts() or WP_Scripts.
mp-wp_genesis 752 * @see wp_print_scripts()
mp-wp_genesis 753 * @see WP_Scripts
mp-wp_genesis 754 */
mp-wp_genesis 755 function tinymce_include() {
mp-wp_genesis 756 _deprecated_function(__FUNCTION__, '0.0', 'wp_print_scripts()/WP_Scripts');
mp-wp_genesis 757
mp-wp_genesis 758 wp_print_script('wp_tiny_mce');
mp-wp_genesis 759 }
mp-wp_genesis 760
mp-wp_genesis 761 /**
mp-wp_genesis 762 * @since 1.2
mp-wp_genesis 763 * @deprecated Use wp_list_authors()
mp-wp_genesis 764 * @see wp_list_authors()
mp-wp_genesis 765 *
mp-wp_genesis 766 * @param bool $optioncount
mp-wp_genesis 767 * @param bool $exclude_admin
mp-wp_genesis 768 * @param bool $show_fullname
mp-wp_genesis 769 * @param bool $hide_empty
mp-wp_genesis 770 * @param string $feed
mp-wp_genesis 771 * @param string $feed_image
mp-wp_genesis 772 * @return unknown
mp-wp_genesis 773 */
mp-wp_genesis 774 function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '') {
mp-wp_genesis 775 _deprecated_function(__FUNCTION__, '0.0', 'wp_list_authors()');
mp-wp_genesis 776
mp-wp_genesis 777 $args = compact('optioncount', 'exclude_admin', 'show_fullname', 'hide_empty', 'feed', 'feed_image');
mp-wp_genesis 778 return wp_list_authors($args);
mp-wp_genesis 779 }
mp-wp_genesis 780
mp-wp_genesis 781 /**
mp-wp_genesis 782 * @since 1.0.1
mp-wp_genesis 783 * @deprecated Use wp_get_post_categories()
mp-wp_genesis 784 * @see wp_get_post_categories()
mp-wp_genesis 785 *
mp-wp_genesis 786 * @param int $blogid Not Used
mp-wp_genesis 787 * @param int $post_ID
mp-wp_genesis 788 * @return unknown
mp-wp_genesis 789 */
mp-wp_genesis 790 function wp_get_post_cats($blogid = '1', $post_ID = 0) {
mp-wp_genesis 791 _deprecated_function(__FUNCTION__, '0.0', 'wp_get_post_categories()');
mp-wp_genesis 792 return wp_get_post_categories($post_ID);
mp-wp_genesis 793 }
mp-wp_genesis 794
mp-wp_genesis 795 /**
mp-wp_genesis 796 * Sets the categories that the post id belongs to.
mp-wp_genesis 797 *
mp-wp_genesis 798 * @since 1.0.1
mp-wp_genesis 799 * @deprecated Use wp_set_post_categories()
mp-wp_genesis 800 * @see wp_set_post_categories()
mp-wp_genesis 801 *
mp-wp_genesis 802 * @param int $blogid Not used
mp-wp_genesis 803 * @param int $post_ID
mp-wp_genesis 804 * @param array $post_categories
mp-wp_genesis 805 * @return unknown
mp-wp_genesis 806 */
mp-wp_genesis 807 function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array()) {
mp-wp_genesis 808 _deprecated_function(__FUNCTION__, '0.0', 'wp_set_post_categories()');
mp-wp_genesis 809 return wp_set_post_categories($post_ID, $post_categories);
mp-wp_genesis 810 }
mp-wp_genesis 811
mp-wp_genesis 812 /**
mp-wp_genesis 813 * @since 0.71
mp-wp_genesis 814 * @deprecated Use wp_get_archives()
mp-wp_genesis 815 * @see wp_get_archives()
mp-wp_genesis 816 *
mp-wp_genesis 817 * @param string $type
mp-wp_genesis 818 * @param string $limit
mp-wp_genesis 819 * @param string $format
mp-wp_genesis 820 * @param string $before
mp-wp_genesis 821 * @param string $after
mp-wp_genesis 822 * @param bool $show_post_count
mp-wp_genesis 823 * @return unknown
mp-wp_genesis 824 */
mp-wp_genesis 825 function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) {
mp-wp_genesis 826 _deprecated_function(__FUNCTION__, '0.0', 'wp_get_archives()');
mp-wp_genesis 827 $args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count');
mp-wp_genesis 828 return wp_get_archives($args);
mp-wp_genesis 829 }
mp-wp_genesis 830
mp-wp_genesis 831 /**
mp-wp_genesis 832 * Returns or Prints link to the author's posts.
mp-wp_genesis 833 *
mp-wp_genesis 834 * @since 1.2
mp-wp_genesis 835 * @deprecated Use get_author_posts_url()
mp-wp_genesis 836 * @see get_author_posts_url()
mp-wp_genesis 837 *
mp-wp_genesis 838 * @param bool $echo Optional.
mp-wp_genesis 839 * @param int $author_id Required.
mp-wp_genesis 840 * @param string $author_nicename Optional.
mp-wp_genesis 841 * @return string|null
mp-wp_genesis 842 */
mp-wp_genesis 843 function get_author_link($echo = false, $author_id, $author_nicename = '') {
mp-wp_genesis 844 _deprecated_function(__FUNCTION__, '0.0', 'get_author_posts_url()');
mp-wp_genesis 845
mp-wp_genesis 846 $link = get_author_posts_url($author_id, $author_nicename);
mp-wp_genesis 847
mp-wp_genesis 848 if ( $echo )
mp-wp_genesis 849 echo $link;
mp-wp_genesis 850 return $link;
mp-wp_genesis 851 }
mp-wp_genesis 852
mp-wp_genesis 853 /**
mp-wp_genesis 854 * Print list of pages based on arguments.
mp-wp_genesis 855 *
mp-wp_genesis 856 * @since 0.71
mp-wp_genesis 857 * @deprecated Use wp_link_pages()
mp-wp_genesis 858 * @see wp_link_pages()
mp-wp_genesis 859 *
mp-wp_genesis 860 * @param string $before
mp-wp_genesis 861 * @param string $after
mp-wp_genesis 862 * @param string $next_or_number
mp-wp_genesis 863 * @param string $nextpagelink
mp-wp_genesis 864 * @param string $previouspagelink
mp-wp_genesis 865 * @param string $pagelink
mp-wp_genesis 866 * @param string $more_file
mp-wp_genesis 867 * @return string
mp-wp_genesis 868 */
mp-wp_genesis 869 function link_pages($before='<br />', $after='<br />', $next_or_number='number', $nextpagelink='next page', $previouspagelink='previous page',
mp-wp_genesis 870 $pagelink='%', $more_file='') {
mp-wp_genesis 871 _deprecated_function(__FUNCTION__, '0.0', 'wp_link_pages()');
mp-wp_genesis 872
mp-wp_genesis 873 $args = compact('before', 'after', 'next_or_number', 'nextpagelink', 'previouspagelink', 'pagelink', 'more_file');
mp-wp_genesis 874 return wp_link_pages($args);
mp-wp_genesis 875 }
mp-wp_genesis 876
mp-wp_genesis 877 /**
mp-wp_genesis 878 * Get value based on option.
mp-wp_genesis 879 *
mp-wp_genesis 880 * @since 0.71
mp-wp_genesis 881 * @deprecated Use get_option()
mp-wp_genesis 882 * @see get_option()
mp-wp_genesis 883 *
mp-wp_genesis 884 * @param string $option
mp-wp_genesis 885 * @return string
mp-wp_genesis 886 */
mp-wp_genesis 887 function get_settings($option) {
mp-wp_genesis 888 _deprecated_function(__FUNCTION__, '0.0', 'get_option()');
mp-wp_genesis 889
mp-wp_genesis 890 return get_option($option);
mp-wp_genesis 891 }
mp-wp_genesis 892
mp-wp_genesis 893 /**
mp-wp_genesis 894 * Print the permalink of the current post in the loop.
mp-wp_genesis 895 *
mp-wp_genesis 896 * @since 0.71
mp-wp_genesis 897 * @deprecated Use the_permalink()
mp-wp_genesis 898 * @see the_permalink()
mp-wp_genesis 899 */
mp-wp_genesis 900 function permalink_link() {
mp-wp_genesis 901 _deprecated_function(__FUNCTION__, '0.0', 'the_permalink()');
mp-wp_genesis 902 the_permalink();
mp-wp_genesis 903 }
mp-wp_genesis 904
mp-wp_genesis 905 /**
mp-wp_genesis 906 * Print the permalink to the RSS feed.
mp-wp_genesis 907 *
mp-wp_genesis 908 * @since 0.71
mp-wp_genesis 909 * @deprecated Use the_permalink_rss()
mp-wp_genesis 910 * @see the_permalink_rss()
mp-wp_genesis 911 *
mp-wp_genesis 912 * @param string $file
mp-wp_genesis 913 */
mp-wp_genesis 914 function permalink_single_rss($deprecated = '') {
mp-wp_genesis 915 _deprecated_function(__FUNCTION__, '0.0', 'the_permalink_rss()');
mp-wp_genesis 916 the_permalink_rss();
mp-wp_genesis 917 }
mp-wp_genesis 918
mp-wp_genesis 919 /**
mp-wp_genesis 920 * Gets the links associated with category.
mp-wp_genesis 921 *
mp-wp_genesis 922 * @see get_links() for argument information that can be used in $args
mp-wp_genesis 923 * @since 1.0.1
mp-wp_genesis 924 * @deprecated Use get_bookmarks()
mp-wp_genesis 925 * @see get_bookmarks()
mp-wp_genesis 926 *
mp-wp_genesis 927 * @param string $args a query string
mp-wp_genesis 928 * @return null|string
mp-wp_genesis 929 */
mp-wp_genesis 930 function wp_get_links($args = '') {
mp-wp_genesis 931 _deprecated_function(__FUNCTION__, '0.0', 'get_bookmarks()');
mp-wp_genesis 932
mp-wp_genesis 933 if ( strpos( $args, '=' ) === false ) {
mp-wp_genesis 934 $cat_id = $args;
mp-wp_genesis 935 $args = add_query_arg( 'category', $cat_id, $args );
mp-wp_genesis 936 }
mp-wp_genesis 937
mp-wp_genesis 938 $defaults = array(
mp-wp_genesis 939 'category' => -1, 'before' => '',
mp-wp_genesis 940 'after' => '<br />', 'between' => ' ',
mp-wp_genesis 941 'show_images' => true, 'orderby' => 'name',
mp-wp_genesis 942 'show_description' => true, 'show_rating' => false,
mp-wp_genesis 943 'limit' => -1, 'show_updated' => true,
mp-wp_genesis 944 'echo' => true
mp-wp_genesis 945 );
mp-wp_genesis 946
mp-wp_genesis 947 $r = wp_parse_args( $args, $defaults );
mp-wp_genesis 948 extract( $r, EXTR_SKIP );
mp-wp_genesis 949
mp-wp_genesis 950 return get_links($category, $before, $after, $between, $show_images, $orderby, $show_description, $show_rating, $limit, $show_updated, $echo);
mp-wp_genesis 951 }
mp-wp_genesis 952
mp-wp_genesis 953 /**
mp-wp_genesis 954 * Gets the links associated with category by id.
mp-wp_genesis 955 *
mp-wp_genesis 956 * @since 0.71
mp-wp_genesis 957 * @deprecated Use get_bookmarks()
mp-wp_genesis 958 * @see get_bookmarks()
mp-wp_genesis 959 *
mp-wp_genesis 960 * @param int $category The category to use. If no category supplied uses all
mp-wp_genesis 961 * @param string $before the html to output before the link
mp-wp_genesis 962 * @param string $after the html to output after the link
mp-wp_genesis 963 * @param string $between the html to output between the link/image and its description.
mp-wp_genesis 964 * Not used if no image or show_images == true
mp-wp_genesis 965 * @param bool $show_images whether to show images (if defined).
mp-wp_genesis 966 * @param string $orderby the order to output the links. E.g. 'id', 'name', 'url',
mp-wp_genesis 967 * 'description', or 'rating'. Or maybe owner. If you start the name with an
mp-wp_genesis 968 * underscore the order will be reversed. You can also specify 'rand' as the order
mp-wp_genesis 969 * which will return links in a random order.
mp-wp_genesis 970 * @param bool $show_description whether to show the description if show_images=false/not defined.
mp-wp_genesis 971 * @param bool $show_rating show rating stars/chars
mp-wp_genesis 972 * @param int $limit Limit to X entries. If not specified, all entries are shown.
mp-wp_genesis 973 * @param int $show_updated whether to show last updated timestamp
mp-wp_genesis 974 * @param bool $echo whether to echo the results, or return them instead
mp-wp_genesis 975 * @return null|string
mp-wp_genesis 976 */
mp-wp_genesis 977 function get_links($category = -1, $before = '', $after = '<br />', $between = ' ', $show_images = true, $orderby = 'name',
mp-wp_genesis 978 $show_description = true, $show_rating = false, $limit = -1, $show_updated = 1, $echo = true) {
mp-wp_genesis 979 _deprecated_function(__FUNCTION__, '0.0', 'get_bookmarks()');
mp-wp_genesis 980
mp-wp_genesis 981 $order = 'ASC';
mp-wp_genesis 982 if ( substr($orderby, 0, 1) == '_' ) {
mp-wp_genesis 983 $order = 'DESC';
mp-wp_genesis 984 $orderby = substr($orderby, 1);
mp-wp_genesis 985 }
mp-wp_genesis 986
mp-wp_genesis 987 if ( $category == -1 ) //get_bookmarks uses '' to signify all categories
mp-wp_genesis 988 $category = '';
mp-wp_genesis 989
mp-wp_genesis 990 $results = get_bookmarks("category=$category&orderby=$orderby&order=$order&show_updated=$show_updated&limit=$limit");
mp-wp_genesis 991
mp-wp_genesis 992 if ( !$results )
mp-wp_genesis 993 return;
mp-wp_genesis 994
mp-wp_genesis 995 $output = '';
mp-wp_genesis 996
mp-wp_genesis 997 foreach ( (array) $results as $row ) {
mp-wp_genesis 998 if ( !isset($row->recently_updated) )
mp-wp_genesis 999 $row->recently_updated = false;
mp-wp_genesis 1000 $output .= $before;
mp-wp_genesis 1001 if ( $show_updated && $row->recently_updated )
mp-wp_genesis 1002 $output .= get_option('links_recently_updated_prepend');
mp-wp_genesis 1003 $the_link = '#';
mp-wp_genesis 1004 if ( !empty($row->link_url) )
mp-wp_genesis 1005 $the_link = clean_url($row->link_url);
mp-wp_genesis 1006 $rel = $row->link_rel;
mp-wp_genesis 1007 if ( '' != $rel )
mp-wp_genesis 1008 $rel = ' rel="' . $rel . '"';
mp-wp_genesis 1009
mp-wp_genesis 1010 $desc = attribute_escape(sanitize_bookmark_field('link_description', $row->link_description, $row->link_id, 'display'));
mp-wp_genesis 1011 $name = attribute_escape(sanitize_bookmark_field('link_name', $row->link_name, $row->link_id, 'display'));
mp-wp_genesis 1012 $title = $desc;
mp-wp_genesis 1013
mp-wp_genesis 1014 if ( $show_updated )
mp-wp_genesis 1015 if (substr($row->link_updated_f, 0, 2) != '00')
mp-wp_genesis 1016 $title .= ' ('.__('Last updated') . ' ' . date(get_option('links_updated_date_format'), $row->link_updated_f + (get_option('gmt_offset') * 3600)) . ')';
mp-wp_genesis 1017
mp-wp_genesis 1018 if ( '' != $title )
mp-wp_genesis 1019 $title = ' title="' . $title . '"';
mp-wp_genesis 1020
mp-wp_genesis 1021 $alt = ' alt="' . $name . '"';
mp-wp_genesis 1022
mp-wp_genesis 1023 $target = $row->link_target;
mp-wp_genesis 1024 if ( '' != $target )
mp-wp_genesis 1025 $target = ' target="' . $target . '"';
mp-wp_genesis 1026
mp-wp_genesis 1027 $output .= '<a href="' . $the_link . '"' . $rel . $title . $target. '>';
mp-wp_genesis 1028
mp-wp_genesis 1029 if ( $row->link_image != null && $show_images ) {
mp-wp_genesis 1030 if ( strpos($row->link_image, 'http') !== false )
mp-wp_genesis 1031 $output .= "<img src=\"$row->link_image\" $alt $title />";
mp-wp_genesis 1032 else // If it's a relative path
mp-wp_genesis 1033 $output .= "<img src=\"" . get_option('siteurl') . "$row->link_image\" $alt $title />";
mp-wp_genesis 1034 } else {
mp-wp_genesis 1035 $output .= $name;
mp-wp_genesis 1036 }
mp-wp_genesis 1037
mp-wp_genesis 1038 $output .= '</a>';
mp-wp_genesis 1039
mp-wp_genesis 1040 if ( $show_updated && $row->recently_updated )
mp-wp_genesis 1041 $output .= get_option('links_recently_updated_append');
mp-wp_genesis 1042
mp-wp_genesis 1043 if ( $show_description && '' != $desc )
mp-wp_genesis 1044 $output .= $between . $desc;
mp-wp_genesis 1045
mp-wp_genesis 1046 if ($show_rating) {
mp-wp_genesis 1047 $output .= $between . get_linkrating($row);
mp-wp_genesis 1048 }
mp-wp_genesis 1049
mp-wp_genesis 1050 $output .= "$after\n";
mp-wp_genesis 1051 } // end while
mp-wp_genesis 1052
mp-wp_genesis 1053 if ( !$echo )
mp-wp_genesis 1054 return $output;
mp-wp_genesis 1055 echo $output;
mp-wp_genesis 1056 }
mp-wp_genesis 1057
mp-wp_genesis 1058 /**
mp-wp_genesis 1059 * Output entire list of links by category.
mp-wp_genesis 1060 *
mp-wp_genesis 1061 * Output a list of all links, listed by category, using the settings in
mp-wp_genesis 1062 * $wpdb->linkcategories and output it as a nested HTML unordered list.
mp-wp_genesis 1063 *
mp-wp_genesis 1064 * @author Dougal
mp-wp_genesis 1065 * @since 1.0.1
mp-wp_genesis 1066 * @deprecated Use wp_list_bookmarks()
mp-wp_genesis 1067 * @see wp_list_bookmarks()
mp-wp_genesis 1068 *
mp-wp_genesis 1069 * @param string $order Sort link categories by 'name' or 'id'
mp-wp_genesis 1070 * @param string $$deprecated Not Used
mp-wp_genesis 1071 */
mp-wp_genesis 1072 function get_links_list($order = 'name', $deprecated = '') {
mp-wp_genesis 1073 _deprecated_function(__FUNCTION__, '0.0', 'wp_list_bookmarks()');
mp-wp_genesis 1074
mp-wp_genesis 1075 $order = strtolower($order);
mp-wp_genesis 1076
mp-wp_genesis 1077 // Handle link category sorting
mp-wp_genesis 1078 $direction = 'ASC';
mp-wp_genesis 1079 if ( '_' == substr($order,0,1) ) {
mp-wp_genesis 1080 $direction = 'DESC';
mp-wp_genesis 1081 $order = substr($order,1);
mp-wp_genesis 1082 }
mp-wp_genesis 1083
mp-wp_genesis 1084 if ( !isset($direction) )
mp-wp_genesis 1085 $direction = '';
mp-wp_genesis 1086
mp-wp_genesis 1087 $cats = get_categories("type=link&orderby=$order&order=$direction&hierarchical=0");
mp-wp_genesis 1088
mp-wp_genesis 1089 // Display each category
mp-wp_genesis 1090 if ( $cats ) {
mp-wp_genesis 1091 foreach ( (array) $cats as $cat ) {
mp-wp_genesis 1092 // Handle each category.
mp-wp_genesis 1093
mp-wp_genesis 1094 // Display the category name
mp-wp_genesis 1095 echo ' <li id="linkcat-' . $cat->term_id . '" class="linkcat"><h2>' . apply_filters('link_category', $cat->name ) . "</h2>\n\t<ul>\n";
mp-wp_genesis 1096 // Call get_links() with all the appropriate params
mp-wp_genesis 1097 get_links($cat->term_id, '<li>', "</li>", "\n", true, 'name', false);
mp-wp_genesis 1098
mp-wp_genesis 1099 // Close the last category
mp-wp_genesis 1100 echo "\n\t</ul>\n</li>\n";
mp-wp_genesis 1101 }
mp-wp_genesis 1102 }
mp-wp_genesis 1103 }
mp-wp_genesis 1104
mp-wp_genesis 1105 /**
mp-wp_genesis 1106 * Show the link to the links popup and the number of links.
mp-wp_genesis 1107 *
mp-wp_genesis 1108 * @author Fullo
mp-wp_genesis 1109 * @link http://sprite.csr.unibo.it/fullo/
mp-wp_genesis 1110 *
mp-wp_genesis 1111 * @since 0.71
mp-wp_genesis 1112 * @deprecated {@internal Use function instead is unknown}}
mp-wp_genesis 1113 *
mp-wp_genesis 1114 * @param string $text the text of the link
mp-wp_genesis 1115 * @param int $width the width of the popup window
mp-wp_genesis 1116 * @param int $height the height of the popup window
mp-wp_genesis 1117 * @param string $file the page to open in the popup window
mp-wp_genesis 1118 * @param bool $count the number of links in the db
mp-wp_genesis 1119 */
mp-wp_genesis 1120 function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) {
mp-wp_genesis 1121 _deprecated_function(__FUNCTION__, '0.0' );
mp-wp_genesis 1122
mp-wp_genesis 1123 if ( $count )
mp-wp_genesis 1124 $counts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->links");
mp-wp_genesis 1125
mp-wp_genesis 1126 $javascript = "<a href=\"#\" onclick=\"javascript:window.open('$file?popup=1', '_blank', 'width=$width,height=$height,scrollbars=yes,status=no'); return false\">";
mp-wp_genesis 1127 $javascript .= $text;
mp-wp_genesis 1128
mp-wp_genesis 1129 if ( $count )
mp-wp_genesis 1130 $javascript .= " ($counts)";
mp-wp_genesis 1131
mp-wp_genesis 1132 $javascript .= "</a>\n\n";
mp-wp_genesis 1133 echo $javascript;
mp-wp_genesis 1134 }
mp-wp_genesis 1135
mp-wp_genesis 1136 /**
mp-wp_genesis 1137 * @since 1.0.1
mp-wp_genesis 1138 * @deprecated Use sanitize_bookmark_field()
mp-wp_genesis 1139 * @see sanitize_bookmark_field()
mp-wp_genesis 1140 *
mp-wp_genesis 1141 * @param object $link
mp-wp_genesis 1142 * @return unknown
mp-wp_genesis 1143 */
mp-wp_genesis 1144 function get_linkrating($link) {
mp-wp_genesis 1145 _deprecated_function(__FUNCTION__, '0.0', 'sanitize_bookmark_field()');
mp-wp_genesis 1146 return sanitize_bookmark_field('link_rating', $link->link_rating, $link->link_id, 'display');
mp-wp_genesis 1147 }
mp-wp_genesis 1148
mp-wp_genesis 1149 /**
mp-wp_genesis 1150 * Gets the name of category by id.
mp-wp_genesis 1151 *
mp-wp_genesis 1152 * @since 0.71
mp-wp_genesis 1153 * @deprecated Use get_category()
mp-wp_genesis 1154 * @see get_category()
mp-wp_genesis 1155 *
mp-wp_genesis 1156 * @param int $id The category to get. If no category supplied uses 0
mp-wp_genesis 1157 * @return string
mp-wp_genesis 1158 */
mp-wp_genesis 1159 function get_linkcatname($id = 0) {
mp-wp_genesis 1160 _deprecated_function(__FUNCTION__, '0.0', 'get_category()');
mp-wp_genesis 1161
mp-wp_genesis 1162 $id = (int) $id;
mp-wp_genesis 1163
mp-wp_genesis 1164 if ( empty($id) )
mp-wp_genesis 1165 return '';
mp-wp_genesis 1166
mp-wp_genesis 1167 $cats = wp_get_link_cats($id);
mp-wp_genesis 1168
mp-wp_genesis 1169 if ( empty($cats) || ! is_array($cats) )
mp-wp_genesis 1170 return '';
mp-wp_genesis 1171
mp-wp_genesis 1172 $cat_id = (int) $cats[0]; // Take the first cat.
mp-wp_genesis 1173
mp-wp_genesis 1174 $cat = get_category($cat_id);
mp-wp_genesis 1175 return $cat->name;
mp-wp_genesis 1176 }
mp-wp_genesis 1177
mp-wp_genesis 1178 /**
mp-wp_genesis 1179 * Print RSS comment feed link.
mp-wp_genesis 1180 *
mp-wp_genesis 1181 * @since 1.0.1
mp-wp_genesis 1182 * @deprecated Use post_comments_feed_link()
mp-wp_genesis 1183 * @see post_comments_feed_link()
mp-wp_genesis 1184 *
mp-wp_genesis 1185 * @param string $link_text
mp-wp_genesis 1186 * @param string $deprecated Not used
mp-wp_genesis 1187 */
mp-wp_genesis 1188 function comments_rss_link($link_text = 'Comments RSS', $deprecated = '') {
mp-wp_genesis 1189 _deprecated_function(__FUNCTION__, '0.0', 'post_comments_feed_link()');
mp-wp_genesis 1190 post_comments_feed_link($link_text);
mp-wp_genesis 1191 }
mp-wp_genesis 1192
mp-wp_genesis 1193 /**
mp-wp_genesis 1194 * Print/Return link to category RSS2 feed.
mp-wp_genesis 1195 *
mp-wp_genesis 1196 * @since 1.2
mp-wp_genesis 1197 * @deprecated Use get_category_feed_link()
mp-wp_genesis 1198 * @see get_category_feed_link()
mp-wp_genesis 1199 *
mp-wp_genesis 1200 * @param bool $echo
mp-wp_genesis 1201 * @param int $cat_ID
mp-wp_genesis 1202 * @param string $deprecated Not used
mp-wp_genesis 1203 * @return string|null
mp-wp_genesis 1204 */
mp-wp_genesis 1205 function get_category_rss_link($echo = false, $cat_ID = 1, $deprecated = '') {
mp-wp_genesis 1206 _deprecated_function(__FUNCTION__, '0.0', 'get_category_feed_link()');
mp-wp_genesis 1207
mp-wp_genesis 1208 $link = get_category_feed_link($cat_ID, 'rss2');
mp-wp_genesis 1209
mp-wp_genesis 1210 if ( $echo )
mp-wp_genesis 1211 echo $link;
mp-wp_genesis 1212 return $link;
mp-wp_genesis 1213 }
mp-wp_genesis 1214
mp-wp_genesis 1215 /**
mp-wp_genesis 1216 * Print/Return link to author RSS feed.
mp-wp_genesis 1217 *
mp-wp_genesis 1218 * @since 1.2
mp-wp_genesis 1219 * @deprecated Use get_author_feed_link()
mp-wp_genesis 1220 * @see get_author_feed_link()
mp-wp_genesis 1221 *
mp-wp_genesis 1222 * @param bool $echo
mp-wp_genesis 1223 * @param int $author_id
mp-wp_genesis 1224 * @param string $deprecated Not used
mp-wp_genesis 1225 * @return string|null
mp-wp_genesis 1226 */
mp-wp_genesis 1227 function get_author_rss_link($echo = false, $author_id = 1, $deprecated = '') {
mp-wp_genesis 1228 _deprecated_function(__FUNCTION__, '0.0', 'get_author_feed_link()');
mp-wp_genesis 1229
mp-wp_genesis 1230 $link = get_author_feed_link($author_id);
mp-wp_genesis 1231 if ( $echo )
mp-wp_genesis 1232 echo $link;
mp-wp_genesis 1233 return $link;
mp-wp_genesis 1234 }
mp-wp_genesis 1235
mp-wp_genesis 1236 /**
mp-wp_genesis 1237 * Return link to the post RSS feed.
mp-wp_genesis 1238 *
mp-wp_genesis 1239 * @since 1.5
mp-wp_genesis 1240 * @deprecated Use get_post_comments_feed_link()
mp-wp_genesis 1241 * @see get_post_comments_feed_link()
mp-wp_genesis 1242 *
mp-wp_genesis 1243 * @param string $deprecated Not used
mp-wp_genesis 1244 * @return string
mp-wp_genesis 1245 */
mp-wp_genesis 1246 function comments_rss($deprecated = '') {
mp-wp_genesis 1247 _deprecated_function(__FUNCTION__, '2.2', 'get_post_comments_feed_link()');
mp-wp_genesis 1248 return get_post_comments_feed_link();
mp-wp_genesis 1249 }
mp-wp_genesis 1250
mp-wp_genesis 1251 /**
mp-wp_genesis 1252 * An alias of wp_create_user().
mp-wp_genesis 1253 *
mp-wp_genesis 1254 * @param string $username The user's username.
mp-wp_genesis 1255 * @param string $password The user's password.
mp-wp_genesis 1256 * @param string $email The user's email (optional).
mp-wp_genesis 1257 * @return int The new user's ID.
mp-wp_genesis 1258 * @deprecated Use wp_create_user()
mp-wp_genesis 1259 * @see wp_create_user()
mp-wp_genesis 1260 */
mp-wp_genesis 1261 function create_user($username, $password, $email) {
mp-wp_genesis 1262 _deprecated_function( __FUNCTION__, '2.0', 'wp_create_user()' );
mp-wp_genesis 1263 return wp_create_user($username, $password, $email);
mp-wp_genesis 1264 }
mp-wp_genesis 1265
mp-wp_genesis 1266 /**
mp-wp_genesis 1267 * Unused Admin function.
mp-wp_genesis 1268 *
mp-wp_genesis 1269 * @since 2.0
mp-wp_genesis 1270 * @param string $deprecated Unknown
mp-wp_genesis 1271 * @deprecated 2.5
mp-wp_genesis 1272 */
mp-wp_genesis 1273 function documentation_link( $deprecated = '' ) {
mp-wp_genesis 1274 _deprecated_function( __FUNCTION__, '2.5', '' );
mp-wp_genesis 1275 return;
mp-wp_genesis 1276 }
mp-wp_genesis 1277
mp-wp_genesis 1278 /**
mp-wp_genesis 1279 * Unused function.
mp-wp_genesis 1280 *
mp-wp_genesis 1281 * @deprecated 2.5
mp-wp_genesis 1282 */
mp-wp_genesis 1283 function gzip_compression() {
mp-wp_genesis 1284 return false;
mp-wp_genesis 1285 }
mp-wp_genesis 1286
mp-wp_genesis 1287 /**
mp-wp_genesis 1288 * Retrieve an array of comment data about comment $comment_ID.
mp-wp_genesis 1289 *
mp-wp_genesis 1290 * @deprecated Use get_comment()
mp-wp_genesis 1291 * @see get_comment()
mp-wp_genesis 1292 * @since 0.71
mp-wp_genesis 1293 *
mp-wp_genesis 1294 * @uses $id
mp-wp_genesis 1295 * @uses $wpdb Database Object
mp-wp_genesis 1296 *
mp-wp_genesis 1297 * @param int $comment_ID The ID of the comment
mp-wp_genesis 1298 * @param int $no_cache Whether to use the cache or not (casted to bool)
mp-wp_genesis 1299 * @param bool $include_unapproved Whether to include unapproved comments or not
mp-wp_genesis 1300 * @return array The comment data
mp-wp_genesis 1301 */
mp-wp_genesis 1302 function get_commentdata( $comment_ID, $no_cache = 0, $include_unapproved = false ) {
mp-wp_genesis 1303 _deprecated_function( __FUNCTION__, '2.7', 'get_comment()' );
mp-wp_genesis 1304 return get_comment($comment_ID, ARRAY_A);
mp-wp_genesis 1305 }
mp-wp_genesis 1306
mp-wp_genesis 1307 ?>