Opened 12 years ago
Closed 12 years ago
#2336 closed task (blessed) (fixed)
Use rewrite rules API
Reported by: | johnjamesjacoby | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 2.4 | Priority: | normal |
Severity: | normal | Version: | 2.1 |
Component: | Tools - Code Improvements | Keywords: | has-patch 2nd-opinion |
Cc: |
Description
Right now, we hack in our custom rewrite rules results by merging them in with the WP_Rewrite global values. This works fine enough, but isn't very extensible, and could potentially be fragile in the future.
While I'm working on BuddyPress's rewrite rules API for 1.8, I noticed bbPress could use the same treatment.
Attached patch removes the dependence on hooking into the rewrite rules generation action, and instead uses a series of add_rewrite_rules() and add_permastruct() calls, where appropriate. It also adds a few tertiary functions that were previously omitted.
Deprecate bbp_generate_rewrite_rules()