Make WordPress Core


Ignore:
Timestamp:
07/10/2023 10:58:33 PM (19 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-controller.php

    r55104 r56193  
    577577
    578578        foreach ( $additional_fields as $field_name => $field_options ) {
    579             // For back-compat, include any field with an empty schema
    580             // because it won't be present in $this->get_item_schema().
     579            /*
     580             * For back-compat, include any field with an empty schema
     581             * because it won't be present in $this->get_item_schema().
     582             */
    581583            if ( is_null( $field_options['schema'] ) ) {
    582584                $properties[ $field_name ] = $field_options;
     
    631633                // Check for nested fields if $field is not a direct match.
    632634                $nested_fields = explode( '.', $field );
    633                 // A nested field is included so long as its top-level property
    634                 // is present in the schema.
     635                /*
     636                 * A nested field is included so long as its top-level property
     637                 * is present in the schema.
     638                 */
    635639                if ( in_array( $nested_fields[0], $fields, true ) ) {
    636640                    $response_fields[] = $field;
Note: See TracChangeset for help on using the changeset viewer.