Changeset 4551 for trunk/includes/forums/functions.php
- Timestamp:
- 12/06/2012 10:29:35 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/forums/functions.php
r4525 r4551 78 78 * Handles the front end forum submission 79 79 * 80 * @param string $action The requested action to compare this function to 80 81 * @uses bbPress:errors::add() To log various error messages 81 82 * @uses bbp_verify_nonce_request() To verify the nonce and check the request … … 107 108 * messages 108 109 */ 109 function bbp_new_forum_handler() { 110 111 // Bail if not a POST action 112 if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) ) 113 return; 110 function bbp_new_forum_handler( $action = '' ) { 114 111 115 112 // Bail if action is not bbp-new-forum 116 if ( empty( $_POST['action'] ) || ( 'bbp-new-forum' !== $_POST['action'] ))113 if ( 'bbp-new-forum' !== $action ) 117 114 return; 118 115 … … 339 336 * Handles the front end edit forum submission 340 337 * 338 * @param string $action The requested action to compare this function to 341 339 * @uses bbPress:errors::add() To log various error messages 342 340 * @uses bbp_get_forum() To get the forum … … 368 366 * messages 369 367 */ 370 function bbp_edit_forum_handler() { 371 372 // Bail if not a POST action 373 if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) ) 374 return; 368 function bbp_edit_forum_handler( $action = '' ) { 375 369 376 370 // Bail if action is not bbp-edit-forum 377 if ( empty( $_POST['action'] ) || ( 'bbp-edit-forum' !== $_POST['action'] ))371 if ( 'bbp-edit-forum' !== $action ) 378 372 return; 379 373
Note: See TracChangeset
for help on using the changeset viewer.