[Bb-trac] [bbPress] #845: is_topic() should not return "true" when on edit post (edit.php)

bbPress bb-trac at lists.bbpress.org
Mon Mar 31 20:41:24 GMT 2008


#845: is_topic() should not return "true" when on edit post  (edit.php)
----------------------+-----------------------------------------------------
 Reporter:  _ck_      |       Owner:     
     Type:  defect    |      Status:  new
 Priority:  low       |   Milestone:  0.9
Component:  Back-end  |     Version:     
 Severity:  minor     |    Keywords:     
----------------------+-----------------------------------------------------
 I am not sure if this is intended logic and may have trivial backward
 compatibility with some obscure plugins but the way I see it, when you
 edit a post (ie. browser is using `edit.php`)  the `is_topic()` flag
 should not return true. But it does, currently.

 The only way I could see it returning true is if somehow the ajax
 posting/editing of posts ability was returned to bbPress and a user was
 editing/posting inline while the topic was displayed. But then they
 wouldn't be in `edit.php` anyway?

 (It occurs to me as an afterthought that `is_topic()` should also be
 checked to make sure it returns "false" when on `?new=1`  (new post) but I
 have not tested this)

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


More information about the Bb-trac mailing list