Opened 13 years ago
Closed 11 years ago
#14546 closed enhancement (fixed)
Refactor direct references for $wp_rewrite class members
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Permalinks | Keywords: | has-patch |
Focuses: | 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)
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.