Make WordPress Core


Ignore:
Timestamp:
07/09/2023 08:05:43 PM (15 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/revision.php

    r54939 r56176  
    4040    }
    4141
    42     // If comparing revisions, make sure we're dealing with the right post parent.
    43     // The parent post may be a 'revision' when revisions are disabled and we're looking at autosaves.
     42    /*
     43     * If comparing revisions, make sure we are dealing with the right post parent.
     44     * The parent post may be a 'revision' when revisions are disabled and we're looking at autosaves.
     45     */
    4446    if ( $compare_from && $compare_from->post_parent !== $post->ID && $compare_from->ID !== $post->ID ) {
    4547        return false;
     
    119121
    120122        if ( ! $diff && 'post_title' === $field ) {
    121             // It's a better user experience to still show the Title, even if it didn't change.
    122             // No, you didn't see this.
     123            /*
     124             * It's a better user experience to still show the Title, even if it didn't change.
     125             * No, you didn't see this.
     126             */
    123127            $diff = '<table class="diff"><colgroup><col class="content diffsplit left"><col class="content diffsplit middle"><col class="content diffsplit right"></colgroup><tbody><tr>';
    124128
Note: See TracChangeset for help on using the changeset viewer.