home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Blogs / wordpress2.6.exe / wordpress2.6 / wp-includes / deprecated.php < prev    next >
Encoding:
PHP Script  |  2008-07-08  |  36.7 KB  |  1,286 lines

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