Link team icon to edit screen

This commit is contained in:
Takumi
2013-08-21 00:50:05 +10:00
parent 92cbb6c1d5
commit de4d404303
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ function sp_manage_posts_custom_column( $column, $post_id ) {
global $post;
switch ( $column ):
case 'sp_icon':
the_post_thumbnail( 'sp_icon' );
edit_post_link( get_the_post_thumbnail( $post_id, 'sp_icon' ), '', '', $post_id );
break;
case 'sp_position':
echo get_the_terms ( $post_id, 'sp_position' ) ? the_terms( $post_id, 'sp_position' ) : '—';

View File

@@ -22,7 +22,7 @@ function sp_tournament_edit_columns() {
'title' => __( 'Title' ),
'sp_team' => __( 'Teams', 'sportspress' ),
'sp_event' => __( 'Events', 'sportspress' ),
'sp_sponsor' => __( 'Sponsor', 'sportspress' )
'sp_sponsor' => __( 'Sponsors', 'sportspress' )
);
return $columns;
}