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/file.php

    r56069 r56174  
    575575
    576576        if ( function_exists( 'session_status' ) && PHP_SESSION_ACTIVE === session_status() ) {
    577             // Close any active session to prevent HTTP requests from timing out
    578             // when attempting to connect back to the site.
     577            /*
     578             * Close any active session to prevent HTTP requests from timing out
     579             * when attempting to connect back to the site.
     580             */
    579581            session_write_close();
    580582        }
     
    12521254
    12531255        if ( ! $signature ) {
    1254             // Retrieve signatures from a file if the header wasn't included.
    1255             // WordPress.org stores signatures at $package_url.sig.
     1256            /*
     1257             * Retrieve signatures from a file if the header wasn't included.
     1258             * WordPress.org stores signatures at $package_url.sig.
     1259             */
    12561260
    12571261            $signature_url = false;
     
    13871391        extension_loaded( 'opcache' )
    13881392    ) {
    1389         // Sodium_Compat isn't compatible with PHP 7.2.0~7.2.2 due to a bug in the PHP Opcache extension, bail early as it'll fail.
    1390         // https://bugs.php.net/bug.php?id=75938
     1393        /*
     1394         * Sodium_Compat isn't compatible with PHP 7.2.0~7.2.2 due to a bug in the PHP Opcache extension, bail early as it'll fail.
     1395         * https://bugs.php.net/bug.php?id=75938
     1396         */
    13911397        return new WP_Error(
    13921398            'signature_verification_unsupported',
     
    14211427        }
    14221428
    1423         // This cannot be performed in a reasonable amount of time.
    1424         // https://github.com/paragonie/sodium_compat#help-sodium_compat-is-slow-how-can-i-make-it-fast
     1429        /*
     1430         * This cannot be performed in a reasonable amount of time.
     1431         * https://github.com/paragonie/sodium_compat#help-sodium_compat-is-slow-how-can-i-make-it-fast
     1432         */
    14251433        if ( ! $sodium_compat_is_fast ) {
    14261434            return new WP_Error(
     
    23282336    );
    23292337
    2330     // If defined, set it to that. Else, if POST'd, set it to that. If not, set it to an empty string.
    2331     // Otherwise, keep it as it previously was (saved details in option).
     2338    /*
     2339     * If defined, set it to that. Else, if POST'd, set it to that. If not, set it to an empty string.
     2340     * Otherwise, keep it as it previously was (saved details in option).
     2341     */
    23322342    foreach ( $ftp_constants as $key => $constant ) {
    23332343        if ( defined( $constant ) ) {
     
    25322542    }
    25332543
    2534     // Make sure the `submit_button()` function is available during the REST API call
    2535     // from WP_Site_Health_Auto_Updates::test_check_wp_filesystem_method().
     2544    /*
     2545     * Make sure the `submit_button()` function is available during the REST API call
     2546     * from WP_Site_Health_Auto_Updates::test_check_wp_filesystem_method().
     2547     */
    25362548    if ( ! function_exists( 'submit_button' ) ) {
    25372549        require_once ABSPATH . 'wp-admin/includes/template.php';
Note: See TracChangeset for help on using the changeset viewer.