Changeset 7067
- Timestamp:
- 02/07/2020 05:36:00 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/src/includes/common/template.php
r7054 r7067 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.