Make WordPress Core


Ignore:
Timestamp:
07/09/2023 07:50:52 PM (17 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.

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/meta-boxes.php

    r55949 r56174  
    16731673    do_action_deprecated( 'dbx_post_advanced', array( $post ), '3.7.0', 'add_meta_boxes' );
    16741674
    1675     // Allow the Discussion meta box to show up if the post type supports comments,
    1676     // or if comments or pings are open.
     1675    /*
     1676     * Allow the Discussion meta box to show up if the post type supports comments,
     1677     * or if comments or pings are open.
     1678     */
    16771679    if ( comments_open( $post ) || pings_open( $post ) || post_type_supports( $post_type, 'comments' ) ) {
    16781680        add_meta_box( 'commentstatusdiv', __( 'Discussion' ), 'post_comment_status_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) );
     
    16861688
    16871689    if ( in_array( get_post_status( $post ), $stati, true ) ) {
    1688         // If the post type support comments, or the post has comments,
    1689         // allow the Comments meta box.
     1690        /*
     1691         * If the post type support comments, or the post has comments,
     1692         * allow the Comments meta box.
     1693         */
    16901694        if ( comments_open( $post ) || pings_open( $post ) || $post->comment_count > 0 || post_type_supports( $post_type, 'comments' ) ) {
    16911695            add_meta_box( 'commentsdiv', __( 'Comments' ), 'post_comment_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) );
Note: See TracChangeset for help on using the changeset viewer.