Make WordPress Core

Ticket #48169: 48169.1.patch

File 48169.1.patch, 641 bytes (added by dkarfa, 5 years ago)
  • src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php

     
    563563         *
    564564         * @since 5.3.0
    565565         *
    566          * @param string $type
     566         * @param string $type Primitive type.
    567567         * @return mixed
    568568         */
    569569        protected function get_default_for_type( $type ) {
     
    577577                        case 'number':
    578578                                return 0.0;
    579579                        case 'array':
    580                                 return array();
    581580                        case 'object':
    582581                                return array();
    583582                        default: