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/class-wp-list-table.php

    r56004 r56174  
    11431143        }
    11441144
    1145         // We need a primary defined so responsive views show something,
    1146         // so let's fall back to the first non-checkbox column.
     1145        /*
     1146         * We need a primary defined so responsive views show something,
     1147         * so let's fall back to the first non-checkbox column.
     1148         */
    11471149        foreach ( $columns as $col => $column_name ) {
    11481150            if ( 'cb' === $col ) {
     
    11811183        $default = $this->get_default_primary_column_name();
    11821184
    1183         // If the primary column doesn't exist,
    1184         // fall back to the first non-checkbox column.
     1185        /*
     1186         * If the primary column doesn't exist,
     1187         * fall back to the first non-checkbox column.
     1188         */
    11851189        if ( ! isset( $columns[ $default ] ) ) {
    11861190            $default = self::get_default_primary_column_name();
     
    16671671            }
    16681672
    1669             // Comments column uses HTML in the display name with screen reader text.
    1670             // Strip tags to get closer to a user-friendly string.
     1673            /*
     1674             * Comments column uses HTML in the display name with screen reader text.
     1675             * Strip tags to get closer to a user-friendly string.
     1676             */
    16711677            $data = 'data-colname="' . esc_attr( wp_strip_all_tags( $column_display_name ) ) . '"';
    16721678
Note: See TracChangeset for help on using the changeset viewer.