WordPress.org

Make WordPress Core

Changeset 12849


Ignore:
Timestamp:
01/26/2010 06:47:34 PM (10 years ago)
Author:
ryan
Message:

Remove rss_gc(). see #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-functions.php

    r12848 r12849  
    19821982}
    19831983
    1984 if ( !function_exists('rss_gc') ) :
    1985 function rss_gc() {
    1986     global $wpdb;
    1987     // Garbage Collection
    1988     $rows = $wpdb->get_results( "SELECT meta_key FROM {$wpdb->sitemeta} WHERE meta_key LIKE 'rss\_%\_ts' AND meta_value < unix_timestamp( date_sub( NOW(), interval 7200 second ) )" );
    1989     if ( is_array( $rows ) ) {
    1990         foreach ( $rows as $row ) {
    1991             $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->sitemeta} WHERE meta_key = %s", $row->meta_key ) );
    1992             $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->sitemeta} WHERE meta_key = %s", str_replace( '_ts', '', $row->meta_key ) ) );
    1993         }
    1994     }
    1995 }
    1996 endif;
    1997 add_action( 'wp_rss_gc', 'rss_gc' );
    1998 
    19991984function retrieve_password_sitename( $title ) {
    20001985    global $current_site;
Note: See TracChangeset for help on using the changeset viewer.