Changeset 54339 for trunk/src/wp-includes/rest-api/class-wp-rest-server.php
- Timestamp:
- 09/27/2022 08:12:00 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r54133 r54339 1514 1514 1515 1515 foreach ( $callback['args'] as $key => $opts ) { 1516 if ( is_string( $opts ) ) { 1517 $opts = array( $opts => 0 ); 1518 } elseif ( ! is_array( $opts ) ) { 1519 $opts = array(); 1520 } 1516 1521 $arg_data = array_intersect_key( $opts, $allowed_schema_keywords ); 1517 1522 $arg_data['required'] = ! empty( $opts['required'] );
Note: See TracChangeset
for help on using the changeset viewer.