Changeset 6334 for trunk/src/includes/admin/topics.php
- Timestamp:
- 03/01/2017 02:17:21 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/admin/topics.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/topics.php
r6312 r6334 81 81 add_action( 'add_meta_boxes', array( $this, 'author_metabox' ) ); 82 82 add_action( 'add_meta_boxes', array( $this, 'replies_metabox' ) ); 83 add_action( 'add_meta_boxes', array( $this, 'engagements_metabox' ) ); 83 84 add_action( 'add_meta_boxes', array( $this, 'favorites_metabox' ) ); 84 85 add_action( 'add_meta_boxes', array( $this, 'subscriptions_metabox' ) ); … … 408 409 'normal', 409 410 'high' 411 ); 412 } 413 414 /** 415 * Add the engagements meta-box 416 * 417 * Allows viewing of users who have engaged in a topic. 418 * 419 * @since 2.6.0 bbPress (r6333) 420 * 421 * @uses add_meta_box() To add the meta-box 422 */ 423 public function engagements_metabox() { 424 425 // Bail when creating a new topic 426 if ( empty( $_GET['action'] ) || ( 'edit' !== $_GET['action'] ) ) { 427 return; 428 } 429 430 // Bail if no engagements 431 if ( ! bbp_is_engagements_active() ) { 432 return; 433 } 434 435 // Add the meta-box 436 add_meta_box( 437 'bbp_topic_engagements_metabox', 438 __( 'Engagements', 'bbpress' ), 439 'bbp_topic_engagements_metabox', 440 $this->post_type, 441 'side', 442 'low' 410 443 ); 411 444 }
Note: See TracChangeset
for help on using the changeset viewer.