Make WordPress Core

Opened 5 weeks ago

Closed 5 weeks ago

Last modified 5 weeks ago

#64713 closed defect (bug) (fixed)

Add missing space and remove duplicate operator values in WP_Date_Query PHPDoc.

Reported by: truptikanzariya's profile truptikanzariya Owned by: audrasjb's profile audrasjb
Milestone: 7.0 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch commit
Focuses: docs Cc:

Description

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.

Attachments (1)

64713.patch (2.0 KB) - added by truptikanzariya 5 weeks ago.

Download all attachments as: .zip

Change History (4)

#1 @audrasjb
5 weeks ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 7.0
  • Owner set to audrasjb
  • Status changed from new to accepted

#2 @audrasjb
5 weeks ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 61723:

Docs: Add missing space and remove duplicate operator values in WP_Date_Query docblocks.

Props truptikanzariya.
Fixes #64713.
See #64224.

#3 @audrasjb
5 weeks ago

In 61724:

Docs: Indentation fix after [61723].

See #64713, #64224.

Note: See TracTickets for help on using tickets.