Opened 10 years ago
Closed 10 years ago
#34197 closed enhancement (fixed)
Improve the parameter names and documentation for add_rewrite_rule()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.4 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Rewrite Rules | Keywords: | has-patch |
| Focuses: | docs | Cc: |
Description
[34708] has highlighted the fact that the parameter names and docblock descriptions for add_rewrite_rule(), WP_Rewrite::add_rule(), and WP_Rewrite::add_external_rule() make no sense.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
34197.diff changes the name of the
$redirectparameter to$query, which is more appropriate, and updates the documentation accordingly.