Make WordPress Core


Ignore:
Timestamp:
07/10/2023 10:58:33 PM (22 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], [56192].

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php

    r56163 r56193  
    230230
    231231        if ( $is_draft && (int) $post->post_author === $user_id && ! $post_lock ) {
    232             // Draft posts for the same author: autosaving updates the post and does not create a revision.
    233             // Convert the post object to an array and add slashes, wp_update_post() expects escaped array.
     232            /*
     233             * Draft posts for the same author: autosaving updates the post and does not create a revision.
     234             * Convert the post object to an array and add slashes, wp_update_post() expects escaped array.
     235             */
    234236            $autosave_id = wp_update_post( wp_slash( (array) $prepared_post ), true );
    235237        } else {
Note: See TracChangeset for help on using the changeset viewer.