Changeset 7542 for trunk/bp-core/bp-core-functions.php
- Timestamp:
- 11/09/2013 01:30:04 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-functions.php
r7541 r7542 1472 1472 } 1473 1473 1474 /** Requests ******************************************************************/ 1475 1476 /** 1477 * Return true|false if this is a POST request 1478 * 1479 * @since BuddyPress (1.9.0) 1480 * @return bool 1481 */ 1482 function bp_is_post_request() { 1483 return (bool) ( 'POST' === strtoupper( $_SERVER['REQUEST_METHOD'] ) ); 1484 } 1485 1486 /** 1487 * Return true|false if this is a GET request 1488 * 1489 * @since BuddyPress (1.9.0) 1490 * @return bool 1491 */ 1492 function bp_is_get_request() { 1493 return (bool) ( 'GET' === strtoupper( $_SERVER['REQUEST_METHOD'] ) ); 1494 } 1495 1496 1474 1497 /** Miscellaneous hooks *******************************************************/ 1475 1498
Note: See TracChangeset
for help on using the changeset viewer.