Skip to content

Commit 3ac45ee

Browse files
improve query schema
1 parent 981c353 commit 3ac45ee

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/wp-includes/abilities/class-wp-post-type-abilities.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ private static function build_date_query_schema(): array {
588588
return array(
589589
'type' => 'object',
590590
'description' => __( 'Date query to filter posts by date fields.' ),
591+
'required' => array( 'queries' ),
591592
'properties' => array(
592593
'relation' => array(
593594
'type' => 'string',
@@ -601,7 +602,7 @@ private static function build_date_query_schema(): array {
601602
),
602603
'queries' => array(
603604
'type' => 'array',
604-
'description' => __( 'List of date query clauses or nested groups.' ),
605+
'description' => __( 'List of query clauses or nested groups.' ),
605606
'items' => array(
606607
'oneOf' => array(
607608
$date_clause_schema,

0 commit comments

Comments
 (0)