[Bb-trac] [bbPress] #786: pluggable should continue to support a depracated bb_cookie

bbPress bb-trac at lists.bbpress.org
Sat Feb 16 10:46:24 GMT 2008


#786: pluggable should continue to support a depracated bb_cookie
-------------------------+--------------------------------------------------
 Reporter:  _ck_         |       Owner:     
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:     
Component:  Back-end     |     Version:     
 Severity:  normal       |    Keywords:     
-------------------------+--------------------------------------------------
 The new pluggable in the trunk has removed function bb_cookie which some
 third party plugins may rely on. Unfortunately that routine cannot be
 moved to "deprecated" since it needs to remain being pluggable. But why
 break plugins that can easily be allowed to be forward compatible with a
 few lines of code?

 While I am on the subject of cookies, why doesn't the second option in
 '''wp_set_auth_cookie($user_id, $remember = false)''' simply accept a real
 value for the desired cookie length, where zero would be the implied
 false, instead of hard coding it to 1209600?

 This is an easy enhancement that could be backwards compatible. false or 0
 would be the default day length,  true or 1 would be the default week
 length, and anything else would be the custom requested length.

-- 
Ticket URL: <http://trac.bbpress.org/ticket/786>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list