Opened 3 years ago
Closed 15 months ago
#14546 closed enhancement (fixed)
Refactor direct references for $wp_rewrite class members
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | Permalinks | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
This patch replaces direct references to class members $wp_rewrite->* with their public functions.
Removes:
$wp_rewrite->flush_rules(), $wp_rewrite->add_permastruct(), $wp_rewrite->add_rewrite_tag()
Replaces with:
flush_rewrite_rules(), add_permastruct(), add_rewrite_tag()
Also removes extraneous $wp_rewrite globals.
Follow-Up to #10912
Attachments (2)
Change History (7)
- Keywords has-patch added; $wp_rewrite removed
- Milestone changed from Awaiting Review to 3.1
comment:2
markjaquith — 2 years ago
- Milestone changed from 3.1 to Future Release
- Keywords needs-refresh added
- Milestone changed from Future Release to 3.4
Note: See
TracTickets for help on using
tickets.

Patch needs a refresh and it requires #19871 since it tries to use add_rewrite_tag() with 3 parameters.