Skip to:
Content

BuddyPress.org

Changeset 2288 for trunk/bp-forums.php


Ignore:
Timestamp:
01/10/2010 09:55:51 PM (16 years ago)
Author:
apeatling
Message:

Fixing escaped allowed HTML in forum posts. Adding mention filters to blog comments and forum posts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums.php

    r2239 r2288  
    195195        'topic_title' => '',
    196196        'topic_slug' => '',
     197        'topic_text' => '',
    197198        'topic_poster' => $bp->loggedin_user->id, // accepts ids
    198199        'topic_poster_name' => $bp->loggedin_user->fullname, // accept names
     
    243244
    244245    /* Update the first post */
    245     if ( !$post = bb_insert_post( array( 'post_id' => $post->post_id, 'topic_id' => $topic_id, 'post_text' => $topic_text, 'post_time' => $post->post_time, 'poster_id' => $post->poster_id, 'poster_ip' => $post->poster_ip, 'post_status' => $post->post_status, 'post_position' => $post->post_position ) ) )
     246    if ( !$post = bp_forums_insert_post( array( 'post_id' => $post->post_id, 'topic_id' => $topic_id, 'post_text' => $topic_text, 'post_time' => $post->post_time, 'poster_id' => $post->poster_id, 'poster_ip' => $post->poster_ip, 'post_status' => $post->post_status, 'post_position' => $post->post_position ) ) )
    246247        return false;
    247248
Note: See TracChangeset for help on using the changeset viewer.