Changeset 2586 for branches/plugin/bbp-admin.php
- Timestamp:
- 11/01/2010 06:07:32 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-admin.php
r2579 r2586 361 361 return $column; 362 362 363 // Get topic forum ID 364 $forum_id = bbp_get_topic_forum_id(); 365 366 // Populate column data 363 367 switch ( $column ) { 368 // Forum 364 369 case 'bbp_topic_forum' : 365 370 // Output forum name … … 368 373 // Link information 369 374 $actions = apply_filters( 'topic_forum_row_actions', array ( 370 'edit' => '<a href="' . add_query_arg( array( 'post' => bbp_get_topic_forum_ID(), 'action' => 'edit' ), admin_url( '/post.php' ) ) . '">' . __( 'Edit', 'bbpress' ) . '</a>',371 'view' => '<a href="' . bbp_get_ topic_permalink() . '">' . __( 'View', 'bbpress' ) . '</a>'375 'edit' => '<a href="' . add_query_arg( array( 'post' => $forum_id, 'action' => 'edit' ), admin_url( '/post.php' ) ) . '">' . __( 'Edit', 'bbpress' ) . '</a>', 376 'view' => '<a href="' . bbp_get_forum_permalink( $forum_id ) . '">' . __( 'View', 'bbpress' ) . '</a>' 372 377 ) ); 373 378 … … 383 388 break; 384 389 390 // Reply Count 385 391 case 'bbp_topic_reply_count' : 386 392 // Output replies count … … 388 394 break; 389 395 396 // Freshness 390 397 case 'bbp_topic_freshness' : 391 398 // Output last activity time and date … … 393 400 break; 394 401 402 // Do an action for anything else 395 403 default : 396 404 do_action( 'bbp_admin_topics_column_data', $column, $post_id ); … … 449 457 return $column; 450 458 459 // Get topic ID 460 $topic_id = bbp_get_topic_forum_id(); 461 462 // Populate Column Data 451 463 switch ( $column ) { 464 // Topic 452 465 case 'bbp_reply_topic' : 453 466 // Output forum name … … 456 469 // Link information 457 470 $actions = apply_filters( 'topic_forum_row_actions', array ( 458 'edit' => '<a href="' . add_query_arg( array( 'post' => bbp_get_topic_forum_ID(), 'action' => 'edit' ), admin_url( '/post.php' ) ) . '">' . __( 'Edit', 'bbpress' ) . '</a>',459 'view' => '<a href="' . bbp_get_topic_permalink( ) . '">' . __( 'View', 'bbpress' ) . '</a>'471 'edit' => '<a href="' . add_query_arg( array( 'post' => $topic_id, 'action' => 'edit' ), admin_url( '/post.php' ) ) . '">' . __( 'Edit', 'bbpress' ) . '</a>', 472 'view' => '<a href="' . bbp_get_topic_permalink( $topic_id ) . '">' . __( 'View', 'bbpress' ) . '</a>' 460 473 ) ); 461 474 … … 471 484 break; 472 485 486 // Forum 473 487 case 'bbp_reply_forum' : 474 488 // Output replies count 475 489 break; 476 490 491 // Freshness 477 492 case 'bbp_topic_freshness': 478 493 // Output last activity time and date … … 480 495 break; 481 496 497 // Do action for anything else 482 498 default : 483 499 do_action( 'bbp_admin_replies_column_data', $column, $post_id );
Note: See TracChangeset
for help on using the changeset viewer.