Changeset 4169
- Timestamp:
- 08/24/2012 07:49:27 AM (13 years ago)
- Location:
- branches/plugin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-core-functions.php
r3966 r4169 272 272 function bbp_has_errors() { 273 273 274 // Assume no errors275 $has_errors = false;276 277 274 // Check for errors 278 if ( bbpress()->errors->get_error_codes() ) 279 $has_errors = true; 275 $has_errors = bbpress()->errors->get_error_codes() ? true : false; 280 276 281 277 // Filter return value … … 375 371 } 376 372 373 /** 374 * Return the bozo post status ID 375 * 376 * @since bbPress (r4167) 377 * 378 * @return string 379 */ 380 function bbp_get_bozo_status_id() { 381 return bbpress()->bozo_status_id; 382 } 383 377 384 /** Rewrite IDs ***************************************************************/ 378 385 -
branches/plugin/bbpress.php
r4164 r4169 209 209 $this->hidden_status_id = apply_filters( 'bbp_hidden_post_status', 'hidden' ); 210 210 $this->trash_status_id = apply_filters( 'bbp_trash_post_status', 'trash' ); 211 $this->bozo_status_id = apply_filters( 'bbp_bozo_post_status', 'bozo' ); 211 212 212 213 // Other identifiers … … 429 430 $locale = get_locale(); // Default locale 430 431 $locale = apply_filters( 'plugin_locale', $locale, 'bbpress' ); // Traditional WordPress plugin locale filter 431 $locale = apply_filters( 'bbpress_locale', $locale );// bbPress specific locale filter432 $locale = apply_filters( 'bbpress_locale', $locale ); // bbPress specific locale filter 432 433 $mofile = sprintf( 'bbpress-%s.mo', $locale ); // Get mo file name 433 434 … … 709 710 ); 710 711 712 // Bozo 713 register_post_status( 714 bbp_get_hidden_status_id(), 715 apply_filters( 'bbp_register_bozo_post_status', array( 716 'label' => _x( 'Bozo', 'post', 'bbpress' ), 717 'label_count' => _nx_noop( 'Bozo <span class="count">(%s)</span>', 'Bozo <span class="count">(%s)</span>', 'bbpress' ), 718 'private' => true, 719 'exclude_from_search' => true, 720 'show_in_admin_status_list' => true, 721 'show_in_admin_all_list' => false 722 ) ) 723 ); 724 711 725 /** 712 726 * Trash fix
Note: See TracChangeset
for help on using the changeset viewer.