[wp-trac] [WordPress Trac] #64713: Add missing space and remove duplicate operator values in WP_Date_Query PHPDoc.

WordPress Trac noreply at wordpress.org
Tue Feb 24 05:11:52 UTC 2026


#64713: Add missing space and remove duplicate operator values in WP_Date_Query
PHPDoc.
-----------------------------+-----------------------------
 Reporter:  truptikanzariya  |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:
 Severity:  normal           |   Keywords:  has-patch
  Focuses:  docs             |
-----------------------------+-----------------------------
 In `src/wp-includes/class-wp-date-query.php`, the WP_Date_Query PHPDoc
 contains minor documentation issues:

 **A missing space after a period in the parameter description.**
 **Current text:**

 {{{
 @type string $month Optional when passing array.The month of the year.
 @type string $day   Optional when passing array.The day of the month.
 }}}

 **Duplicate mention of comparison operator values:**
 **Current text:**

 {{{
 Optional. The comparison operator. Accepts '=', '!=', '>', '>=',
 '<', '<=', 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN'. 'IN',
 'NOT IN', 'BETWEEN', and 'NOT BETWEEN'. Comparisons support
 arrays in some time-related parameters. Default '='.
 }}}

 **Proposed fix:**

 - Ensure proper spacing after periods.
 - Remove the duplicated operator list.


 This improves documentation clarity and consistency.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64713>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list