Opened 15 years ago
Closed 15 years ago
#10912 closed enhancement (fixed)
Complete the rewrite API
Reported by: | scribu | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 2.9 |
Component: | Permalinks | Keywords: | has-patch |
Focuses: | Cc: |
Description
Every public method of the WP_Rewrite class should have a standalone function that calls it.
Currently, add_permastruct() and flush_rewrite_rules() are missing.
Attachments (1)
Change History (10)
#2
follow-up:
↓ 5
@
15 years ago
@param $hard bool is not explained. what does true or false mean in terms of the function creation.
#5
in reply to:
↑ 2
@
15 years ago
Replying to hakre:
@param $hard bool is not explained. what does true or false mean in terms of the function creation.
Added explanation.
#6
@
15 years ago
Something that popped in my mind somewhere in the last day(s):
These functions fail if the global $wp_rewrite is either not set or contains the wrong object then the function expects. Checks should be added in those and in all the other global functions that are part of the rewrite API.
This is common in other public function in trunk as far as I remember.
Current patch adds the 2 missing functions. Still need to replace all direct $wp_rewrite->* calls.