Make WordPress Core


Ignore:
Timestamp:
07/10/2023 10:46:22 PM (14 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], [56176], [56177], [56178], [56179], [56180], [56191].

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

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

    r56061 r56192  
    665665    $value = sanitize_option( $option, $value );
    666666
    667     // Make sure the option doesn't already exist.
    668     // We can check the 'notoptions' cache before we ask for a DB query.
     667    /*
     668     * Make sure the option doesn't already exist.
     669     * We can check the 'notoptions' cache before we ask for a DB query.
     670     */
    669671    $notoptions = wp_cache_get( 'notoptions', 'options' );
    670672
     
    9991001            $result = add_option( $transient_option, $value, '', $autoload );
    10001002        } else {
    1001             // If expiration is requested, but the transient has no timeout option,
    1002             // delete, then re-create transient rather than update.
     1003            /*
     1004             * If expiration is requested, but the transient has no timeout option,
     1005             * delete, then re-create transient rather than update.
     1006             */
    10031007            $update = true;
    10041008
     
    15991603        $cache_key = "$network_id:$option";
    16001604
    1601         // Make sure the option doesn't already exist.
    1602         // We can check the 'notoptions' cache before we ask for a DB query.
     1605        /*
     1606         * Make sure the option doesn't already exist.
     1607         * We can check the 'notoptions' cache before we ask for a DB query.
     1608         */
    16031609        $notoptions = wp_cache_get( $notoptions_key, 'site-options' );
    16041610
Note: See TracChangeset for help on using the changeset viewer.