Opened 16 years ago
Closed 15 years ago
#14546 closed enhancement (fixed)
Refactor direct references for $wp_rewrite class members
| Reported by: | ikailo | Owned by: | duck_ |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | Permalinks | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch needs a refresh and it requires #19871 since it tries to use add_rewrite_tag() with 3 parameters.