Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/schema.php

    r47088 r47122  
    5353    $max_index_length = 191;
    5454
    55     // Blog specific tables.
     55    // Blog-specific tables.
    5656    $blog_tables = "CREATE TABLE $wpdb->termmeta (
    5757    meta_id bigint(20) unsigned NOT NULL auto_increment,
     
    206206) $charset_collate;\n";
    207207
    208     // Multisite users table
     208    // Multisite users table.
    209209    $users_multi_table = "CREATE TABLE $wpdb->users (
    210210    ID bigint(20) unsigned NOT NULL auto_increment,
     
    237237) $charset_collate;\n";
    238238
    239     // Global tables
     239    // Global tables.
    240240    if ( $is_multisite ) {
    241241        $global_tables = $users_multi_table . $usermeta_table;
     
    548548    }
    549549
    550     // 3.0 multisite
     550    // 3.0 multisite.
    551551    if ( is_multisite() ) {
    552552        /* translators: %s: Network title. */
     
    557557    $options = wp_parse_args( $options, $defaults );
    558558
    559     // Set autoload to no for these options
     559    // Set autoload to no for these options.
    560560    $fat_options = array( 'moderation_keys', 'recently_edited', 'blacklist_keys', 'uninstall_plugins' );
    561561
     
    678678    $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name REGEXP '^rss_[0-9a-f]{32}(_ts)?$'" );
    679679
    680     // Clear expired transients
     680    // Clear expired transients.
    681681    delete_expired_transients( true );
    682682}
     
    704704 */
    705705function populate_roles_160() {
    706     // Add roles
    707 
     706    // Add roles.
    708707    add_role( 'administrator', 'Administrator' );
    709708    add_role( 'editor', 'Editor' );
     
    712711    add_role( 'subscriber', 'Subscriber' );
    713712
    714     // Add caps for Administrator role
     713    // Add caps for Administrator role.
    715714    $role = get_role( 'administrator' );
    716715    $role->add_cap( 'switch_themes' );
     
    745744    $role->add_cap( 'level_0' );
    746745
    747     // Add caps for Editor role
     746    // Add caps for Editor role.
    748747    $role = get_role( 'editor' );
    749748    $role->add_cap( 'moderate_comments' );
     
    767766    $role->add_cap( 'level_0' );
    768767
    769     // Add caps for Author role
     768    // Add caps for Author role.
    770769    $role = get_role( 'author' );
    771770    $role->add_cap( 'upload_files' );
     
    778777    $role->add_cap( 'level_0' );
    779778
    780     // Add caps for Contributor role
     779    // Add caps for Contributor role.
    781780    $role = get_role( 'contributor' );
    782781    $role->add_cap( 'edit_posts' );
     
    785784    $role->add_cap( 'level_0' );
    786785
    787     // Add caps for Subscriber role
     786    // Add caps for Subscriber role.
    788787    $role = get_role( 'subscriber' );
    789788    $role->add_cap( 'read' );
     
    12451244        /* translators: %s: Site link. */
    12461245        '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).
    12481247        'siteurl'                     => get_option( 'siteurl' ) . '/',
    12491248        'add_new_users'               => '0',
Note: See TracChangeset for help on using the changeset viewer.