Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/01/2011 05:56:35 PM (14 years ago)
Author:
johnjamesjacoby
Message:

First pass at allowing topics and replies to be created via their respective "New" screens in wp-admin.

@todo - metaboxes to match new core functionalities

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-hooks.php

    r2944 r2947  
    110110add_action( 'bbp_new_reply',     'bbp_update_reply',       10, 6 );
    111111add_action( 'bbp_edit_reply',    'bbp_update_reply',       10, 6 );
     112if ( is_admin() )
     113    add_action( 'wp_insert_post', 'bbp_new_reply_admin_handler', 10, 2 );
    112114
    113115// Before Delete/Trash/Untrash Reply
     
    126128add_action( 'bbp_new_topic',     'bbp_update_topic',       10, 5 );
    127129add_action( 'bbp_edit_topic',    'bbp_update_topic',       10, 5 );
     130if ( is_admin() )
     131    add_action( 'wp_insert_post', 'bbp_new_topic_admin_handler', 10, 2 );
    128132
    129133// Split/Merge Topic
Note: See TracChangeset for help on using the changeset viewer.