[wp-trac] [WordPress Trac] #18450: New safe action to add rewrite rules on

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 23 00:08:56 UTC 2011


#18450: New safe action to add rewrite rules on
------------------------------------+------------------------------
 Reporter:  simonwheatley           |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Rewrite Rules           |     Version:  3.2.1
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------

Comment (by dd32):

 There was a similar discussion in #wordpress-dev, and I suggested:
 {{{
 if ( ! did_action('admin_init') )
    _doing_it_wrong('Never flush rules before admin_init, and NEVER on a
 front-end page load!, Do it on plugin activation only unless you\'re
 "special".');
 }}}

 Of course, not everyone is going to notice the message/error, but at least
 those that care about their programming will.. You'll still be at the
 mercy of cowboys.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18450#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list