Opened 3 weeks ago
Closed 3 weeks ago
#64503 closed defect (bug) (fixed)
Fix grammatical error in class-wp-ability.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 7.0 | Priority: | normal |
| Severity: | normal | Version: | trunk |
| Component: | AI | Keywords: | has-patch |
| Focuses: | Cc: |
Description
## Issue
While reviewing the codebase for the Abilities API, I used Copilot to check for grammatical issues across the files. During this review, I noticed a minor grammatical error that is easy to miss when scanning multiple files at once.
- In the file
class-wp-ability.php, there is a grammatical mistake on the following line: https://github.com/WordPress/wordpress-develop/blob/2d8f37d2a8ba53f2fa286dbf0e6b6399cf3c0784/src/wp-includes/abilities-api/class-wp-ability.php#L196
- Current text:
caught and converted to a WP_Error when by WP_Abilities_Registry::register().
- Proposed correction:
caught and converted to a WP_Error by WP_Abilities_Registry::register().
- The word “when” is redundant and should be removed to correct the sentence.
Change History (3)
This ticket was mentioned in PR #10730 on WordPress/wordpress-develop by @hbhalodia.
3 weeks ago
#1
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/64503