Changeset 5587
- Timestamp:
- 01/10/2015 10:52:51 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/sub-actions.php
r5438 r5587 364 364 } 365 365 366 // Sanitize the POST action 367 $action = sanitize_key( $_POST['action'] ); 368 366 369 // This dynamic action is probably the one you want to use. It narrows down 367 370 // the scope of the 'action' without needing to check it in your function. 368 do_action( 'bbp_post_request_' . $ _POST['action']);371 do_action( 'bbp_post_request_' . $action ); 369 372 370 373 // Use this static action if you don't mind checking the 'action' yourself. 371 do_action( 'bbp_post_request', $ _POST['action']);374 do_action( 'bbp_post_request', $action ); 372 375 } 373 376 … … 390 393 } 391 394 395 // Sanitize the POST action 396 $action = sanitize_key( $_GET['action'] ); 397 392 398 // This dynamic action is probably the one you want to use. It narrows down 393 399 // the scope of the 'action' without needing to check it in your function. 394 do_action( 'bbp_get_request_' . $ _GET['action']);400 do_action( 'bbp_get_request_' . $action ); 395 401 396 402 // Use this static action if you don't mind checking the 'action' yourself. 397 do_action( 'bbp_get_request', $ _GET['action']);403 do_action( 'bbp_get_request', $action ); 398 404 } 399 405
Note: See TracChangeset
for help on using the changeset viewer.