Changeset 4971 for trunk/includes/core/options.php
- Timestamp:
- 05/28/2013 11:12:36 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/core/options.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core/options.php
r4963 r4971 37 37 '_bbp_allow_global_access' => 1, // Users from all sites can post 38 38 '_bbp_allow_revisions' => 1, // Allow revisions 39 '_bbp_allow_topic_tags' => 1, // Topic Tags39 '_bbp_allow_topic_tags' => 1, // Allow topic tagging 40 40 '_bbp_allow_threaded_replies' => 0, // Allow threaded replies 41 '_bbp_allow_search' => 1, // Allow forum-wide search 41 42 '_bbp_thread_replies_depth' => 2, // Thread replies depth 42 43 '_bbp_use_wp_editor' => 1, // Use the WordPress editor if available … … 228 229 function bbp_allow_topic_tags( $default = 1 ) { 229 230 return (bool) apply_filters( 'bbp_allow_topic_tags', (bool) get_option( '_bbp_allow_topic_tags', $default ) ); 231 } 232 233 /** 234 * Is forum-wide searching allowed 235 * 236 * @since bbPress (r4970) 237 * @param $default bool Optional. Default value true 238 * @uses get_option() To get the forum-wide search setting 239 * @return bool Is forum-wide searching allowed? 240 */ 241 function bbp_allow_search( $default = 1 ) { 242 return (bool) apply_filters( 'bbp_allow_search', (bool) get_option( '_bbp_allow_search', $default ) ); 230 243 } 231 244
Note: See TracChangeset
for help on using the changeset viewer.