- Timestamp:
- 10/17/2018 02:40:23 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php
r43445 r43736 386 386 $additional_fields = $this->get_additional_fields(); 387 387 388 $requested_fields = $this->get_fields_for_response( $request ); 389 388 390 foreach ( $additional_fields as $field_name => $field_options ) { 389 391 390 392 if ( ! $field_options['get_callback'] ) { 393 continue; 394 } 395 396 if ( ! in_array( $field_name, $requested_fields, true ) ) { 391 397 continue; 392 398 }
Note: See TracChangeset
for help on using the changeset viewer.