Changeset 21536 for trunk/wp-admin/includes/upgrade.php
- Timestamp:
- 08/16/2012 11:08:07 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/upgrade.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/upgrade.php
r21501 r21536 402 402 if ( $wp_current_db_version < 21501 ) 403 403 upgrade_350(); 404 405 maybe_disable_link_manager(); 404 406 405 407 maybe_disable_automattic_widgets(); … … 1909 1911 1910 1912 /** 1911 * {@internal Missing Short Description}} 1912 * 1913 * {@internal Missing Long Description}} 1913 * Disables the Automattic widgets plugin, which was merged into core. 1914 1914 * 1915 1915 * @since 2.2.0 … … 1925 1925 } 1926 1926 } 1927 } 1928 1929 /** 1930 * Disables the Link Manager on upgrade, if at the time of upgrade, no links exist in the DB. 1931 * 1932 * @since 3.5.0 1933 */ 1934 function maybe_disable_link_manager() { 1935 global $wp_current_db_version, $wpdb; 1936 1937 if ( $wp_current_db_version >= 21501 && get_option( 'link_manager_enabled' ) && ! $wpdb->get_var( "SELECT link_id FROM $wpdb->links LIMIT 1" ) ) 1938 update_option( 'link_manager_enabled', 0 ); 1927 1939 } 1928 1940
Note: See TracChangeset
for help on using the changeset viewer.