Make WordPress Core


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

    r56123 r56176  
    136136        $published_statuses = array( 'publish', 'future' );
    137137
    138         // Posts 'submitted for approval' are submitted to $_POST the same as if they were being published.
    139         // Change status from 'publish' to 'pending' if user lacks permissions to publish or to resave published posts.
     138        /*
     139         * Posts 'submitted for approval' are submitted to $_POST the same as if they were being published.
     140         * Change status from 'publish' to 'pending' if user lacks permissions to publish or to resave published posts.
     141         */
    140142        if ( isset( $post_data['post_status'] )
    141143                && ( in_array( $post_data['post_status'], $published_statuses, true )
    … …  
    14441446        }
    14451447
    1446         // If the user wants to set a new name -- override the current one.
    1447         // Note: if empty name is supplied -- use the title instead, see #6072.
     1448        /*
     1449         * If the user wants to set a new name -- override the current one.
     1450         * Note: if empty name is supplied -- use the title instead, see #6072.
     1451         */
    14481452        if ( ! is_null( $name ) ) {
    14491453                $post->post_name = sanitize_title( $name ? $name : $title, $post->ID );
    … …  
    20742078                return edit_post( wp_slash( $post_data ) );
    20752079        } else {
    2076                 // Non-drafts or other users' drafts are not overwritten.
    2077                 // The autosave is stored in a special post revision for each user.
     2080                /*
     2081                 * Non-drafts or other users' drafts are not overwritten.
     2082                 * The autosave is stored in a special post revision for each user.
     2083                 */
    20782084                return wp_create_post_autosave( wp_slash( $post_data ) );
    20792085        }
Note: See TracChangeset for help on using the changeset viewer.