Changeset 2793 for branches/plugin/bbp-admin/bbp-admin.php
- Timestamp:
- 01/13/2011 01:19:56 AM (15 years ago)
- File:
-
- 1 edited
-
branches/plugin/bbp-admin/bbp-admin.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-admin/bbp-admin.php
r2789 r2793 76 76 /** Forums ****************************************************/ 77 77 78 // Forum column headers.79 add_filter( 'manage_' . $bbp->forum_id . '_posts_columns', array( $this, 'forums_column_headers' ) );80 81 78 // Forum metabox actions 82 79 add_action( 'add_meta_boxes', array( $this, 'forum_attributes_metabox' ) ); 83 80 add_action( 'save_post', array( $this, 'forum_attributes_metabox_save' ) ); 84 81 82 // Forum column headers. 83 add_filter( 'manage_' . $bbp->forum_id . '_posts_columns', array( $this, 'forums_column_headers' ) ); 84 85 85 // Forum columns (in page row) 86 add_action( 'manage_ pages_custom_column', array( $this, 'forums_column_data' ), 10, 2 );87 add_filter( 'page_row_actions', array( $this, 'forums_row_actions' ), 10, 2 );86 add_action( 'manage_' . $bbp->forum_id . '_posts_custom_column', array( $this, 'forums_column_data' ), 10, 2 ); 87 add_filter( 'page_row_actions', array( $this, 'forums_row_actions' ), 10, 2 ); 88 88 89 89 /** Topics ****************************************************/ … … 93 93 94 94 // Topic columns (in post row) 95 add_action( 'manage_ posts_custom_column', array( $this, 'topics_column_data' ), 10, 2 );96 add_filter( 'post_row_actions', array( $this, 'topics_row_actions' ), 10, 2 );95 add_action( 'manage_' . $bbp->topic_id . '_posts_custom_column', array( $this, 'topics_column_data' ), 10, 2 ); 96 add_filter( 'post_row_actions', array( $this, 'topics_row_actions' ), 10, 2 ); 97 97 98 98 // Topic metabox actions … … 110 110 111 111 // Reply columns (in post row) 112 add_action( 'manage_ posts_custom_column', array( $this, 'replies_column_data' ), 10, 2 );113 add_filter( 'post_row_actions', array( $this, 'replies_row_actions' ), 10, 2 );112 add_action( 'manage_' . $bbp->reply_id . '_posts_custom_column', array( $this, 'replies_column_data' ), 10, 2 ); 113 add_filter( 'post_row_actions', array( $this, 'replies_row_actions' ), 10, 2 ); 114 114 115 115 // Reply metabox actions … … 783 783 */ 784 784 function forums_column_data( $column, $forum_id ) { 785 global $bbp, $typenow; 786 787 if ( $typenow !== $bbp->forum_id ) 788 return $column; 785 global $bbp; 789 786 790 787 switch ( $column ) { … … 835 832 global $bbp; 836 833 837 if ( $ bbp->forum_id == $forum->post_type) {834 if ( $forum->post_type == $bbp->forum_id ) { 838 835 unset( $actions['inline hide-if-no-js'] ); 839 836 … … 1062 1059 */ 1063 1060 function topics_column_data( $column, $topic_id ) { 1064 global $bbp, $typenow; 1065 1066 if ( $typenow !== $bbp->topic_id ) 1067 return $column; 1061 global $bbp; 1068 1062 1069 1063 // Get topic forum ID … … 1391 1385 */ 1392 1386 function replies_column_data( $column, $reply_id ) { 1393 global $bbp, $typenow; 1394 1395 if ( $typenow !== $bbp->reply_id ) 1396 return $column; 1387 global $bbp; 1397 1388 1398 1389 // Get topic ID
Note: See TracChangeset
for help on using the changeset viewer.