Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 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-includes/ms-site.php

    r47101 r47122  
    762762    // Remove all permissions that may exist for the site.
    763763    $table_prefix = $wpdb->get_blog_prefix();
    764     delete_metadata( 'user', 0, $table_prefix . 'user_level', null, true ); // delete all
    765     delete_metadata( 'user', 0, $table_prefix . 'capabilities', null, true ); // delete all
     764    delete_metadata( 'user', 0, $table_prefix . 'user_level', null, true );   // Delete all.
     765    delete_metadata( 'user', 0, $table_prefix . 'capabilities', null, true ); // Delete all.
    766766
    767767    // Install default site content.
     
    864864
    865865    while ( $index < count( $stack ) ) {
    866         // Get indexed directory from stack
     866        // Get indexed directory from stack.
    867867        $dir = $stack[ $index ];
    868868
     
    890890    }
    891891
    892     $stack = array_reverse( $stack ); // Last added dirs are deepest
     892    $stack = array_reverse( $stack ); // Last added directories are deepest.
    893893    foreach ( (array) $stack as $dir ) {
    894894        if ( $dir != $top_dir ) {
Note: See TracChangeset for help on using the changeset viewer.