Make WordPress Core


Ignore:
Timestamp:
07/09/2023 08:05:43 PM (17 months ago)
Author:
audrasjb
Message:

Docs: Replace multiple single line comments with multi-line comments.

This changeset updates various comments as per WordPress PHP Inline Documentation Standards.
See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#5-inline-comments.

Follow-up to [56174], [56175].

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

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

    r56044 r56176  
    441441            $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->usermeta WHERE user_id != %d AND meta_key = %s", $user_id, $table_prefix . 'capabilities' ) );
    442442
    443             // Delete any caps that snuck into the previously active blog. (Hardcoded to blog 1 for now.)
    444             // TODO: Get previous_blog_id.
     443            /*
     444             * Delete any caps that snuck into the previously active blog. (Hardcoded to blog 1 for now.)
     445             * TODO: Get previous_blog_id.
     446             */
    445447            if ( ! is_super_admin( $user_id ) && 1 != $user_id ) {
    446448                $wpdb->delete(
     
    16451647
    16461648    if ( $wp_current_db_version < 11958 ) {
    1647         // Previously, setting depth to 1 would redundantly disable threading,
    1648         // but now 2 is the minimum depth to avoid confusion.
     1649        /*
     1650         * Previously, setting depth to 1 would redundantly disable threading,
     1651         * but now 2 is the minimum depth to avoid confusion.
     1652         */
    16491653        if ( get_option( 'thread_comments_depth' ) == '1' ) {
    16501654            update_option( 'thread_comments_depth', 2 );
     
    33323336    $default_dir = WP_CONTENT_DIR . '/themes/' . WP_DEFAULT_THEME;
    33333337
    3334     // Copy files from the default theme to the site theme.
    3335     // $files = array( 'index.php', 'comments.php', 'comments-popup.php', 'footer.php', 'header.php', 'sidebar.php', 'style.css' );
     3338    /*
     3339     * Copy files from the default theme to the site theme.
     3340     * $files = array( 'index.php', 'comments.php', 'comments-popup.php', 'footer.php', 'header.php', 'sidebar.php', 'style.css' );
     3341     */
    33363342
    33373343    $theme_dir = @opendir( $default_dir );
Note: See TracChangeset for help on using the changeset viewer.