Make WordPress Core

Changeset 46346


Ignore:
Timestamp:
09/29/2019 10:33:35 PM (5 years ago)
Author:
SergeyBiryukov
Message:

REST API: Combine array and object cases in WP_REST_Meta_Fields::get_default_for_type() to remove duplicated line.

Add missing description for $type parameter.

Props itowhid06, dkarfa.
Fixes #48169.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php

    r46069 r46346  
    564564     * @since 5.3.0
    565565     *
    566      * @param string $type
     566     * @param string $type The schema type.
    567567     * @return mixed
    568568     */
     
    578578                return 0.0;
    579579            case 'array':
    580                 return array();
    581580            case 'object':
    582581                return array();
Note: See TracChangeset for help on using the changeset viewer.