[wp-trac] [WordPress Trac] #14546: Refactor direct references for $wp_rewrite class members
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 6 01:19:43 UTC 2010
#14546: Refactor direct references for $wp_rewrite class members
-------------------------+--------------------------------------------------
Reporter: ikailo | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version:
Severity: normal | Keywords: $wp_rewrite
-------------------------+--------------------------------------------------
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
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14546>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list