Changeset 29206 for trunk/src/wp-admin/includes/schema.php
- Timestamp:
- 07/17/2014 09:13:53 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/schema.php
r29188 r29206 206 206 ) $charset_collate;\n"; 207 207 208 // usermeta208 // Usermeta. 209 209 $usermeta_table = "CREATE TABLE $wpdb->usermeta ( 210 210 umeta_id bigint(20) unsigned NOT NULL auto_increment, … … 523 523 $wpdb->query("INSERT INTO $wpdb->options (option_name, option_value, autoload) VALUES " . $insert); 524 524 525 // in case it is set, but blank, update "home"525 // In case it is set, but blank, update "home". 526 526 if ( !__get_option('home') ) update_option('home', $guessurl); 527 527 528 // Delete unused options 528 // Delete unused options. 529 529 $unusedoptions = array( 530 530 'blodotgsping_url', 'bodyterminator', 'emailtestonly', 'phoneemail_separator', 'smilies_directory', … … 548 548 delete_option($option); 549 549 550 // delete obsolete magpie stuff550 // Delete obsolete magpie stuff. 551 551 $wpdb->query("DELETE FROM $wpdb->options WHERE option_name REGEXP '^rss_[0-9a-f]{32}(_ts)?$'"); 552 552 553 // Deletes all expired transients. 554 // The multi-table delete syntax is used to delete the transient record from table a, 555 // and the corresponding transient_timeout record from table b. 553 /* 554 * Deletes all expired transients. The multi-table delete syntax is used 555 * to delete the transient record from table a, and the corresponding 556 * transient_timeout record from table b. 557 */ 556 558 $time = time(); 557 559 $sql = "DELETE a, b FROM $wpdb->options a, $wpdb->options b … … 820 822 $role->add_cap( 'remove_users' ); 821 823 822 // Never used, will be removed. create_users or 823 // promote_users is the capability you're looking for. 824 /* 825 * Never used, will be removed. create_users or promote_users 826 * is the capability you're looking for. 827 */ 824 828 $role->add_cap( 'add_users' ); 825 829 … … 864 868 $errors->add( 'empty_sitename', __( 'You must provide a name for your network of sites.' ) ); 865 869 866 // check for network collision870 // Check for network collision. 867 871 if ( $network_id == $wpdb->get_var( $wpdb->prepare( "SELECT id FROM $wpdb->site WHERE id = %d", $network_id ) ) ) 868 872 $errors->add( 'siteid_exists', __( 'The network already exists.' ) ); … … 875 879 return $errors; 876 880 877 // set up site tables881 // Set up site tables. 878 882 $template = get_option( 'template' ); 879 883 $stylesheet = get_option( 'stylesheet' ); … … 921 925 922 926 $misc_exts = array( 923 // images927 // Images. 924 928 'jpg', 'jpeg', 'png', 'gif', 925 // video929 // Video. 926 930 'mov', 'avi', 'mpg', '3gp', '3g2', 927 // "audio" 931 // "audio". 928 932 'midi', 'mid', 929 // misc933 // Miscellaneous. 930 934 'pdf', 'doc', 'ppt', 'odt', 'pptx', 'docx', 'pps', 'ppsx', 'xls', 'xlsx', 'key', 931 935 ); … … 982 986 $wpdb->query( "INSERT INTO $wpdb->sitemeta ( site_id, meta_key, meta_value ) VALUES " . $insert ); 983 987 984 // When upgrading from single to multisite, assume the current site will become the main site of the network. 985 // When using populate_network() to create another network in an existing multisite environment, 986 // skip these steps since the main site of the new network has not yet been created. 988 /* 989 * When upgrading from single to multisite, assume the current site will 990 * become the main site of the network. When using populate_network() 991 * to create another network in an existing multisite environment, skip 992 * these steps since the main site of the new network has not yet been 993 * created. 994 */ 987 995 if ( ! is_multisite() ) { 988 996 $current_site = new stdClass;
Note: See TracChangeset
for help on using the changeset viewer.