Changeset 8193 for trunk/bp-activity/bp-activity-admin.php
- Timestamp:
- 03/28/2014 11:19:00 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-admin.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-admin.php
r8192 r8193 995 995 public function __construct() { 996 996 997 // See if activity commenting is enabled for blog / forum activity items 998 $this->disable_blogforum_comments = bp_disable_blogforum_comments(); 999 997 1000 // Define singular and plural labels, as well as whether we support AJAX. 998 1001 parent::__construct( array( … … 1238 1241 'author' => __( 'Author', 'buddypress' ), 1239 1242 'comment' => __( 'Activity', 'buddypress' ), 1243 'action' => __( 'Action', 'buddypress' ), 1240 1244 'response' => __( 'In Response To', 'buddypress' ), 1241 1245 ); … … 1318 1322 function column_author( $item ) { 1319 1323 echo '<strong>' . get_avatar( $item['user_id'], '32' ) . ' ' . bp_core_get_userlink( $item['user_id'] ) . '</strong>'; 1324 } 1325 1326 /** 1327 * Action column markup. 1328 * 1329 * @since BuddyPress (2.0.0) 1330 * 1331 * @see WP_List_Table::single_row_columns() 1332 * 1333 * @param array $item A singular item (one full row). 1334 */ 1335 function column_action( $item ) { 1336 $actions = bp_activity_admin_get_activity_actions(); 1337 1338 if ( isset( $actions[ $item['type'] ] ) ) { 1339 echo $actions[ $item['type'] ]; 1340 } else { 1341 printf( __( 'Unregistered action - %s', 'buddypress' ), $item['type'] ); 1342 } 1320 1343 } 1321 1344
Note: See TracChangeset
for help on using the changeset viewer.