Clean up config settings page tables

This commit is contained in:
Brian Miyaji
2014-01-04 13:19:42 +11:00
parent b5263009c1
commit 6cf7e5b77e
11 changed files with 55 additions and 25 deletions

View File

@@ -133,7 +133,7 @@ add_action( 'manage_posts_columns', 'sp_manage_posts_columns' );
function sp_restrict_manage_posts() {
sp_highlight_admin_menu();
global $typenow, $wp_query;
if ( in_array( $typenow, array( 'sp_event', 'sp_player', 'sp_staff', 'sp_table', 'sp_list', 'sp_tournament' ) ) ):
if ( in_array( $typenow, array( 'sp_event', 'sp_player', 'sp_staff', 'sp_table', 'sp_list' ) ) ):
$selected = isset( $_REQUEST['sp_team'] ) ? $_REQUEST['sp_team'] : null;
$args = array(
'show_option_none' => sprintf( __( 'All %s', 'sportspress' ), __( 'Teams', 'sportspress' ) ),
@@ -143,7 +143,7 @@ function sp_restrict_manage_posts() {
);
// wp_dropdown_pages( $args );
endif;
if ( in_array( $typenow, array( 'sp_player', 'sp_staff' ) ) ):
if ( in_array( $typenow, array( 'sp_player' ) ) ):
$selected = isset( $_REQUEST['sp_position'] ) ? $_REQUEST['sp_position'] : null;
$args = array(
'show_option_all' => sprintf( __( 'All %s', 'sportspress' ), __( 'Positions', 'sportspress' ) ),