diff --git src/wp-admin/includes/dashboard.php src/wp-admin/includes/dashboard.php
index 124dea2206..59232154c5 100644
|
|
|
function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = ar |
| 982 | 982 | |
| 983 | 983 | $locale = get_locale(); |
| 984 | 984 | $cache_key = 'dash_' . md5( $widget_id . '_' . $locale ); |
| | 985 | |
| | 986 | /* |
| | 987 | * Clear the cached 4.7 w.org feed markup during the upgrade to 4.8.0. |
| | 988 | * |
| | 989 | * This wasn't done in wp-admin/includes/upgrade.php because that would |
| | 990 | * trigger an upgrade screen for users, and it's not worth the UX cost |
| | 991 | * for such a small change. |
| | 992 | * |
| | 993 | * @todo This is a temporary hack for 4.8.0 only, and should be removed in 4.8.1. |
| | 994 | */ |
| | 995 | if ( 'dashboard_primary' === $widget_id && false !== strpos( get_transient( $cache_key ), 'rssSummary' ) ) { |
| | 996 | delete_transient( $cache_key ); |
| | 997 | } |
| | 998 | |
| 985 | 999 | if ( false !== ( $output = get_transient( $cache_key ) ) ) { |
| 986 | 1000 | echo $output; |
| 987 | 1001 | return true; |
diff --git src/wp-admin/includes/upgrade.php src/wp-admin/includes/upgrade.php
index 23a5eee4d7..94ad771761 100644
|
|
|
function upgrade_all() { |
| 565 | 565 | if ( $wp_current_db_version < 37965 ) |
| 566 | 566 | upgrade_460(); |
| 567 | 567 | |
| 568 | | if ( $wp_current_db_version < 40607 ) { |
| 569 | | upgrade_480(); |
| 570 | | } |
| 571 | | |
| 572 | 568 | maybe_disable_link_manager(); |
| 573 | 569 | |
| 574 | 570 | maybe_disable_automattic_widgets(); |
| … |
… |
function upgrade_460() { |
| 1737 | 1733 | } |
| 1738 | 1734 | |
| 1739 | 1735 | /** |
| 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 | | /** |
| 1760 | 1736 | * Executes network-level upgrade routines. |
| 1761 | 1737 | * |
| 1762 | 1738 | * @since 3.0.0 |