Opened 4 months ago
Closed 5 weeks ago
#65118 closed enhancement (fixed)
Docs: Correct WP_Network_Query params comments
| Reported by: | baikare.sandeep007 | Owned by: | westonruter |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.1 |
| Component: | Networks and Sites | Version: | 4.6 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs, administration, multisite |
Description
This patch improves the inline documentation for the WP_Network_Query class:
- Clarifies and corrects PHPDoc blocks for class properties, specifying types and expected values.
- Updates the constructor’s parameter documentation to reference the accepted arguments and their types.
- Improves descriptions for complex array properties and return values, especially for query variables and results.
- Enhances code readability and assists developers and IDEs with more accurate type information.
These changes are documentation-only and do not affect runtime behavior.
Attachments (1)
Change History (10)
#2
@
4 months ago
- Milestone Awaiting Review → 7.1
@baikaresandeep007 Thanks for the ticket. Would you please submit the patch as a pull request instead? This will facilitate review.
This ticket was mentioned in PR #11663 on WordPress/wordpress-develop by @baikare.sandeep007.
4 months ago
#3
Trac ticket: https://core.trac.wordpress.org/ticket/65118
## Use of AI Tools
@baikare.sandeep007 commented on PR #11663:
4 months ago
#4
Thanks @westonruter, created PR as requested.
@baikare.sandeep007 commented on PR #11663:
4 months ago
#5
@westonruter accepted suggestions. Thanks
@westonruter commented on PR #11663:
5 weeks ago
#8
This reduces the PHPStan level 10 error count from 61 to 56.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
network query comment documentation improvements