WordPress.org

Make WordPress Core

Changeset 46471


Ignore:
Timestamp:
10/13/2019 10:00:18 AM (5 weeks ago)
Author:
SergeyBiryukov
Message:

Docs: Fix typo in a comment in WP_REST_Settings_Controller::prepare_value().

Convert the comment to a multi-line format per the documentation standards.

Props itowhid06.
See #48296.

File:
1 edited

Legend:

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

    r46069 r46471  
    124124     */
    125125    protected function prepare_value( $value, $schema ) {
    126         // If the value is not valid by the schema, set the value to null. Null
    127         // values are specifcally non-destructive so this will not cause overwriting
    128         // the current invalid value to null.
     126        /*
     127         * If the value is not valid by the schema, set the value to null.
     128         * Null values are specifically non-destructive, so this will not cause
     129         * overwriting the current invalid value to null.
     130         */
    129131        if ( is_wp_error( rest_validate_value_from_schema( $value, $schema ) ) ) {
    130132            return null;
Note: See TracChangeset for help on using the changeset viewer.