Changeset 10356 for trunk/src/bp-core/bp-core-dependency.php
- Timestamp:
- 11/15/2015 07:57:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-dependency.php
r10108 r10356 490 490 * 491 491 * @param array $query_vars See {@link WP::parse_request()}. 492 *493 492 * @return array $query_vars See {@link WP::parse_request()}. 494 493 */ … … 512 511 * @param string $redirect_to See 'login_redirect'. 513 512 * @param string $redirect_to_raw See 'login_redirect'. 514 * 515 * @param bool $user See 'login_redirect'. 516 * 513 * @param bool $user See 'login_redirect'. 517 514 * @return string 518 515 */ … … 541 538 * 542 539 * @param string $template See 'template_include'. 543 *544 540 * @return string Template file to use. 545 541 */ … … 586 582 * @uses apply_filters() Calls 'bp_allowed_themes' with the allowed themes list. 587 583 * 588 * @param array $themes 589 * 584 * @param array $themes The path of the template to include. 590 585 * @return array 591 586 */ … … 608 603 * 609 604 * @since 1.9.0 605 * 610 606 * @uses do_action() 611 607 */ 612 608 function bp_post_request() { 613 609 614 // Bail if not a POST action 610 // Bail if not a POST action. 615 611 if ( ! bp_is_post_request() ) { 616 612 return; 617 613 } 618 614 619 // Bail if no action 615 // Bail if no action. 620 616 if ( empty( $_POST['action'] ) ) { 621 617 return; 622 618 } 623 619 624 // Sanitize the POST action 620 // Sanitize the POST action. 625 621 $action = sanitize_key( $_POST['action'] ); 626 622 … … 651 647 * 652 648 * @since 1.9.0 649 * 653 650 * @uses do_action() 654 651 */ 655 652 function bp_get_request() { 656 653 657 // Bail if not a POST action 654 // Bail if not a POST action. 658 655 if ( ! bp_is_get_request() ) { 659 656 return; 660 657 } 661 658 662 // Bail if no action 659 // Bail if no action. 663 660 if ( empty( $_GET['action'] ) ) { 664 661 return; 665 662 } 666 663 667 // Sanitize the GET action 664 // Sanitize the GET action. 668 665 $action = sanitize_key( $_GET['action'] ); 669 666
Note: See TracChangeset
for help on using the changeset viewer.