mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
REST API: Fix check for has_archive inclusion.
Props dlh, audrasjb, mukesh27. Fixes #56618. git-svn-id: https://develop.svn.wordpress.org/trunk@54288 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -198,7 +198,7 @@ class WP_REST_Post_Types_Controller extends WP_REST_Controller {
|
||||
$data['hierarchical'] = $post_type->hierarchical;
|
||||
}
|
||||
|
||||
if ( rest_is_field_included( 'hierarchical', $fields ) ) {
|
||||
if ( rest_is_field_included( 'has_archive', $fields ) ) {
|
||||
$data['has_archive'] = $post_type->has_archive;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user