Changeset 34912 for trunk/src/wp-admin/includes/upgrade.php
- Timestamp:
- 10/07/2015 05:11:01 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/upgrade.php
r34778 r34912 154 154 155 155 if ( is_multisite() ) { 156 $first_post = get_ network_option( 'first_post' );156 $first_post = get_site_option( 'first_post' ); 157 157 158 158 if ( empty($first_post) ) … … 190 190 To delete a comment, just log in and view the post's comments. There you will have the option to edit or delete them.'); 191 191 if ( is_multisite() ) { 192 $first_comment_author = get_ network_option( 'first_comment_author', $first_comment_author );193 $first_comment_url = get_ network_option( 'first_comment_url', network_home_url() );194 $first_comment = get_ network_option( 'first_comment', $first_comment );192 $first_comment_author = get_site_option( 'first_comment_author', $first_comment_author ); 193 $first_comment_url = get_site_option( 'first_comment_url', network_home_url() ); 194 $first_comment = get_site_option( 'first_comment', $first_comment ); 195 195 } 196 196 $wpdb->insert( $wpdb->comments, array( … … 215 215 As a new WordPress user, you should go to <a href=\"%s\">your dashboard</a> to delete this page and create new pages for your content. Have fun!" ), admin_url() ); 216 216 if ( is_multisite() ) 217 $first_page = get_ network_option( 'first_page', $first_page );217 $first_page = get_site_option( 'first_page', $first_page ); 218 218 $first_post_guid = get_option('home') . '/?page_id=2'; 219 219 $wpdb->insert( $wpdb->posts, array( … … 1256 1256 populate_roles_300(); 1257 1257 1258 if ( $wp_current_db_version < 14139 && is_multisite() && is_main_site() && ! defined( 'MULTISITE' ) && get_ network_option( 'siteurl' ) === false )1259 add_ network_option( 'siteurl', '' );1258 if ( $wp_current_db_version < 14139 && is_multisite() && is_main_site() && ! defined( 'MULTISITE' ) && get_site_option( 'siteurl' ) === false ) 1259 add_site_option( 'siteurl', '' ); 1260 1260 1261 1261 // 3.0 screen options key name changes. … … 1644 1644 // 2.8. 1645 1645 if ( $wp_current_db_version < 11549 ) { 1646 $wpmu_sitewide_plugins = get_ network_option( 'wpmu_sitewide_plugins' );1647 $active_sitewide_plugins = get_ network_option( 'active_sitewide_plugins' );1646 $wpmu_sitewide_plugins = get_site_option( 'wpmu_sitewide_plugins' ); 1647 $active_sitewide_plugins = get_site_option( 'active_sitewide_plugins' ); 1648 1648 if ( $wpmu_sitewide_plugins ) { 1649 1649 if ( !$active_sitewide_plugins ) … … 1652 1652 $sitewide_plugins = array_merge( (array) $active_sitewide_plugins, (array) $wpmu_sitewide_plugins ); 1653 1653 1654 update_ network_option( 'active_sitewide_plugins', $sitewide_plugins );1655 } 1656 delete_ network_option( 'wpmu_sitewide_plugins' );1657 delete_ network_option( 'deactivated_sitewide_plugins' );1654 update_site_option( 'active_sitewide_plugins', $sitewide_plugins ); 1655 } 1656 delete_site_option( 'wpmu_sitewide_plugins' ); 1657 delete_site_option( 'deactivated_sitewide_plugins' ); 1658 1658 1659 1659 $start = 0; … … 1664 1664 $value = stripslashes( $value ); 1665 1665 if ( $value !== $row->meta_value ) { 1666 update_ network_option( $row->meta_key, $value );1666 update_site_option( $row->meta_key, $value ); 1667 1667 } 1668 1668 } … … 1673 1673 // 3.0 1674 1674 if ( $wp_current_db_version < 13576 ) 1675 update_ network_option( 'global_terms_enabled', '1' );1675 update_site_option( 'global_terms_enabled', '1' ); 1676 1676 1677 1677 // 3.3 1678 1678 if ( $wp_current_db_version < 19390 ) 1679 update_ network_option( 'initial_db_version', $wp_current_db_version );1679 update_site_option( 'initial_db_version', $wp_current_db_version ); 1680 1680 1681 1681 if ( $wp_current_db_version < 19470 ) { 1682 if ( false === get_ network_option( 'active_sitewide_plugins' ) )1683 update_ network_option( 'active_sitewide_plugins', array() );1682 if ( false === get_site_option( 'active_sitewide_plugins' ) ) 1683 update_site_option( 'active_sitewide_plugins', array() ); 1684 1684 } 1685 1685 … … 1687 1687 if ( $wp_current_db_version < 20148 ) { 1688 1688 // 'allowedthemes' keys things by stylesheet. 'allowed_themes' keyed things by name. 1689 $allowedthemes = get_ network_option( 'allowedthemes' );1690 $allowed_themes = get_ network_option( 'allowed_themes' );1689 $allowedthemes = get_site_option( 'allowedthemes' ); 1690 $allowed_themes = get_site_option( 'allowed_themes' ); 1691 1691 if ( false === $allowedthemes && is_array( $allowed_themes ) && $allowed_themes ) { 1692 1692 $converted = array(); … … 1696 1696 $converted[ $stylesheet ] = true; 1697 1697 } 1698 update_ network_option( 'allowedthemes', $converted );1699 delete_ network_option( 'allowed_themes' );1698 update_site_option( 'allowedthemes', $converted ); 1699 delete_site_option( 'allowed_themes' ); 1700 1700 } 1701 1701 } … … 1703 1703 // 3.5 1704 1704 if ( $wp_current_db_version < 21823 ) 1705 update_ network_option( 'ms_files_rewriting', '1' );1705 update_site_option( 'ms_files_rewriting', '1' ); 1706 1706 1707 1707 // 3.5.2 1708 1708 if ( $wp_current_db_version < 24448 ) { 1709 $illegal_names = get_ network_option( 'illegal_names' );1709 $illegal_names = get_site_option( 'illegal_names' ); 1710 1710 if ( is_array( $illegal_names ) && count( $illegal_names ) === 1 ) { 1711 1711 $illegal_name = reset( $illegal_names ); 1712 1712 $illegal_names = explode( ' ', $illegal_name ); 1713 update_ network_option( 'illegal_names', $illegal_names );1713 update_site_option( 'illegal_names', $illegal_names ); 1714 1714 } 1715 1715 }
Note: See TracChangeset
for help on using the changeset viewer.