[wp-trac] [WordPress Trac] #12324: Broken .htaccess File Created By WP 2.9.2
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 22 20:06:44 UTC 2010
#12324: Broken .htaccess File Created By WP 2.9.2
--------------------------+-------------------------------------------------
Reporter: magblogapi | Owner: ryan
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Permalinks | Version: 2.9.2
Severity: normal | Resolution:
Keywords: |
--------------------------+-------------------------------------------------
Comment(by nacin):
Hi kevinB,
Thank you very much for the helpful and detailed insights here.
Using $wp_rewrite->flush_rules() is fine, in fact encouraged and necessary
to do in many situations. Generally in a very basic plugin, you would set
up your rules on activation and flush the rules then. You would also set
up the rules on an early action such as init but not flush the rules. As
long as you're setting them up each time, then if something else flushes
the rules, your rules will be included in the rebuild. That is again very
basic and without looking at Role Scoper I imagine there's more to it.
Just judging from the symptom -- that it's tough to load this page on a
half-decent internet connection -- it sounded like $wp_rewrite was being
used incorrectly. (Hypothetically it seems even a perfect use of
$wp_rewrite could cause a thread-safe issue seen in #11903.) That may be
compounded with problems (#11903) hence why it didn't matter much whether
it was closed as a duplicate or invalid. So that's all I meant.
Accidental recursion happens :) I don't think any of us meant to
characterize you or the plugin as dangerous. I haven't looked at the
plugin, but I will do so at this point, and if I see anything I'll drop
you a note, or if it's helpful to this ticket or #11903 I'll leave a
comment.
I think its safe to mark this as a duplicate of #11903 (perhaps different
symptoms, but same fix) but we can leave it open for now.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12324#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list