Skip to:
Content

BuddyPress.org

Changeset 4941


Ignore:
Timestamp:
08/07/2011 11:20:28 PM (10 years ago)
Author:
boonebgorges
Message:

Fixes PHP warning when deleting groups forum post, by making topic_id optional in groups_delete_group_forum_post(). Fixes #3449

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-forums.php

    r4907 r4941  
    229229}
    230230
    231 function groups_delete_group_forum_post( $post_id, $topic_id ) {
     231/**
     232 * Delete a forum post
     233 *
     234 * @package BuddyPress
     235 *
     236 * @param int $post_id The id of the post you want to delete
     237 * @param int $topic_id Optional. The topic to which the post belongs. This value isn't used in the
     238 *   function but is passed along to do_action() hooks.
     239 * @return bool True on success.
     240 */
     241function groups_delete_group_forum_post( $post_id, $topic_id = false ) {
    232242    global $bp;
    233243
Note: See TracChangeset for help on using the changeset viewer.