Make WordPress Core

Ticket #40702: 40702-transient-rename.3.diff

File 40702-transient-rename.3.diff, 2.4 KB (added by iandunn, 7 years ago)

refresh; revert db_version; rename 2nd transient

  • src/wp-admin/includes/dashboard.php

    diff --git src/wp-admin/includes/dashboard.php src/wp-admin/includes/dashboard.php
    index 949802cf33..b05f839125 100644
    function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = ar 
    981981        }
    982982
    983983        $locale = get_user_locale();
    984         $cache_key = 'dash_' . md5( $widget_id . '_' . $locale );
     984        $cache_key = 'dash_v2_' . md5( $widget_id . '_' . $locale );
    985985        if ( false !== ( $output = get_transient( $cache_key ) ) ) {
    986986                echo $output;
    987987                return true;
    function wp_dashboard_rss_control( $widget_id, $form_inputs = array() ) { 
    10631063                }
    10641064                update_option( 'dashboard_widget_options', $widget_options );
    10651065                $locale = get_user_locale();
    1066                 $cache_key = 'dash_' . md5( $widget_id . '_' . $locale );
     1066                $cache_key = 'dash_v2_' . md5( $widget_id . '_' . $locale );
    10671067                delete_transient( $cache_key );
    10681068        }
    10691069
  • src/wp-admin/includes/upgrade.php

    diff --git src/wp-admin/includes/upgrade.php src/wp-admin/includes/upgrade.php
    index 23a5eee4d7..94ad771761 100644
    function upgrade_all() { 
    565565        if ( $wp_current_db_version < 37965 )
    566566                upgrade_460();
    567567
    568         if ( $wp_current_db_version < 40607 ) {
    569                 upgrade_480();
    570         }
    571 
    572568        maybe_disable_link_manager();
    573569
    574570        maybe_disable_automattic_widgets();
    function upgrade_460() { 
    17371733}
    17381734
    17391735/**
    1740  * Executes changes made in WordPress 4.8.0.
    1741  *
    1742  * @ignore
    1743  * @since 4.8.0
    1744  *
    1745  * @global int $wp_current_db_version Current database version.
    1746  */
    1747 function upgrade_480() {
    1748         global $wp_current_db_version;
    1749 
    1750         if ( $wp_current_db_version < 40607 ) {
    1751                 // This feature plugin was merged for #40702, so the plugin itself is no longer needed
    1752                 deactivate_plugins( array( 'nearby-wp-events/nearby-wordpress-events.php' ), true );
    1753 
    1754                 // The markup stored in this transient changed for #40702
    1755                 delete_transient( 'dash_' . md5( 'dashboard_primary' . '_' . get_locale() ) );
    1756         }
    1757 }
    1758 
    1759 /**
    17601736 * Executes network-level upgrade routines.
    17611737 *
    17621738 * @since 3.0.0
  • src/wp-includes/version.php

    diff --git src/wp-includes/version.php src/wp-includes/version.php
    index 374ef078e9..020cf0cf8a 100644
    $wp_version = '4.8-beta1-40663-src'; 
    1111 *
    1212 * @global int $wp_db_version
    1313 */
    14 $wp_db_version = 40607;
     14$wp_db_version = 38590;
    1515
    1616/**
    1717 * Holds the TinyMCE version