- Timestamp:
- 12/12/2018 08:50:22 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43736
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php
r43571 r43986 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.