Changeset 47122 for trunk/src/wp-admin/includes/schema.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/schema.php (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/schema.php
r47088 r47122 53 53 $max_index_length = 191; 54 54 55 // Blog specific tables.55 // Blog-specific tables. 56 56 $blog_tables = "CREATE TABLE $wpdb->termmeta ( 57 57 meta_id bigint(20) unsigned NOT NULL auto_increment, … … 206 206 ) $charset_collate;\n"; 207 207 208 // Multisite users table 208 // Multisite users table. 209 209 $users_multi_table = "CREATE TABLE $wpdb->users ( 210 210 ID bigint(20) unsigned NOT NULL auto_increment, … … 237 237 ) $charset_collate;\n"; 238 238 239 // Global tables 239 // Global tables. 240 240 if ( $is_multisite ) { 241 241 $global_tables = $users_multi_table . $usermeta_table; … … 548 548 } 549 549 550 // 3.0 multisite 550 // 3.0 multisite. 551 551 if ( is_multisite() ) { 552 552 /* translators: %s: Network title. */ … … 557 557 $options = wp_parse_args( $options, $defaults ); 558 558 559 // Set autoload to no for these options 559 // Set autoload to no for these options. 560 560 $fat_options = array( 'moderation_keys', 'recently_edited', 'blacklist_keys', 'uninstall_plugins' ); 561 561 … … 678 678 $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name REGEXP '^rss_[0-9a-f]{32}(_ts)?$'" ); 679 679 680 // Clear expired transients 680 // Clear expired transients. 681 681 delete_expired_transients( true ); 682 682 } … … 704 704 */ 705 705 function populate_roles_160() { 706 // Add roles 707 706 // Add roles. 708 707 add_role( 'administrator', 'Administrator' ); 709 708 add_role( 'editor', 'Editor' ); … … 712 711 add_role( 'subscriber', 'Subscriber' ); 713 712 714 // Add caps for Administrator role 713 // Add caps for Administrator role. 715 714 $role = get_role( 'administrator' ); 716 715 $role->add_cap( 'switch_themes' ); … … 745 744 $role->add_cap( 'level_0' ); 746 745 747 // Add caps for Editor role 746 // Add caps for Editor role. 748 747 $role = get_role( 'editor' ); 749 748 $role->add_cap( 'moderate_comments' ); … … 767 766 $role->add_cap( 'level_0' ); 768 767 769 // Add caps for Author role 768 // Add caps for Author role. 770 769 $role = get_role( 'author' ); 771 770 $role->add_cap( 'upload_files' ); … … 778 777 $role->add_cap( 'level_0' ); 779 778 780 // Add caps for Contributor role 779 // Add caps for Contributor role. 781 780 $role = get_role( 'contributor' ); 782 781 $role->add_cap( 'edit_posts' ); … … 785 784 $role->add_cap( 'level_0' ); 786 785 787 // Add caps for Subscriber role 786 // Add caps for Subscriber role. 788 787 $role = get_role( 'subscriber' ); 789 788 $role->add_cap( 'read' ); … … 1245 1244 /* translators: %s: Site link. */ 1246 1245 'first_post' => __( 'Welcome to %s. This is your first post. Edit or delete it, then start writing!' ), 1247 // @todo - network admins should have a method of editing the network siteurl (used for cookie hash)1246 // @todo - Network admins should have a method of editing the network siteurl (used for cookie hash). 1248 1247 'siteurl' => get_option( 'siteurl' ) . '/', 1249 1248 'add_new_users' => '0',
Note: See TracChangeset
for help on using the changeset viewer.