[Bb-trac] Re: [bbPress] #719: request: "$_POST store and redirect" api hook of some kind

bbPress bb-trac at lists.bbpress.org
Sat Sep 15 00:09:02 GMT 2007


#719: request: "$_POST store and redirect" api hook of some kind
-------------------------+--------------------------------------------------
 Reporter:  _ck_         |        Owner:         
     Type:  enhancement  |       Status:  closed 
 Priority:  low          |    Milestone:         
Component:  Back-end     |      Version:  0.8.2.1
 Severity:  minor        |   Resolution:  wontfix
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by mdawaffe):

  * status:  new => closed
  * resolution:  => wontfix

Comment:

 I don't think this is something that bbPress core can fix.  There can be
 no hooks before plugins load.

 I'd suggest hooking into {{{plugins_loaded}}} or (if you're brave), just
 doing

 {{{
 if ( isset($_POST['blah']) ) {
   // do something
   wp_redirect( somewhere );
 }
 }}}

 straight in your plugin file (i.e. don't wrap it in a function or hook).

 {{{plugins_loaded}}} happens before all but the bare minimum of DB
 queries.  It's even before language locales and current user data is
 loaded.

 Please reopen with an example if the above can't work for you.

-- 
Ticket URL: <http://trac.bbpress.org/ticket/719#comment:1>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list