Make WordPress Core


Ignore:
Timestamp:
07/10/2023 10:46:22 PM (11 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/revision.php

    r55988 r56192  
    191191    $return = _wp_put_post_revision( $post );
    192192
    193     // If a limit for the number of revisions to keep has been set,
    194     // delete the oldest ones.
     193    /*
     194     * If a limit for the number of revisions to keep has been set,
     195     * delete the oldest ones.
     196     */
    195197    $revisions_to_keep = wp_revisions_to_keep( $post );
    196198
     
    870872
    871873        if ( ! $locked ) {
    872             // Can't write to the lock, and can't read the lock.
    873             // Something broken has happened.
     874            /*
     875             * Can't write to the lock, and can't read the lock.
     876             * Something broken has happened.
     877             */
    874878            return false;
    875879        }
     
    900904        }
    901905
    902         // 1 is the latest revision version, so we're already up to date.
    903         // No need to add a copy of the post as latest revision.
     906        /*
     907         * 1 is the latest revision version, so we're already up to date.
     908         * No need to add a copy of the post as latest revision.
     909         */
    904910        if ( 0 < $this_revision_version ) {
    905911            $add_last = false;
Note: See TracChangeset for help on using the changeset viewer.