Make WordPress Core


Ignore:
Timestamp:
07/09/2023 07:50:52 PM (19 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.

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-base.php

    r55824 r56174  
    5858        $folder = $this->find_folder( ABSPATH );
    5959
    60         // Perhaps the FTP folder is rooted at the WordPress install.
    61         // Check for wp-includes folder in root. Could have some false positives, but rare.
     60        /*
     61         * Perhaps the FTP folder is rooted at the WordPress install.
     62         * Check for wp-includes folder in root. Could have some false positives, but rare.
     63         */
    6264        if ( ! $folder && $this->is_dir( '/' . WPINC ) ) {
    6365            $folder = '/';
     
    306308        }
    307309
    308         // Only check this as a last resort, to prevent locating the incorrect install.
    309         // All above procedures will fail quickly if this is the right branch to take.
     310        /*
     311         * Only check this as a last resort, to prevent locating the incorrect install.
     312         * All above procedures will fail quickly if this is the right branch to take.
     313         */
    310314        if ( isset( $files[ $last_path ] ) ) {
    311315            if ( $this->verbose ) {
     
    317321        }
    318322
    319         // Prevent this function from looping again.
    320         // No need to proceed if we've just searched in `/`.
     323        /*
     324         * Prevent this function from looping again.
     325         * No need to proceed if we've just searched in `/`.
     326         */
    321327        if ( $loop || '/' === $base ) {
    322328            return false;
    323329        }
    324330
    325         // As an extra last resort, Change back to / if the folder wasn't found.
    326         // This comes into effect when the CWD is /home/user/ but WP is at /var/www/....
     331        /*
     332         * As an extra last resort, Change back to / if the folder wasn't found.
     333         * This comes into effect when the CWD is /home/user/ but WP is at /var/www/....
     334         */
    327335        return $this->search_for_folder( $folder, '/', true );
    328336
Note: See TracChangeset for help on using the changeset viewer.