diff --git a/wp-admin/admin.php b/wp-admin/admin.php index ae2950ae64..e7ff153d1a 100644 --- a/wp-admin/admin.php +++ b/wp-admin/admin.php @@ -67,8 +67,6 @@ auth_redirect(); nocache_headers(); -update_category_cache(); - // Schedule trash collection if ( !wp_next_scheduled('wp_scheduled_delete') && !defined('WP_INSTALLING') ) wp_schedule_event(time(), 'daily', 'wp_scheduled_delete'); diff --git a/wp-includes/category.php b/wp-includes/category.php index 1f66518536..4d02277417 100644 --- a/wp-includes/category.php +++ b/wp-includes/category.php @@ -305,22 +305,6 @@ function &get_tag( $tag, $output = OBJECT, $filter = 'raw' ) { /* 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. * diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index 9775e827fa..645de52fba 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -2556,3 +2556,22 @@ function is_plugin_page() { 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; +} +