[buddypress-trac] [BuddyPress] #2461: Undefined and useless property called in edit forum post link generation

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Jun 24 01:23:17 UTC 2010


#2461: Undefined and useless property called in edit forum post link generation
----------------------------+-----------------------------------------------
 Reporter:  francescolaffi  |       Owner:                        
     Type:  defect          |      Status:  new                   
 Priority:  minor           |   Milestone:  1.2.5                 
Component:  Forums          |    Keywords:  dev-feedback has-patch
----------------------------+-----------------------------------------------
 tiny harmless defect, but it still deserves to be solved
 {{{
 bp-forums-templatetags.php:960

 [...] wp_nonce_url( bp_get_the_topic_permalink() .
 $topic_template->post->id . 'edit/post/' . $topic_template->post->post_id
 . '/' . $query_vars, 'bp_forums_edit_post' ) [...]
 }}}
 the {{{$topic_template->post->id}}} in the link is undefined and does
 nothing except generating a notice, actually if it was defined the link
 would be invalid, I guess it's only a copy/paste inattention.

 diff is for b1.2, same problem in the trunk but the line is 927 instead of
 960

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2461>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list