Changeset 7066
- Timestamp:
- 02/07/2020 05:35:09 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/template.php
r7055 r7066 1103 1103 function is_bbpress() { 1104 1104 1105 // Defalt to false 1106 $retval = false; 1105 // Default to false 1106 $retval = false; 1107 1108 // Bail if main query has not been populated. 1109 if ( ! bbp_get_wp_query() ) { 1110 _doing_it_wrong( __FUNCTION__, esc_html__( 'Conditional query tags do not work before the query is run. Before then, they always return false.', 'bbpress' ), '2.7.0' ); 1111 return $retval; 1112 } 1107 1113 1108 1114 /** Archives **************************************************************/
Note: See TracChangeset
for help on using the changeset viewer.