WordPress.org

Make WordPress Core

Changeset 16412


Ignore:
Timestamp:
11/17/2010 12:56:00 AM (8 years ago)
Author:
scribu
Message:

Deprecate update_category_cache(). Fixes #15446

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin.php

    r16008 r16412  
    6868nocache_headers();
    6969
    70 update_category_cache();
    71 
    7270// Schedule trash collection
    7371if ( !wp_next_scheduled('wp_scheduled_delete') && !defined('WP_INSTALLING') )
  • trunk/wp-includes/category.php

    r13754 r16412  
    304304
    305305/* Cache */
    306 
    307 
    308 /**
    309  * Update the categories cache.
    310  *
    311  * This function does not appear to be used anymore or does not appear to be
    312  * needed. It might be a legacy function left over from when there was a need
    313  * for updating the category cache.
    314  *
    315  * @since 1.5.0
    316  *
    317  * @return bool Always return True
    318  */
    319 function update_category_cache() {
    320     return true;
    321 }
    322306
    323307
  • trunk/wp-includes/deprecated.php

    r16334 r16412  
    25572557    return false;
    25582558}
     2559
     2560/**
     2561 * Update the categories cache.
     2562 *
     2563 * This function does not appear to be used anymore or does not appear to be
     2564 * needed. It might be a legacy function left over from when there was a need
     2565 * for updating the category cache.
     2566 *
     2567 * @since 1.5.0
     2568 * @deprecated 3.1
     2569 *
     2570 * @return bool Always return True
     2571 */
     2572function update_category_cache() {
     2573    _deprecated_function( __FUNCTION__, '3.1'  );
     2574
     2575    return true;
     2576}
     2577
Note: See TracChangeset for help on using the changeset viewer.