Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-includes/deprecated.php

    r17084 r15364  
    165165 *
    166166 * @param string $format
    167  * @param string $next
     167 * @param string $previous
    168168 * @param string $title
    169169 * @param string $in_same_cat
    170  * @param int $limitnext
     170 * @param int $limitprev
    171171 * @param string $excluded_categories
    172172 */
     
    431431 */
    432432function wp_get_linksbyname($category, $args = '') {
    433     _deprecated_function(__FUNCTION__, '2.1', 'wp_list_bookmarks()');
     433    _deprecated_function(__FUNCTION__, '0.0', 'wp_list_bookmarks()');
    434434
    435435    $defaults = array(
     
    873873 * @see the_permalink_rss()
    874874 *
    875  * @param string $deprecated
     875 * @param string $file
    876876 */
    877877function permalink_single_rss($deprecated = '') {
    878     _deprecated_function( __FUNCTION__, '2.3', 'the_permalink_rss()' );
     878    _deprecated_function( __FUNCTION__, '0.0', 'the_permalink_rss()' );
    879879    the_permalink_rss();
    880880}
     
    893893 */
    894894function wp_get_links($args = '') {
    895     _deprecated_function( __FUNCTION__, '2.1', 'wp_list_bookmarks()' );
     895    _deprecated_function( __FUNCTION__, '0.0', 'wp_list_bookmarks()' );
    896896
    897897    if ( strpos( $args, '=' ) === false ) {
     
    20362036}
    20372037
    2038 /**
     2038/*
    20392039 * Retrieve bookmark data based on ID.
    20402040 *
     
    22972297        $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->usermeta WHERE user_id = %d AND meta_key = %s", $user_id, $meta_key) );
    22982298
    2299     clean_user_cache( $user_id );
    2300     wp_cache_delete( $user_id, 'user_meta' );
     2299    wp_cache_delete($user_id, 'users');
    23012300
    23022301    if ( $cur && $cur->umeta_id )
     
    24052404        return false;
    24062405
    2407     clean_user_cache( $user_id );
    2408     wp_cache_delete( $user_id, 'user_meta' );
     2406    wp_cache_delete($user_id, 'users');
    24092407
    24102408    if ( !$cur )
     
    24142412
    24152413    return true;
    2416 }
    2417 
    2418 /**
    2419  * Get users for the blog.
    2420  *
    2421  * For setups that use the multi-blog feature. Can be used outside of the
    2422  * multi-blog feature.
    2423  *
    2424  * @since 2.2.0
    2425  * @deprecated 3.1.0
    2426  * @uses $wpdb WordPress database object for queries
    2427  * @uses $blog_id The Blog id of the blog for those that use more than one blog
    2428  *
    2429  * @param int $id Blog ID.
    2430  * @return array List of users that are part of that Blog ID
    2431  */
    2432 function get_users_of_blog( $id = '' ) {
    2433     _deprecated_function( __FUNCTION__, '3.1', 'get_users()' );
    2434 
    2435     global $wpdb, $blog_id;
    2436     if ( empty($id) )
    2437         $id = (int) $blog_id;
    2438     $blog_prefix = $wpdb->get_blog_prefix($id);
    2439     $users = $wpdb->get_results( "SELECT user_id, user_id AS ID, user_login, display_name, user_email, meta_value FROM $wpdb->users, $wpdb->usermeta WHERE {$wpdb->users}.ID = {$wpdb->usermeta}.user_id AND meta_key = '{$blog_prefix}capabilities' ORDER BY {$wpdb->usermeta}.user_id" );
    2440     return $users;
    24412414}
    24422415
     
    25622535    return term_exists( $term, $taxonomy, $parent );
    25632536}
    2564 
    2565 /**
    2566  * Is the current admin page generated by a plugin?
    2567  *
    2568  * @since 1.5.0
    2569  * @deprecated 3.1
    2570  * @deprecated Use global $plugin_page and/or get_plugin_page_hookname() hooks.
    2571  *
    2572  * @global $plugin_page
    2573  *
    2574  * @return bool
    2575  */
    2576 function is_plugin_page() {
    2577     _deprecated_function( __FUNCTION__, '3.1'  );
    2578 
    2579     global $plugin_page;
    2580 
    2581     if ( isset($plugin_page) )
    2582         return true;
    2583 
    2584     return false;
    2585 }
    2586 
    2587 /**
    2588  * Update the categories cache.
    2589  *
    2590  * This function does not appear to be used anymore or does not appear to be
    2591  * needed. It might be a legacy function left over from when there was a need
    2592  * for updating the category cache.
    2593  *
    2594  * @since 1.5.0
    2595  * @deprecated 3.1
    2596  *
    2597  * @return bool Always return True
    2598  */
    2599 function update_category_cache() {
    2600     _deprecated_function( __FUNCTION__, '3.1'  );
    2601 
    2602     return true;
    2603 }
    2604 
Note: See TracChangeset for help on using the changeset viewer.