Changeset 6583 for trunk/src/includes/core/abstraction.php
- Timestamp:
- 06/19/2017 04:29:43 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/core/abstraction.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/abstraction.php
r6573 r6583 49 49 // Filter & return 50 50 return apply_filters( 'bbp_get_global_object', $retval, $name, $type, $default ); 51 } 52 53 /** 54 * Get the `$wp_query` global without needing to declare it everywhere 55 * 56 * @since 2.6.0 bbPress (r6582) 57 * 58 * @return WP_Roles 59 */ 60 function bbp_get_wp_query() { 61 return bbp_get_global_object( 'wp_query', 'WP_Query' ); 51 62 } 52 63
Note: See TracChangeset
for help on using the changeset viewer.