Deprecate update_category_cache(). Fixes #15446

git-svn-id: http://svn.automattic.com/wordpress/trunk@16412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-11-17 00:56:00 +00:00
parent de65e1f2f3
commit d2a5add61a
3 changed files with 19 additions and 18 deletions

View File

@ -67,8 +67,6 @@ auth_redirect();
nocache_headers(); nocache_headers();
update_category_cache();
// Schedule trash collection // Schedule trash collection
if ( !wp_next_scheduled('wp_scheduled_delete') && !defined('WP_INSTALLING') ) if ( !wp_next_scheduled('wp_scheduled_delete') && !defined('WP_INSTALLING') )
wp_schedule_event(time(), 'daily', 'wp_scheduled_delete'); wp_schedule_event(time(), 'daily', 'wp_scheduled_delete');

View File

@ -305,22 +305,6 @@ function &get_tag( $tag, $output = OBJECT, $filter = 'raw' ) {
/* Cache */ /* Cache */
/**
* Update the categories cache.
*
* This function does not appear to be used anymore or does not appear to be
* needed. It might be a legacy function left over from when there was a need
* for updating the category cache.
*
* @since 1.5.0
*
* @return bool Always return True
*/
function update_category_cache() {
return true;
}
/** /**
* Remove the category cache data based on ID. * Remove the category cache data based on ID.
* *

View File

@ -2556,3 +2556,22 @@ function is_plugin_page() {
return false; return false;
} }
/**
* Update the categories cache.
*
* This function does not appear to be used anymore or does not appear to be
* needed. It might be a legacy function left over from when there was a need
* for updating the category cache.
*
* @since 1.5.0
* @deprecated 3.1
*
* @return bool Always return True
*/
function update_category_cache() {
_deprecated_function( __FUNCTION__, '3.1' );
return true;
}