We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 981c353 commit 3ac45eeCopy full SHA for 3ac45ee
1 file changed
src/wp-includes/abilities/class-wp-post-type-abilities.php
@@ -588,6 +588,7 @@ private static function build_date_query_schema(): array {
588
return array(
589
'type' => 'object',
590
'description' => __( 'Date query to filter posts by date fields.' ),
591
+ 'required' => array( 'queries' ),
592
'properties' => array(
593
'relation' => array(
594
'type' => 'string',
@@ -601,7 +602,7 @@ private static function build_date_query_schema(): array {
601
602
),
603
'queries' => array(
604
'type' => 'array',
- 'description' => __( 'List of date query clauses or nested groups.' ),
605
+ 'description' => __( 'List of query clauses or nested groups.' ),
606
'items' => array(
607
'oneOf' => array(
608
$date_clause_schema,
0 commit comments