Make WordPress Core

Changeset 25416


Ignore:
Timestamp:
09/12/2013 09:13:18 PM (11 years ago)
Author:
nacin
Message:

Clear all transients (regardless of expiration) on all database upgrades. see #20316.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/schema.php

    r25414 r25416  
    547547    // delete obsolete magpie stuff
    548548    $wpdb->query("DELETE FROM $wpdb->options WHERE option_name REGEXP '^rss_[0-9a-f]{32}(_ts)?$'");
     549    // clear transient data
     550    $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '\_transient\_%' OR option_name LIKE '\_site\_transient\_%'" );
    549551}
    550552
  • trunk/src/wp-includes/version.php

    r25343 r25416  
    1212 * @global int $wp_db_version
    1313 */
    14 $wp_db_version = 25179;
     14$wp_db_version = 25416;
    1515
    1616/**
Note: See TracChangeset for help on using the changeset viewer.