Plugin Directory

Changeset 3319253


Ignore:
Timestamp:
06/28/2025 08:59:56 PM (8 months ago)
Author:
MarkODonnell
Message:

Releasing version 4.8.1

Location:
team-rosters/trunk
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • team-rosters/trunk/includes/mstw-tr-admin.php

    r3270053 r3319253  
    158158       
    159159        wp_register_style( 'players-screen-styles', plugins_url( 'css/mstw-tr-admin-styles.css', dirname( __FILE__ ) ), array(), '4.8' );
    160         //mstw_log_msg( plugins_url( 'mstw-tr-admin-styles.css', __FILE__ ) );
    161         //mstw_tr_load_admin_styles( );
    162        
    163         //ob_start();
    164    
    165        
     160   
    166161    } //End: mstw_tr_admin_init()
    167162}
     
    244239                                        plugins_url( 'css/mstw-tr-admin-styles.css', dirname( __FILE__ ) ),
    245240                                        array( ),
    246                                         '4.9',
    247                                         array( )
     241                                        '4.9'
    248242                                        );
    249243   
     
    258252                                            plugins_url( 'team-rosters/js/tr-another-media.js' ),
    259253                                            array( ),
    260                                             '4.9', 
    261                                             array( )
     254                                            '4.9',
     255                                            array( 'in_footer' => true )
    262256                                            );
    263257   
     
    277271                             array( )
    278272                             );
     273                         
     274        wp_localize_script( 'tr-manage-rosters', 'mstw_tr_manage_rosters_ajax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'ajax-nonce' ) ) );
    279275    }
    280    
     276         
    281277    //
    282278    // If it's the Manage Teams screen, enqueue the script to load team
     
    286282                           plugins_url( 'js/tr-manage-teams.js', dirname( __FILE__ ) ),
    287283                           array( ),
    288                            '4.9', 
    289                              array( )
     284                           '4.9',
     285                             array( 'in_footer' => true )
    290286                             );
    291287
     
    297293                           array( ),
    298294                           '4.9',
    299                              array( )
     295                             array( 'in_footer' => true )
    300296                             );
    301297    }
     
    309305       
    310306        wp_enqueue_script(  'mstw-tr-color-picker',
    311                             plugins_url( 'team-rosters/js/tr-color-settings.js' ), array( 'wp-color-picker' ), '4.8', true );
     307                            plugins_url( 'team-rosters/js/tr-color-settings.js' ),
     308                            array( 'wp-color-picker' ),
     309                            '4.8',
     310                            array( 'in_footer' => true )
     311                            );
    312312                           
    313313        wp_enqueue_script(  'mstw-tr-confirm-reset',
    314                             plugins_url( 'team-rosters/js/tr-confirm-reset.js' ), array( 'wp-color-picker' ), '4.8', true );
     314                            plugins_url( 'team-rosters/js/tr-confirm-reset.js' ),
     315                            array( 'wp-color-picker' ),
     316                            '4.8',
     317                            array( 'in_footer' => true )
     318                            );
    315319    }
    316320
     
    339343        return $actions;
    340344    } //End: mstw_tr_bulk_actions()
    341 }
    342    
    343 // ----------------------------------------------------------------
    344 // Add a filter the All Teams screen based on the Leagues Taxonomy
    345 //add_action('restrict_manage_posts','mstw_tr_restrict_manage_posts');
    346 
    347 function mstw_tr_restrict_manage_posts( ) {
    348     global $typenow;
    349 
    350     if ( $typenow=='mstw_tr_player' ){
    351         // Trying to find current selection
    352         $selected = isset( $_REQUEST[$mstw_tr_team] ) ? $_REQUEST[$mstw_tr_team] : '';
    353            
    354         $args = array(
    355                     'show_option_all' => 'All Teams',
    356                     'taxonomy' => 'mstw_tr_team',
    357                     'name' => 'mstw_tr_team',
    358                     'orderby' => 'name',
    359                     'selected' => $_GET['mstw_tr_team'],
    360                     'show_count' => true,
    361                     'hide_empty' => true,
    362                     );
    363         wp_dropdown_categories( $args );
    364     }
    365 }
    366 
    367 //add_action( 'request', 'mstw_tr_request' );
    368 function mstw_tr_request( $request ) {
    369     //mstw_log_msg( 'mstw_tr_request:' );
    370    
    371     if ( is_admin( ) && $GLOBALS['PHP_SELF'] == '/wp-admin/edit.php' && isset( $request['post_type'] ) && $request['post_type']=='mstw_tr_player' ) {
    372         $request['term'] = get_term( $request['mstw_tr_player'], 'mstw_tr_team', OBJECT )->name;
    373     }
    374     return $request;
    375345}
    376346
     
    610580    function mstw_tr_set_option_page_capabilities( $capability ) {
    611581        //mstw_log_msg( 'mstw_tr_set_option_page_capabilities:' );
     582       
    612583        $capability = 'edit_mstw_tr_settings';
    613         return $capability; //'edit_mstw_tr_settings'; //
     584        return $capability;
     585       
    614586    } //End mstw_tr_set_option_page_capabilities()
    615587 }
     
    626598 function mstw_tr_ajax_callback ( ) {
    627599    //mstw_log_msg( 'mstw_tr_ajax_callback:' );
     600    //mstw_log_msg( $_POST );
    628601   
    629602    global $wpdb;  //this provides access to the WP DB
    630603   
    631     if ( array_key_exists( 'real_action', $_POST ) ) {
    632        
    633         $action = $_POST['real_action'];
    634    
     604    $action = mstw_safe_get( 'real_action', $_POST, '' );
     605   
     606    if ( '' != $action ) {
    635607        switch( $action ) {
    636608            case 'change_current_team':
     
    644616               
    645617            default:
    646                 mstw_log_msg( "Error: Invalid action, $action, on page: " . $_POST['page'] );
     618                $postPage = mstw_safe_get( 'page', $_POST, 'unknown' );
     619                mstw_log_msg( "Error: Invalid action, $action, on page: $postPage" );
    647620                $response['error'] = __( 'AJAX Error: invalid action.', 'team-rosters' );
    648621                break;
     
    673646    //mstw_log_msg( 'mstw_tr_ajax_change_team:' );
    674647    //$_POST should be global
     648    //mstw_log_msg( '$_POST' );
     649    //mstw_log_msg( $_POST );
    675650   
    676651    $response = array( 'response'      => 'team',
     
    678653                       'error'         => ''
    679654                     );
    680        
    681     if ( array_key_exists( 'current_team', $_POST ) ) {
    682        
    683         $current_team = $_POST['current_team'];
     655                 
     656    $current_team = mstw_safe_get( 'current_team', $_POST, '' );
     657       
     658    if ( '' != $current_team ) {
     659       
     660        $current_team = mstw_safe_get( 'current_team', $_POST, '' );
    684661       
    685662        mstw_tr_set_current_team( $current_team );
     
    713690    //mstw_log_msg( 'mstw_tr_ajax_add_team:' );
    714691    //$_POST should be global
     692    //mstw_log_msg( '$_POST' );
     693    //mstw_log_msg( $_POST );
    715694   
    716695    $response = array( 'response'      => 'team',
     
    719698                     );
    720699       
    721     if ( array_key_exists( 'current_team', $_POST ) ) {
    722        
    723         $current_team = $_POST['current_team'];
    724        
     700   
     701    $current_team = mstw_safe_get( 'current_team', $_POST, '' );
     702   
     703    if ( '' != $current_team ) {
    725704        mstw_tr_set_current_team( $current_team );
    726        
    727705        $response['current_team'] = $current_team;
    728706       
     
    730708        // we've got a problem
    731709        mstw_log_msg( "AJAX Error: No league provided to handler." );
    732        
    733710        $response['error'] = __( 'AJAX Error: No league provided to handler.', 'team-rosters' );   
    734        
    735711    } //End: if ( array_key_exists( 'current_team', $_POST ) )
    736712   
     
    776752//
    777753function mstw_tr_get_current_post_type( ) {
    778    
     754    //mstw_log_msg( 'mstw_tr_get_current_post_type:' );
     755
    779756    global $post, $typenow, $current_screen;
    780757 
     
    788765        return $current_screen->post_type;
    789766 
    790     elseif( isset( $_REQUEST['post_type'] ) )
    791         return sanitize_key( $_REQUEST['post_type'] );
    792        
    793     else
    794         return null;
    795        
     767    //elseif( isset( $_REQUEST['post_type'] ) )
     768    else {
     769        if ( isset( $_REQUEST['mstw-tr-nonce'] ) ) {
     770            if ( false == wp_verify_nonce(  sanitize_text_field( wp_unslash( $_REQUEST[ 'mstw-tr-nonce' ] ) ), 'edit-players' ) ) {
     771                mstw_log_msg( "mstw_tr_get_current_post_type: invalid nonce" );
     772                die( esc_html__('fatal error encountered in team rosters', 'team-rosters' ) );
     773            }
     774        } else {
     775            mstw_log_msg( "mstw_tr_get_current_post_type: nonce not found" );
     776            die( esc_html__('fatal error encountered in team Rosters', 'team-rosters' ) );
     777        }
     778       
     779        $postType = mstw_safe_get( 'post_type', $_REQUEST, null );
     780        //return sanitize_key( $postType );
     781        return $postType;
     782    }
     783
    796784} //End: mstw_tr_get_current_post_type( )
    797785
  • team-rosters/trunk/includes/mstw-tr-csv-import-class.php

    r3270053 r3319253  
    6565        //
    6666        function form( ) {         
    67             //mstw_tr_log_msg( "MSTW_TR_ImporterPlugin.form:" );
     67            //mstw_log_msg( "MSTW_TR_ImporterPlugin.form:" );
     68            //mstw_log_msg( $_POST );
    6869           
    6970            // check & cleanup the returned $_POST values
    7071            $submit_value = $this->process_option( 'submit', 0, $_POST, false );
    7172            $import_team = $this->process_option( 'csv_import_team', 0, $_POST, false );
    72             //mstw_tr_log_msg( "import team: $import_team" );
     73            //mstw_log_msg( "import team: $import_team" );
    7374           
    7475            //$csv_teams_import = $this->process_option( 'csv_teams_import', 0, $_POST, false );
    7576            $move_photos = $this->process_option( 'csv_move_photos', 0, $_POST, true );
    7677           
    77             if ( 'POST' == $_SERVER['REQUEST_METHOD'] ) {
     78            if ( 'POST' == mstw_safe_get( 'REQUEST_METHOD', $_SERVER, '' ) ) {
    7879                $this->post( compact( 'submit_value', 'import_team', 'move_photos' ) );
    7980            }
     
    183184
    184185        function print_messages() {
    185             //mstw_tr_log_msg( "MSTW_TR_ImporterPlugin.print_messages:" );
     186            //mstw_log_msg( "MSTW_TR_ImporterPlugin.print_messages:" );
    186187           
    187188            if ( !empty( $this->log ) ) { ?>
     
    219220        //
    220221        function post( $options ) {
    221             //mstw_tr_log_msg( "MSTW_TR_ImporterPlugin.post:" );
     222            //mstw_log_msg( "MSTW_TR_ImporterPlugin.post:" );
     223            //mstw_log_msg( $_POST );
    222224           
    223225            if ( !$options ) {
    224                 mstw_tr_log_msg( 'Houston, we have a problem ... no $options' );
     226                mstw_log_msg( 'Houston, we have a problem ... no $options' );
    225227                return;
    226228            }
     
    231233                    if ( isset( $_POST['mstw-tr-nonce'] ) ) {
    232234                        //wp_verify_nonce( sanitize_key( wp_unslash( $_POST['mstw-tr-nonce'] ) );
    233                         $safeNonce = wp_esc_key( wp_unslash( $_POST['mstw-tr-nonce'] ) );
     235                        $safeNonce = sanitize_text_field( wp_unslash( $_POST['mstw-tr-nonce'] ) );
    234236                        if ( !wp_verify_nonce( $safeNonce, 'import-teams' ) ) {
    235237                            mstw_tr_add_admin_notice( 'error', __( 'Problem encountered with CSV file. Exiting.', 'team-rosters' ) );
     
    253255                    if ( isset( $_POST['mstw-tr-nonce'] ) ) {
    254256                        //wp_verify_nonce( sanitize_key( wp_unslash( $_POST['mstw-tr-nonce'] ) );
    255                         $safeNonce = wp_esc_key( wp_unslash( $_POST['mstw-tr-nonce'] ) );
    256                        
    257                         if ( !wp_verify_nonce( $safeNonce, 'import-teams' ) ) {
     257                        //$safeNonce = wp_esc_key( wp_unslash( $_POST['mstw-tr-nonce'] ) );
     258                        $safeNonce = mstw_really_safe_get( 'mstw-tr-nonce', $_POST, '' );
     259                       
     260                        if ( !wp_verify_nonce( $safeNonce, 'import-players' ) ) {
    258261                            mstw_tr_add_admin_notice( 'error', __( 'Problem encountered with CSV file. Exiting.', 'team-rosters' ) );
    259262                            mstw_log_msg( 'MSTW_TR_CSV_IMPORT_CLASS.post: Problem encountered loading CSV file; bad nonce. Exiting.' );
     
    274277                   
    275278                default:
    276                     mstw_tr_log_msg( 'Error encountered in post() method. $submit_value = ' . $submit_value . '. Exiting' );
     279                    mstw_log_msg( 'Error encountered in post() method. $submit_value = ' . $submit_value . '. Exiting' );
    277280                    return;
    278281                    break;
     
    286289            $csv = new MSTW_CSV_DataSource;
    287290           
    288             $file = $_FILES[$file_id]['tmp_name'];
     291            //$file = $_FILES[$file_id]['tmp_name'];
     292            $filesFileID = mstw_safe_get( $file_id, $_FILES, null );
     293           
     294            $file = mstw_safe_get( 'tmp_name', $filesFileID, '' );
     295           
    289296            if ( !$this->stripBOM( $file ) ) {
    290297                $this -> print_messages( );
     
    293300
    294301            if ( !$csv -> load( $file ) ) {
    295                 //mstw_tr_log_msg( "logging failure to load file" );
     302                //mstw_log_msg( "logging failure to load file" );
    296303                $this->log['error'][] = sprintf(
    297304                        /* translators: %s: filename */
     
    309316            foreach ( $csv -> connect( ) as $csv_data ) {
    310317                if ( empty( $csv_data ) or !$csv_data ) {
    311                     mstw_tr_log_msg( 'No CSV data. $csv_data is empty.' );
     318                    mstw_log_msg( 'No CSV data. $csv_data is empty.' );
    312319                }
    313320               
     
    336343                       
    337344                    default:
    338                         mstw_tr_log_msg( 'Oops, something went wrong with file ID: ' . $file_id );
     345                        mstw_log_msg( 'Oops, something went wrong with file ID: ' . $file_id );
    339346                        break;
    340347                }
     
    355362                /* translators: %1$s 'record' or 'records' skipped %*/
    356363                _n( 'Skipped %1$s record.', 'Skipped %1$s records.', $skipped, 'team-rosters' ), $skipped );
    357                 $this->log['error'][] = "<b>{$admin_notice}</b>";
     364                //$this->log['error'][] = "<b>{$admin_notice}</b>";
     365                $this->log['error'][] = $admin_notice;
    358366            }
    359367           
     
    362370                /* translators: %1$s/%2$s 'record' or 'records' processed */
    363371                _n( 'Imported %1$s record in %2$.2f seconds.', 'Imported %1$s records in %2$.2f seconds.', $imported, 'team-rosters' ), $imported, $exec_time );
    364             $this->log['notice'][] = "<b>{$admin_notice}</b>";
     372            //$this->log['notice'][] = "<b>{$admin_notice}</b>";
     373            $this->log['notice'][] = $admin_notice;
    365374           
    366375            $this->print_messages();
     
    372381        //
    373382        function create_post( $data, $options ) {   
    374             //mstw_tr_log_msg( 'MSTW_TR_ImporterPlugin.create_post:' );
    375             //mstw_tr_log_msg( $data );
    376             //mstw_tr_log_msg( $options );
     383            //mstw_log_msg( 'MSTW_TR_ImporterPlugin.create_post:' );
     384            //mstw_log_msg( $data );
     385            //mstw_log_msg( $options );
    377386           
    378387            $data = array_merge( $this->defaults, $data );
     
    415424                   
    416425                default:
    417                     mstw_tr_log_msg( 'Whoa horsie ... submit_value = ' . $options[ 'submit_value'] );
     426                    mstw_log_msg( 'Whoa horsie ... submit_value = ' . $options[ 'submit_value'] );
    418427                    $this->log['error']["type-{$type}"] = sprintf(
    419428                        /* translators: %s: import type */
     
    441450            // Add the specified team taxonomy, if provided
    442451            if ( $post_id ) {
    443                 //mstw_tr_log_msg( "Trying to add import_team tax" );
    444                 //mstw_tr_log_msg( "for player " . convert_chars( $temp_title ) );
     452                //mstw_log_msg( "Trying to add import_team tax" );
     453                //mstw_log_msg( "for player " . convert_chars( $temp_title ) );
    445454                if ( array_key_exists( 'import_team', $options ) && !empty( $options['import_team' ] ) && $options['import_team' ] > 0 ) {
    446455                    $term = get_term_by( 'id', $options['import_team'], 'mstw_tr_team' );
     
    557566                                //Check for errors downloading
    558567                                if( is_wp_error( $temp_photo ) ) {
    559                                     mstw_tr_log_msg( "Error downloading: $v" );
    560                                     mstw_tr_log_msg( $temp_photo );
     568                                    mstw_log_msg( "Error downloading: $v" );
     569                                    mstw_log_msg( $temp_photo );
    561570                                }
    562571                                else {
     
    570579                                    //Check for sideload errors
    571580                                    if( is_wp_error( $id ) ) {
    572                                         mstw_tr_log_msg( "Error loading file to media library: $temp_photo" );
    573                                         mstw_tr_log_msg( $id );
     581                                        mstw_log_msg( "Error loading file to media library: $temp_photo" );
     582                                        mstw_log_msg( $id );   
    574583                                    }
    575584                                    else {
     
    578587                                       
    579588                                        if( $post_meta_id === false ) {
    580                                             mstw_tr_log_msg( "Failed to set thumbnail for post $post_id" );
     589                                            mstw_log_msg( "Failed to set thumbnail for post $post_id" );   
    581590                                        }
    582591                                    }
     
    589598                                if( $thumbnail_id and $thumbnail_id != -1 ) {
    590599                                    if( set_post_thumbnail( $post_id, $thumbnail_id ) === false ) {
    591                                         mstw_tr_log_msg( 'Failed to set_post_thumbnail. Post= ' . $post_id . ' thumbnail= ' . $thumbnail_id );
     600                                        mstw_log_msg( 'Failed to set_post_thumbnail. Post= ' . $post_id . ' thumbnail= ' . $thumbnail_id );
    592601                                    }
    593602                                }
    594603                                else {
    595                                     mstw_tr_log_msg( 'No file found in the media library: ' . $thumbnail_id );
     604                                    mstw_log_msg( 'No file found in the media library: ' . $thumbnail_id );
    596605                                }   
    597606                            }
     
    601610                    default:
    602611                        // bad column header
    603                         mstw_tr_log_msg( 'Unrecognized game data field: ' . $k );
     612                        mstw_log_msg( 'Unrecognized game data field: ' . $k );
    604613                        break;
    605614                       
     
    653662        //
    654663        function create_team_taxonomy_term( $data, $options, $imported ) {
    655             //mstw_tr_log_msg( "MSTW_TR_ImporterPlugin:create_team_taxonomy_term:" );
    656             //mstw_tr_log_msg( "data:" );
    657             //mstw_tr_log_msg( $data );
    658             //mstw_tr_log_msg( "options:" );
    659             //mstw_tr_log_msg( $options );
     664            //mstw_log_msg( "MSTW_TR_ImporterPlugin:create_team_taxonomy_term:" );
     665            //mstw_log_msg( "data:" );
     666            //mstw_log_msg( $data );
     667            //mstw_log_msg( "options:" );
     668            //mstw_log_msg( $options );
    660669           
    661670            $retval = 0;
     
    709718           
    710719            if ( is_wp_error( $result ) ) {
    711                 mstw_tr_log_msg( 'Error inserting term ... ' );
    712                 mstw_tr_log_msg( $result );
     720                mstw_log_msg( 'Error inserting term ... ' );
     721                mstw_log_msg( $result );
    713722                $retval = 0;
    714723            }
    715724            else {
    716                 //mstw_tr_log_msg( 'Term inserted ... ID= ' . $result['term_id'] );
     725                //mstw_log_msg( 'Term inserted ... ID= ' . $result['term_id'] );
    717726                //
    718727                // If it exists, the SS team link will be added as term meta data
     
    747756        //
    748757        function stripBOM( $fname ) {
    749             //mstw_tr_log_msg( "MSTW_TR_ImporterPlugin.stripBOM:" );
     758            //mstw_log_msg( "MSTW_TR_ImporterPlugin.stripBOM:" );
    750759           
    751760            $res = @fopen( $fname, 'rb' );
     
    759768                    $contents = file_get_contents( $fname );
    760769                    if ( false === $contents ) {
    761                         trigger_error( 'Failed to get file contents.', E_USER_WARNING );
     770                        //trigger_error( 'Failed to get file contents.', E_USER_WARNING );
     771                        mstw_log_msg( esc_html__( 'Failed to get file contents.' , 'team-rosters' ) );
    762772                    }
    763773                    $contents = substr($contents, 3);
     
    765775                   
    766776                    if (false === $success) {
    767                         trigger_error( 'Failed to put file contents.', E_USER_WARNING );
     777                        //trigger_error( 'Failed to put file contents.', E_USER_WARNING );
     778                        mstw_log_msg( esc_html__( 'Failed to get file contents.' , 'team-rosters' ) );
    768779                    }
    769780                   
     
    794805        // 
    795806        function add_help( ) {
    796             //mstw_tr_log_msg( "MSTW_TR_ImporterPlugin.add_help:" );
     807            //mstw_log_msg( "MSTW_TR_ImporterPlugin.add_help:" );
    797808           
    798809            $screen = get_current_screen( );
    799             //mstw_tr_log_msg( $screen );
     810            //mstw_log_msg( $screen );
    800811           
    801812            // All TR help screen have the same sidebar
     
    817828       
    818829        function csv_import_help_content ( ) {
    819             //mstw_tr_log_msg( "MSTW_TR_ImporterPlugin.add_help:" );
     830            //mstw_log_msg( "MSTW_TR_ImporterPlugin.add_help:" );
    820831            ?>
    821832            <p><?php esc_html_e( 'This screen allows the import of teams and players from files in CSV format. Sample file formats are available in the Users Manual (link below).', 'team-rosters' ) ?></p>
  • team-rosters/trunk/includes/mstw-tr-player-cpt-admin.php

    r3270053 r3319253  
    3939            <p class='player-bio-admin-head'><?php esc_html_e( 'Player Bio:', 'team-rosters' ) ?></p>
    4040            <?php
     41            //wp_nonce_field( 'single-player', 'mstw-tr-nonce' );
    4142        }
    4243    }  //End: mstw_tr_build_player_screen
     
    336337            if ( $_POST['post_type'] == 'mstw_tr_player' ) {
    337338                update_post_meta( $post_id, 'player_first_name',
    338                         wp_strip_all_tags( $_POST['player_first_name'] ) );
     339                        wp_strip_all_tags( mstw_safe_get( 'player_first_name', $_POST, '' ) ) );
    339340                       
    340341                update_post_meta( $post_id, 'player_last_name',
    341                         wp_strip_all_tags( $_POST['player_last_name'] ) );
     342                        wp_strip_all_tags( mstw_safe_get( 'player_last_name', $_POST, '' ) ) );
    342343                       
    343344                update_post_meta( $post_id, 'player_number',
    344                         wp_strip_all_tags( $_POST['player_number'] ) );
     345                        wp_strip_all_tags( mstw_safe_get( 'player_number', $_POST, '' ) ) );
    345346                       
    346347                update_post_meta( $post_id, 'player_position',
    347                         wp_strip_all_tags( $_POST['player_position'] ) );
     348                        wp_strip_all_tags( mstw_safe_get( 'player_position', $_POST, '' ) ) );
    348349                       
    349350                update_post_meta( $post_id, 'player_position_long',
    350                         wp_strip_all_tags( $_POST['player_position_long'] ) ); 
     351                        wp_strip_all_tags( mstw_safe_get( 'player_position_long', $_POST, '' ) ) );
    351352                       
    352353                update_post_meta( $post_id, 'player_height',
    353354                        //$_POST['player_height'] );
    354                         wp_strip_all_tags( $_POST['player_height'] ) );
     355                        wp_strip_all_tags( mstw_safe_get( 'player_height', $_POST, '' ) ) );
    355356                       
    356357                update_post_meta( $post_id, 'player_weight', 
    357                         wp_strip_all_tags( $_POST['player_weight'] ) );
     358                        wp_strip_all_tags( mstw_safe_get( 'player_weight', $_POST, '' ) ) );
    358359                       
    359360                update_post_meta( $post_id, 'player_year', 
    360                         wp_strip_all_tags( $_POST['player_year'] ) );
     361                        wp_strip_all_tags( mstw_safe_get( 'player_year', $_POST, '' ) ) );
    361362                       
    362363                update_post_meta( $post_id, 'player_year_long', 
    363                         wp_strip_all_tags( $_POST['player_year_long'] ) );
     364                        wp_strip_all_tags( mstw_safe_get( 'player_year_long', $_POST, '' ) ) );
    364365                       
    365366                update_post_meta( $post_id, 'player_experience',
    366                         wp_strip_all_tags( $_POST['player_experience'] ) );
     367                        wp_strip_all_tags( mstw_safe_get( 'player_experience', $_POST, '' ) ) );
    367368               
    368369                update_post_meta( $post_id, 'player_age',
    369                         wp_strip_all_tags( $_POST['player_age'] ) );
     370                        wp_strip_all_tags( mstw_safe_get( 'player_age', $_POST, '' ) ) );
    370371                       
    371372                update_post_meta( $post_id, 'player_home_town',
    372                         wp_strip_all_tags( $_POST['player_home_town'] ) );
     373                        wp_strip_all_tags( mstw_safe_get( 'player_home_town', $_POST, '' ) ) );
    373374                       
    374375                update_post_meta( $post_id, 'player_last_school',
    375                         wp_strip_all_tags( $_POST['player_last_school'] ) );
     376                        wp_strip_all_tags( mstw_safe_get( 'player_last_school', $_POST, '' ) ) );
    376377                       
    377378                update_post_meta( $post_id, 'player_country',
    378                         wp_strip_all_tags( $_POST['player_country'] ) );
     379                        wp_strip_all_tags( mstw_safe_get( 'player_country', $_POST, '' ) ) );
    379380                       
    380381                update_post_meta( $post_id, 'player_bats',
    381                         wp_strip_all_tags( $_POST['player_bats'] ) );
     382                        wp_strip_all_tags( mstw_safe_get( 'player_bats', $_POST, 'R' ) ) );
    382383                       
    383384                update_post_meta( $post_id, 'player_throws',
    384                         wp_strip_all_tags( $_POST['player_throws'] ) );
     385                        wp_strip_all_tags( mstw_safe_get( 'player_throws', $_POST, 'R' ) ) );
    385386                       
    386387                update_post_meta( $post_id, 'player_other',
    387                         wp_strip_all_tags( $_POST['player_other'] ) );
     388                        wp_strip_all_tags( mstw_safe_get( 'player_other', $_POST, '' ) ) );
    388389                       
    389390            } //End: if ( $_POST['post_type'] == 'mstw_tr_player' )
     
    519520
    520521 if( !function_exists( 'mstw_tr_restrict_players_by_team' ) ) {
    521     function mstw_tr_restrict_players_by_team( ) {
     522    function mstw_tr_restrict_players_by_team ( ) {
     523        //mstw_log_msg( 'mstw_tr_restrict_players_by_team:' );
     524       
    522525        global $typenow;
    523526        //global $wp_query;
    524527       
    525528        if( $typenow == 'mstw_tr_player' ) {
     529           
     530            wp_nonce_field( 'single-player', 'mstw-tr-nonce' );
     531            //wp_nonce_field( plugins_url(__FILE__), 'mstw_tr_player_nonce' );
    526532           
    527533            $taxonomy_slugs = array( 'mstw_tr_team' );
     
    544550                    //check against the last $_GET to show the current selection
    545551                    if ( array_key_exists( $tax_slug, $_GET ) ) {
    546                         $selected = ( $_GET[$tax_slug] == $term->slug ) ? ' selected="selected"' : '';
     552                        $selected = ( $_GET[$tax_slug] == $term->slug ) ? ' selected' : '';
    547553                    }
    548554                    else {
     
    550556                    }
    551557                    ?>
    552                     <option value='<?php echo esc_html( $term->slug . $selected ) ?>' > <?php echo esc_html( $term->name . '(' . $term->count . ')' ) ?> </option>
     558                    <option value='<?php echo esc_html( $term->slug )?>' <?php echo esc_html( $selected) ?>> <?php echo esc_html( $term->name . '(' . $term->count . ')' ) ?> </option>
     559                   
    553560        <?php
    554561                }
  • team-rosters/trunk/includes/mstw-tr-roster-table.php

    r3240856 r3319253  
    127127           
    128128            $test_output = mstw_tr_build_roster_table_header( $roster_type, $attribs, $fieldOrder );
    129             //mstw_log_msg( $test_output );
    130            
    131129            $output .= $test_output;
    132130
     
    489487 if( !function_exists( 'mstw_tr_add_player_name' ) ) {
    490488    function mstw_tr_add_player_name( $post, $args ) {
     489        mstw_log_msg( 'mstw_tr_add_player_name:' );
    491490       
    492491        switch( $args['name_format'] ) {
     
    508507       
    509508        if ( $args['links_to_profiles'] ) {
     509           
     510            /*$playerURL = mstw_tr_build_player_url( $post->ID, $player_id );
     511                       
     512            $nonceURL = wp_nonce_url( get_permalink( $player_id ), 'single-player', 'mstw-tr-nonce' );
     513            $nonceURL .= '&position='. $post->ID;
     514           
     515            mstw_log_msg( '$nonceURL=' );
     516            mstw_log_msg( $nonceURL );
     517            */
     518                       
     519            $playerLink = mstw_tr_build_player_link_html( $playerURL, get_the_post_thumbnail( $player_id, array( $table_photo_width, $table_photo_height ) ) );
     520           
     521           
    510522            $player_html = '<a href="' .  get_permalink($post->ID) . '?roster_type=' . $args['roster_type'] . '" ';
     523            mstw_log_msg( '$player_html=' );
     524            mstw_log_msg( $player_html );
    511525            $player_html .= '>' . $player_name . '</a>';
    512526        }
  • team-rosters/trunk/includes/mstw-tr-roster-tables-class.php

    r3270053 r3319253  
    6464                // merge the shortcode arguments and the settings/options
    6565                $attribs = $this -> processAtts( $args, $shortcode );
    66                            
     66           
    6767                ob_start( );
    6868                   
    6969                    ?>
    70                     <div class='mstw-tr-roster-table-container mstw-tr-roster-table-container-<?php echo esc_html( $teamSlug )?>' id='mstw-tr-roster-table-container-<?php echo esc_html( $tableID ) ?>'>   
     70                    <div class='mstw-tr-roster-table-container mstw-tr-roster-table-container-<?php echo esc_attr( $teamSlug )?>' id='mstw-tr-roster-table-container-<?php echo esc_attr( $tableID ) ?>'>   
    7171                            <?php $noControls = $this -> safeGet( 'no_controls', $args, null );
    72                             //mstw_log_msg( "noControls= $noControls" );
    73                            
     72                       
    7473                            if ( null === $noControls ) { ?>
    75                                 <!--<div class='mstw-tr-roster-title-controls mstw-tr-roster-title-controls-<?php //echo $teamSlug ?>'>-->
    76                                     <?php //echo $this -> build_roster_title( $teamSlug, $attribs ); ?>
    77                                     <div class='roster-sort-controls roster-sort-controls-<?php echo esc_html( $teamSlug ) ?> MSTW-flex-row'>
     74                                    <div class='roster-sort-controls roster-sort-controls-<?php echo esc_attr( $teamSlug ) ?> MSTW-flex-row'>
    7875                                        <?php
    79                                         // build_roster_sort_controls buffers the output so I am escaping earlier then here
     76                                        // build_roster_sort_controls buffers the output so I am escaping earlier than here
    8077                                        $controls_escaped = $this -> build_roster_sort_controls( $teamSlug, $attribs, $args, $argsStr, $tableID );
    8178                                        echo $controls_escaped;
    82                                         //echo $this -> build_roster_sort_controls( $teamSlug, $attribs, $args, $argsStr, $tableID );
    8379                                        ?>
    8480                                    </div>
     
    8783                            } ?>
    8884
    89                         <div class= 'mstw-tr-roster-players mstw-tr-roster-players-<?php echo esc_html( $teamSlug )?>' id='mstw-tr-roster-players-<?php echo esc_html( $tableID ) ?>'>
     85                        <div class= 'mstw-tr-roster-players mstw-tr-roster-players-<?php echo esc_attr( $teamSlug )?>' id='mstw-tr-roster-players-<?php echo esc_attr( $tableID ) ?>'>
    9086                        <?php
    9187                            // get the players
     
    126122       
    127123        ?>
    128         <ul class='mstw-tr-roster-player-list mstw-tr-roster-player-list-<?php echo esc_html( $teamSlug ) ?> mstw-tr-roster-player-list-<?php echo esc_html( $tableID ) ?>'>
     124        <ul class='mstw-tr-roster-player-list mstw-tr-roster-player-list-<?php echo esc_attr( $teamSlug ) ?> mstw-tr-roster-player-list-<?php echo esc_attr( $tableID ) ?>'>
    129125           
    130126            <!-- Why is this needed ?? -->
     
    144140                ?>
    145141                <li class='mstw-tr-roster-player'>
    146                     <div class='mstw-tr-roster-player-container mstw-tr-roster-player-container-<?php echo esc_html( $teamSlug ) ?> MSTW-flex-row'>
     142                    <div class='mstw-tr-roster-player-container mstw-tr-roster-player-container-<?php echo esc_attr( $teamSlug ) ?> MSTW-flex-row'>
    147143               
    148144                    <?php //PRIMARY INFO COLUMN ?>
     
    166162                            <div class='mstw-tr-roster-player-number-name MSTW-uppercase'>
    167163                                <?php
    168                                 $playerNameLink_escaped = $this -> buildPlayerName( $player, $teamSlug, $attribs, 1 );
     164                                $playerNameLink_escaped = $this -> buildPlayerName( $player, $teamSlug, $attribs, 1 ); 
    169165                                $playerNumber = get_post_meta( $player->ID, 'player_number', true );
    170166                                ?>
     
    184180                        <div class='mstw-tr-roster-player-bio'>
    185181                            <?php $playerLink = get_permalink( $player->ID ) . '?roster_type=' . $this -> safeGet( 'roster_type', $attribs, 'custom' ) . '&' . 'team=' . $teamSlug . '"'; ?>
    186                             <a href="<?php echo esc_html( $playerLink ) ?>"> FULL BIO</a>
     182                            <a href="<?php echo esc_url( $playerLink ) ?>"> FULL BIO</a>
    187183                           
    188184                        </div>
     
    311307       
    312308        if ( $addProfileLink ) {
    313             $paramStr = '?roster_type=' . $options['roster_type'];
     309            $paramStr = '&roster_type=' . $options['roster_type'];
    314310            if ( $teamSlug ) {
    315311                $paramStr .= "&team=$teamSlug";
    316312            }
    317             $ret_html = '<a href="' .  esc_url( get_permalink( $player->ID ) ) . esc_html( $paramStr ) . '" ';
    318             $ret_html .= '>' . esc_html( $player_name ) . '</a>';
    319            
    320             //$ret_html = get_permalink( $player->ID ) . $paramStr . '" ';
    321             //$ret_html .= '>' . $player_html;
     313           
     314            $nonceURL = wp_nonce_url( get_permalink( $player->ID ), 'single-player', 'mstw-tr-nonce' );
     315            $nonceURL .= $paramStr;
     316           
     317            $ret_html = '<a href="' .  esc_url( $nonceURL ) . '" > ' . esc_html( $player_name ) . '</a>';
     318           
    322319        }
    323320        else {
    324             $ret_html = $player_name;
     321            $ret_html = esc_html( $player_name );
    325322           
    326323        }
     
    453450    //
    454451    function get_field_key( $rosterType, $fldNbr ) {
    455         //mstw_log_msg( "get_field_key:" );
     452        //mstw_log_msg( "MSTW_ROSTER_TABLE.get_field_key:" );
    456453       
    457454        $conversionTable = array(  'high-school'    =>
     
    487484    function processAtts( $atts, $shortcode ) {
    488485        //mstw_log_msg( "MSTW_ROSTER_TABLE.processAtts: shortcode= $shortcode" );
    489         //mstw_log_msg( "Passed atts: " );
    490         //mstw_log_msg( $atts );
    491486       
    492487        switch( $shortcode ) {
     
    546541    function build_roster_sort_controls( $team, $attribs, $args, $argsStr = '', $tableID = '' ) {
    547542        //mstw_log_msg( "MSTW_ROSTER_TABLE.build_roster_sort_control: team: $team , argsStr: $argsStr, tableID: $tableID" );
    548        
    549         // jersey # | name | position | hometown | class-year
     543         
    550544        $choices = array( 'numeric' => __( 'Jersey Number', 'team-rosters' ),
    551545                                            'alpha-first' => __( 'First Name', 'team-rosters' ),
     
    562556            ?>
    563557            <form id='tr-sort-controls' class='MSTW-flex-row' >
    564                 <input type='hidden' id='roster-team' value='<?php echo esc_html( $team ) ?>'/>
    565                 <input type="hidden" id='tableID' value="<?php echo esc_html( $tableID ) ?>" />
    566                 <input type="hidden" id='args_<?php echo esc_html( $tableID ) ?>' value="<?php echo esc_html( $argsStr )?>" />
     558                <input type='hidden' id='roster-team' value='<?php echo esc_attr( $team ) ?>'/>
     559                <input type="hidden" id='tableID' value="<?php echo esc_attr( $tableID ) ?>" />
     560                <input type="hidden" id='args_<?php echo esc_attr( $tableID ) ?>' value="<?php echo esc_attr( $argsStr )?>" />
    567561               
    568562                <div class='tr-sort-menu'>
    569                     <select name='tr-sort-menu' id='tr-sort-menu_<?php echo esc_html( $tableID ) ?>'>
     563                    <select name='tr-sort-menu' id='tr-sort-menu_<?php echo esc_attr( $tableID ) ?>'>
    570564                        <?php
    571565                        foreach( $choices as $slug => $label ) {
    572566                            $selected = ( $currentSortOrder == $slug ) ? 'selected="selected"' : '';
    573567                            ?>
    574                             <option value=<?php echo esc_html( "$slug $selected" ) ?>> <?php echo esc_html( $label ) ?></option>
     568                            <option value=<?php echo esc_attr( "$slug $selected" ) ?>> <?php echo esc_html( $label ) ?></option>
    575569                            <?php
    576570                        }
     
    580574               
    581575                <div class='tr-sort-button'>
    582                     <input type='button' class='secondary tr-sort-submit' id='<?php echo esc_html( $tableID ) ?>' name='<?php echo esc_html( $team )?>' value=<?php esc_html_e( 'Sort Roster', 'team-rosters' ) ?>/>
     576                    <input type='button' class='secondary tr-sort-submit' id='<?php echo esc_attr( $tableID ) ?>' name='<?php echo esc_attr( $team )?>' value=<?php esc_attr_e( 'Sort Roster', 'team-rosters' ) ?>/>
    583577                </div>
    584578               
  • team-rosters/trunk/includes/mstw-tr-settings.php

    r3270053 r3319253  
    2727    function mstw_tr_settings_page( ) {
    2828        //mstw_log_msg( "mstw_tr_settings_page:" );
     29        //mstw_log_msg( $_GET );
    2930       
    3031        global $pagenow;
     
    3536        include_once 'mstw-tr-player-profiles-galleries-settings.php';
    3637       
    37         //mstw_tr_data_fields_columns_setup( );
    3838        mstw_tr_data_fields_setup( );
    39         //mstw_tr_data_fields_center_setup( );
    4039       
    4140        mstw_tr_roster_table_setup( );
     
    5251            <?php
    5352            //Get or set the current tab - default to first/main settings tab
    54             $current_tab = ( isset( $_GET['tab'] ) ? $_GET['tab'] : 'data-fields-columns-tab' );
     53            $current_tab = mstw_really_safe_get( 'tab', $_GET, 'data-fields-columns-tab' );
     54            //$current_tab = ( isset( $_GET['tab'] ) ? $_GET['tab'] : 'data-fields-columns-tab' );
    5555           
    5656            $tabsArray = array( 'data-fields-columns-tab',
     
    133133            <table class="form-table">
    134134                <!-- Add a spacer row -->
    135                 <tr><td><input type='hidden' name='current_tab' id='current_tab' value='<?php echo esc_html( $current_tab ) ?>' /></td></tr>
     135                <tr><td><input type='hidden' name='current_tab' id='current_tab' value='<?php echo esc_attr( $current_tab ) ?>' /></td></tr>
    136136                <tr>
    137137                    <td>
    138                         <input name="Submit" type="submit" class="button-primary" value="<?php esc_html_e( 'Save Changes', 'team-rosters' ) ?>" />
    139                    
    140                         <input type="submit" class="button-secondary" id="reset_btn" name="<?php echo esc_html( $options_name ) ?>" onclick="tr_confirm_reset_defaults()" value="<?php esc_html_e( 'Reset Defaults', 'team-rosters' ) ?>" />
     138                        <input name="Submit" type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'team-rosters' ) ?>" />
     139                   
     140                        <input type="submit" class="button-secondary" id="reset_btn" name="<?php echo esc_attr( $options_name ) ?>" onclick="tr_confirm_reset_defaults()" value="<?php esc_attr_e( 'Reset Defaults', 'team-rosters' ) ?>" />
    141141                    </td>
    142142                </tr>
     
    277277        }
    278278       
    279         // Get current tab so we know what fields to validate and save
    280         // Default to first/main settings tab
    281         $current_tab = ( isset( $_POST['current_tab'] ) ) ? $_POST['current_tab'] : 'data-fields-columns-tab';
    282 
     279        $current_tab = mstw_really_safe_get( 'current_tab', $_POST, 'data-fields-columns-tab' );
     280       
    283281        //check if the reset button was pressed and confirmed
    284282        //array_key_exists() returns true for null, isset does not
  • team-rosters/trunk/includes/mstw-tr-team-roster-admin-class.php

    r3270053 r3319253  
    110110        // We do the heavy lifting in the post( ) method
    111111        //
    112         if ( 'POST' == $_SERVER['REQUEST_METHOD'] ) {
    113            
    114             $submit_value = array_key_exists( 'submit', $_POST ) ? wp_unslash( $_POST[ 'submit' ] ) : null;
     112        $requestMethod = mstw_safe_get( 'REQUEST_METHOD', $_SERVER, '' );
     113       
     114        if ( 'POST' == $requestMethod ) {
     115           
     116            $submit_value = mstw_safe_get( 'submit', $_POST, null );
     117           
     118            //$submit_value = array_key_exists( 'submit', $_POST ) ? wp_unslash( $_POST[ 'submit' ] ) : null;
    115119           
    116120            $this->post( compact( 'submit_value' ) );
     
    135139        //
    136140        $current_team = mstw_tr_get_current_team( );
    137         //mstw_log_msg( 'Current Team: ' . $current_team );
    138141       
    139142        $paged = ( array_key_exists( 'paged', $_GET ) ) ? absint( $_GET['paged'] ) : 1;
     
    157160       
    158161        <form id="manage-roster" class="add:the-list: validate" method="post" enctype="multipart/form-data" action="">
    159        
     162            <?php wp_nonce_field( 'add-edit-players', 'mstw-tr-nonce' ); ?>
     163           
    160164            <div class="alignleft actions mstw-tr-controls">
    161165                <?php
     
    172176                    </h1>
    173177                    </div> <!-- .alignleft actions mstw-lm-controls -->
    174                     </form> <!-- #bracket-builder -->
     178                    </form> <!-- #manage-roster-->
    175179                    <?php return; ?>
    176180                   
    177                 <?php
     181        <?php
    178182                } else {
    179183                    //echo admin_url( 'admin.php?page=manage-team-rosters' );
     
    216220              $this -> build_roster_table_header( );
    217221              if ( $edit ) {
    218                 $this -> build_roster_table_body( $players_list );
    219                 $submit_button_label = __( 'Update Roster', 'team-rosters' );
    220                
     222                    $this -> build_roster_table_body( $players_list );
     223                    $submit_button_label = __( 'Update Roster', 'team-rosters' );       
    221224              } else {
    222                 $this -> build_add_players_table_body( );
    223                 $submit_button_label = __( 'Add Players', 'team-rosters' );
    224                
     225                    $this -> build_add_players_table_body( );
     226                    $submit_button_label = __( 'Add Players', 'team-rosters' );
    225227              }
    226228             
     
    228230             
    229231              <!-- Submit button -->
    230                 <?php wp_nonce_field( 'add-edit-players', 'mstw-tr-nonce' ); ?>
     232                <?php //wp_nonce_field( 'add-edit-players', 'mstw-tr-nonce' ); ?>
    231233              <tbody>
    232234              <tr>
     
    245247              </tbody>
    246248             
    247             </table>
    248            
    249         </form>
     249            </table> <!-- #edit-teams -->
     250           
     251        </form> <!-- #manage-roster -->
    250252       
    251253        <?php
     
    502504        ?>
    503505        <span class="tr-paginate-links">
    504           <?php echo wp_kses_post( paginate_links( $args ) ); ?>
     506            <?php if ( !is_null( paginate_links( $args ) ) ) {
     507                echo wp_kses_post( paginate_links( $args ) );
     508            }?>
     509           
     510          <?php //echo wp_kses_post( paginate_links( $args ) ); ?>
    505511        </span>
    506512       
     
    655661    function post( $options ) {
    656662        //mstw_log_msg( 'MSTW_TR_TEAM_ROSTERS_ADMIN.post:' );
     663        //mstw_log_msg( $_POST );
    657664        //
    658665        //first, do a few checks on form
    659666        //
    660667       
    661         if ( isset( $_POST['mstw-tr-nonce'] ) ) {
    662             //wp_verify_nonce( sanitize_key( wp_unslash( $_POST['mstw-tr-nonce'] ) );
    663             $safeNonce = wp_esc_key( wp_unslash( $_POST['mstw-tr-nonce'] ) );
    664            
     668        $safeNonce = mstw_really_safe_get( 'mstw-tr-nonce', $_POST, '' );
     669       
     670        if ( "" != $safeNonce  ) {
    665671            if ( !wp_verify_nonce( $safeNonce, 'add-edit-players' ) ) {
    666                 mstw_tr_add_admin_notice( 'error', __( 'Problem encountered updating roster. Exiting.', 'team-rosters' ) );
    667672                mstw_log_msg( 'MSTW_TR_TEAM_ROSTERS_ADMIN.post: Problem encountered updating roster; bad nonce. Exiting.' );
     673                //die( esc_html__( 'Fatal error encountered updating roster -verification.', 'team-rosters' ) );
    668674                return;
    669675            }
    670676           
    671677        } else {
    672             mstw_tr_add_admin_notice( 'error', __( 'Problem encountered updating roster. Exiting.', 'team-rosters' ) );
    673678            mstw_log_msg( 'MSTW_TR_TEAM_ROSTERS_ADMIN.post: Problem encountered updating roster; nonce missing. Exiting.' );
     679            //die( esc_html__( 'Fatal error encountered updating roster -missin.', 'team-rosters' ) );
    674680            return;
    675681           
     
    691697                   
    692698                } else {
    693                     $team_slug = array_shift( $_POST ); //return 1st value and remove 1st element
    694699                    $playerArray = $_POST;
    695            
     700                    $trashNonce = array_shift( $playerArray ); //nonce is 1st value - trash
     701                    $trashRef = array_shift( $playerArray ); //referrer is 2nd value - trash
     702                    //return 1st value and remove 1st element
     703                    $team_slug = array_shift( $playerArray );
     704                   
    696705                    // Count for admin message
    697706                    $nbr_updated = 0;
     
    707716                           
    708717                            $playerArray = array_slice( $playerArray, $nbrFields + 1 );
    709                            
     718
    710719                            $result = $this -> process_player( $player_slug, $team_slug, $playerData );
    711720                           
     
    881890    function update_player( $player_id, $player_slug, $team_slug, $first_name, $last_name, $playerData ) {
    882891        //mstw_log_msg( "MSTW_TR_TEAM_ROSTERS_ADMIN.update_player:" );
    883         //mstw_log_msg( "player id: $player_id , slug: $player_slug , team: $team_slug" );
    884 
     892       
    885893        if ( '' != $player_slug ) {
    886894            $player_obj = get_page_by_path( $player_slug, OBJECT, 'mstw_tr_player' );
  • team-rosters/trunk/includes/mstw-tr-team-tax-admin-class.php

    r3270053 r3319253  
    296296    function create_team_meta( $term_id, $tt_id ){
    297297        //mstw_log_msg( 'MSTW_TR_TEAM_TAX_ADMIN.create_team_meta:' );
    298         //mstw_log_msg( "term_id= $term_id || tt_id= $tt_id" );
    299    
     298       
    300299        $key = 'ss_team_link';
    301         if ( array_key_exists( $key, $_POST ) && ( -1 != $_POST[ $key ] ) ) {
    302            
    303             $res = update_term_meta( $term_id, 'tr_team_link', $_POST[ $key ] );
    304            
     300        $postKey = mstw_safe_get( $key, $_POST, -1 );
     301       
     302        if ( -1 != $postKey ) {
     303            $res = update_term_meta( $term_id, 'tr_team_link', $postKey );
    305304            $res = update_term_meta( $term_id, 'tr_link_source', 'mstw_ss_team' );
    306            
    307             return;
    308                    
     305            return;     
    309306        } 
    310307           
    311308        $key = 'lm_team_link';
    312         if ( array_key_exists( $key, $_POST ) && ( -1 != $_POST[ $key ] ) ) {
    313            
    314             $res = update_term_meta( $term_id, 'tr_team_link', $_POST[ $key ] );
    315            
    316             $res = update_term_meta( $term_id, 'tr_link_source', 'mstw_lm_team' );
    317            
    318             return;
    319                    
     309        $postKey = mstw_safe_get( $key, $_POST, -1 );
     310       
     311        if ( -1 != $postKey ) {
     312            $res = update_term_meta( $term_id, 'tr_team_link', $postKey );
     313            $res = update_term_meta( $term_id, 'tr_link_source', 'mstw_lm_team' ); 
    320314        }
    321315         
     
    333327    //
    334328    function edit_team_meta( $term_id, $tt_id ) {
    335         //mstw_log_msg( 'MSTW_TR_TEAM_TAX_ADMIN.edit_team_meta:' );
    336         //mstw_log_msg( '$term_id= ' . $term_id );
    337         //mstw_log_msg( '$tt_id= ' . $tt_id );
    338    
     329        mstw_log_msg( 'MSTW_TR_TEAM_TAX_ADMIN.edit_team_meta:' );
     330        mstw_log_msg( $_POST );
     331       
    339332        $key = 'ss_team_link';
    340         if ( array_key_exists( $key, $_POST ) && ( -1 != $_POST[ $key ] ) ) {
    341            
    342                 update_term_meta( $term_id, 'tr_team_link', $_POST[ $key ] );
     333        $postKey = mstw_safe_get( $key, $_POST, -1 );
     334       
     335        if ( -1 != $postKey ) {
     336           
     337                update_term_meta( $term_id, 'tr_team_link', $postKey );
    343338                update_term_meta( $term_id, 'tr_link_source', 'mstw_ss_team' );
    344339                   
     
    346341       
    347342            $key = 'lm_team_link';
    348             if ( array_key_exists( $key, $_POST ) && ( -1 != $_POST[ $key ] ) ) {
    349                
    350                 update_term_meta( $term_id, 'tr_team_link', $_POST[ $key ] );
    351                 update_term_meta( $term_id, 'tr_link_source', 'mstw_lm_team' );
    352                        
     343            $postKey = mstw_safe_get( $key, $_POST, -1 );
     344           
     345            if ( -1 != $postKey ) {
     346                update_term_meta( $term_id, 'tr_team_link', $postKey );
     347                update_term_meta( $term_id, 'tr_link_source', 'mstw_lm_team' );
    353348            } else {
    354                
    355349                update_term_meta( $term_id, 'tr_team_link', -1 );
    356350                update_term_meta( $term_id, 'tr_link_source', '' );
  • team-rosters/trunk/includes/mstw-tr-utility-functions.php

    r3270053 r3319253  
    126126//          None. Outputs to WP error_log
    127127//
    128 if ( !function_exists( 'mstw_log_msg' ) ) {
     128/*if ( !function_exists( 'mstw_log_msg' ) ) {
    129129    function mstw_log_msg( $msg ) {
    130130        if ( WP_DEBUG === true ) {
     
    141141    } //End: mstw_log_msg( )
    142142}
     143*/
    143144
    144145// ----------------------------------------------------------------
     
    591592 if ( !function_exists( 'mstw_tr_build_gallery' ) ) {
    592593    function mstw_tr_build_gallery( $team_slug, $roster_type, $options ) {
    593         //mstw_tr_log_msg( 'mstw_tr_build_gallery:' );
     594        //mstw_log_msg( 'mstw_tr_build_gallery:' );
    594595       
    595596        // Set the sort field   
     
    824825        //mstw_log_msg( "mstw_tr_build_player_name: name_format= " . $options[ 'name_format' ] );
    825826       
    826         $first_name = get_post_meta($player->ID, 'player_first_name', true );
    827         $last_name = get_post_meta($player->ID, 'player_last_name', true );
     827        $first_name = get_post_meta( $player->ID, 'player_first_name', true );
     828        $last_name = get_post_meta( $player->ID, 'player_last_name', true );
    828829       
    829830        switch ( $options['name_format'] ) {
     
    847848        if( $display != 'profile' ) {
    848849            if ( $options['links_to_profiles'] ) {
    849                 $paramStr = '?roster_type=' . $options['roster_type'];
     850                // this has a ? need an & since nonce is already there
     851                //$paramStr = '?roster_type=' . $options['roster_type'];
     852                $paramStr = '&roster_type=' . $options['roster_type'];
    850853                if ( $teamSlug ) {
    851854                    $paramStr .= "&team=$teamSlug";
    852855                }
    853                 if ( 'custom' == $options['roster_type'] /*&& $last_name == "Havlicek"*/ ) {
     856                if ( 'custom' == $options['roster_type'] ) {
    854857                    $serialArgs = base64_encode( serialize( $options ) );
    855858                    $paramStr .= "&args=$serialArgs";
    856859                }
    857860               
    858                 $player_html = '<a href="' .  get_permalink( $player->ID ) . $paramStr . '" ';
    859                 $player_html .= '>' . $player_name . '</a>';
     861                if ( $last_name == "Roth" ) {
     862                    $nonceURL = wp_nonce_url( get_permalink( $player->ID ), 'single-player', 'mstw-tr-nonce' );
     863                    $nonceURL .= $paramStr;
     864                }
     865               
     866                $nonceURL = wp_nonce_url( get_permalink( $player->ID ), 'single-player', 'mstw-tr-nonce' );
     867                $player_html = '<a href="' . $nonceURL . $paramStr . '">' . $player_name . '</a>';;
     868               
    860869            }
    861870        }
     
    12651274       
    12661275        //for testing only
    1267         //$this -> set_current_team( '' );
     1276        //mstw_tr_set_current_team( '' );
    12681277       
    12691278        $current_team = get_option( 'tr-current-team', '' );
     1279       
     1280        //mstw_log_msg( "mstw_tr_get_current_team: current_team = $current_team" );
    12701281       
    12711282        // We should get a current team, but in case we don't we'll take the
     
    18471858           
    18481859            default:
    1849                 mstw_tr_log_msg( "CONTROL TYPE $type NOT RECOGNIZED." );
     1860                mstw_log_msg( "CONTROL TYPE $type NOT RECOGNIZED." );
    18501861                echo "CONTROL TYPE ", esc_html( $type ), " NOT RECOGNIZED.";
    18511862            break;
     
    20232034       
    20242035    } //End: mstw_tr_build_settings_field()
     2036}
     2037
     2038/*---------------------------------------------------------------------------------*/
     2039//  44. mstw_tr_build_player_link_html:
     2040//      ARGUMENTS:
     2041//      RETURNS  :
     2042// 
     2043if ( !function_exists( 'mstw_tr_build_player_link_html' ) ) {
     2044    function mstw_tr_build_player_link_html( $playerURL, $playerDisplay ) {
     2045        //mstw_log_msg( "mstw_tr_build_player_link_html:" );
     2046       
     2047        $playerHTML = '<a href="' .  $playerURL . '">' . $playerDisplay . '</a>';
     2048       
     2049        return $playerHTML;
     2050       
     2051    } //End: mstw_tr_build_player_link_html( )
     2052}
     2053
     2054/*---------------------------------------------------------------------------------*/
     2055//  45. mstw_tr_build_player_url:
     2056//      ARGUMENTS:
     2057//      RETURNS  :
     2058// 
     2059if ( !function_exists( 'mstw_tr_build_player_url' ) ) {
     2060    function mstw_tr_build_player_url( $postID, $playerID ) {
     2061        //mstw_log_msg( "mstw_tr_build_player_url:" );
     2062       
     2063        $nonceURL = wp_nonce_url( get_permalink( $playerID ), 'single-player', 'mstw-tr-nonce' );
     2064        $nonceURL .= '&position='. $postID;
     2065       
     2066        return $nonceURL;
     2067    } //End: mstw_tr_build_player_url()
    20252068}
    20262069
  • team-rosters/trunk/includes/mstw-utility-functions.php

    r3270053 r3319253  
    2626 * 1. mstw_log_msg - writes debug messages to /wp-content/debug.log
    2727 *                   if the WP_DEBUG settings in wp-config are correct
    28  * 2. mstw_requires_wordpress_version - checks for the right WordPress version
     28 * 2. mstw_requires_wordpress_version - removed from team rosters
    2929 * 3. mstw_safe_ref - prevents uninitialized string errors
    30  * 3.1  mstw_safe_get - Safely get value for a key from an array
     30 * 3.1 mstw_safe_get - Safely get value for a key from an array
     31 * 3.2 mstw_really_safe_get - safely get data from array that makes PCP happy :)
    3132 * 4. mstw_build_css_rule - builds css rules from an array of options
    3233 *                          generally from get_option() without errors
     
    8889//
    8990/*
    90  * Removed from team rosters version
     91 *  Removed from team rosters plugin
    9192 */
    9293
     
    119120    function mstw_safe_get( $needle, $haystack, $default = '' ) {
    120121        //mstw_log_msg( "mstw_safe_get: needle= $needle" haystack= $haystack" );
    121        
     122                                                           
    122123        if ( array_key_exists( $needle, $haystack ) ) {
    123124            return $haystack[ $needle ];
     
    130131    } //End: mstw_safe_get( )
    131132}
     133
     134//--------------------------------------------------------------------------------
     135// 3.2 mstw_really_safe_get - safely get data from array that makes PCP happy :)
     136//          unslashes and sanitizes the array field - used primarily with $_POST and
     137//          $_GET to satisify PCP recommended practices
     138//  ARGUMENTS:
     139//      $needle - a (candidate) array key
     140//      $haystack - an array
     141//      $default - returned if $needle is not (a key) in $haystack
     142//
     143//  RETURNS
     144//      $haystack[ $needle ] if $needle exists as a key. $default otherwise.
     145//
     146if ( !function_exists ( 'mstw_really_safe_get' ) ) {
     147    function mstw_really_safe_get( $needle, $haystack, $default = '' ) {
     148        //mstw_log_msg( "mstw_really_safe_get:" );
     149       
     150        if ( isset( $haystack[ $needle ] ) ) {
     151            return sanitize_text_field( wp_unslash( $haystack[ $needle ] ) );       
     152        }
     153        else {
     154            return $default;
     155           
     156        }
     157
     158    } //End: mstw_really_safe_get( )
     159}
     160
    132161
    133162//------------------------------------------------------------------------------
     
    263292//
    264293/*
    265  * Removed from team rosters version
     294 * Removed from team rosters plugin version
    266295 */
    267296
     
    358387            update_post_meta( $post_id, $key, esc_url( $url ) );
    359388           
    360         } else {
     389        }
     390        else {
    361391            // url is not valid, display an error message (dont' update DB)
    362392            $notice .= ' ' . $url;         
     
    365395            }
    366396        }
    367     } //End: mstw_validate_url( )
     397    } //End: mstw_validate_url()
    368398}
    369399
     
    377407// http://themergency.com/wordpress-tip-get-post-type-in-admin/
    378408//
     409/*
    379410if ( !function_exists( 'mstw_get_current_post_type' ) ) {
    380411    function mstw_get_current_post_type( ) {
     
    393424            *   Processing form data without nonce verification.
    394425            * This utility function is just trying to find a post type??
    395             */
     426           
    396427        elseif( isset( $_REQUEST['post_type'] ) )
    397428            return sanitize_key( $_REQUEST['post_type'] );
     
    402433    } //End: mstw_get_current_post_type( )
    403434}
     435*/
    404436
    405437//-------------------------------------------------------------------------------
  • team-rosters/trunk/js/tr-manage-rosters.js

    r2749375 r3319253  
    55 *
    66 *  MSTW Wordpress Plugins (http://shoalsummitsolutions.com)
    7  *  Copyright 2017-22 Mark O'Donnell ([email protected])
     7 *  Copyright 2017-25 Mark O'Donnell ([email protected])
    88 *
    99 *  This program is distributed in the hope that it will be useful,
     
    1313
    1414jQuery(document).ready( function( $ ) {
    15     //alert( "Doc is ready" );
    1615    //console.log( "Doc is ready" );
    1716   
     
    2019    //
    2120    $( '#current-team' ).change( function( event ) {
    22         //alert( 'tr-manage-rosters.js tourney changed ... id= ' + event.target.id );
    23         //console.log( 'tr-manage-rosters.js tourney changed ... id= ' + event.target.id );
    24         //alert( 'tourney: ' + this.value );
     21        //console.log( 'tr-manage-rosters.js team changed ... id= ' + event.target.id );
    2522       
    2623        var data = {
     
    3128              };
    3229             
    33         jQuery.post( ajaxurl, data, function( response ) {
    34             //alert( 'Got this from the server: ' + response );
     30        jQuery.post( mstw_tr_manage_rosters_ajax.ajaxurl, data, function( response ) {
     31            //console_log( 'Got this from the server: ' + response );
    3532            var object = jQuery.parseJSON( response );
    3633           
     
    3936            }
    4037            else {
    41                 //alert( "Current team updated" );
     38                //console_log( "Current team updated" );
    4239            }
    4340           
  • team-rosters/trunk/js/tr-sort-roster-table.js

    r2832676 r3319253  
    33 *
    44 *  MSTW Wordpress Plugins (http://shoalsummitsolutions.com)
    5  *  Copyright 2020-22 Mark O'Donnell ([email protected])
     5 *  Copyright 2020-25 Mark O'Donnell ([email protected])
    66 *
    77 *  This program is free software: you can redistribute it and/or modify
  • team-rosters/trunk/js/tr-team-roster-2-ajax.js

    r2767507 r3319253  
    11// tr-team-roster-2-ajax.js
    22// JavaScript to sort team roster - mstw-tr-roster-2 shortcode (mstw-tr-roster-tables-class.php)
    3 //
     3/*
     4 *  MSTW Wordpress Plugins (http://shoalsummitsolutions.com)
     5 *  Copyright 2017-25 Mark O'Donnell ([email protected])
     6 *
     7 *  This program is distributed in the hope that it will be useful,
     8 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     9 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     10 */
    411
    512jQuery(document).ready( function( $ ) {
  • team-rosters/trunk/lang/team-rosters.pot

    r3240856 r3319253  
    33msgstr ""
    44"Project-Id-Version: MSTW Team Rosters\n"
    5 "POT-Creation-Date: 2025-02-14 15:58-0600\n"
     5"POT-Creation-Date: 2025-06-24 22:11-0500\n"
    66"PO-Revision-Date: 2025-02-14 15:57-0600\n"
    77"Last-Translator: \n"
     
    1111"Content-Transfer-Encoding: 8bit\n"
    1212"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
    13 "X-Generator: Poedit 3.5\n"
     13"X-Generator: Poedit 3.6\n"
    1414"X-Poedit-Basepath: ..\n"
    1515"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
    1616"X-Poedit-WPHeader: mstw-team-rosters.php\n"
    1717"X-Poedit-SourceCharset: UTF-8\n"
    18 "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
    19 "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
    20 "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
     18"X-Poedit-KeywordsList: "
     19"__;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
    2120"X-Poedit-SearchPath-0: .\n"
    2221"X-Poedit-SearchPathExcluded-0: *.min.js\n"
     
    2625msgstr ""
    2726
    28 #: includes/mstw-tr-admin.php:390 includes/mstw-tr-admin.php:391
     27#. Plugin Name of the plugin/theme
     28#: includes/mstw-tr-admin.php:359 includes/mstw-tr-admin.php:360
    2929msgid "Team Rosters"
    3030msgstr ""
    3131
    32 #: includes/mstw-tr-admin.php:408 includes/mstw-tr-admin.php:409
    33 #: includes/mstw-tr-cpts.php:120 includes/mstw-tr-csv-import-class.php:96
    34 #: includes/mstw-tr-team-tax-admin-class.php:394
     32#: includes/mstw-tr-admin.php:377 includes/mstw-tr-admin.php:378
     33#: includes/mstw-tr-cpts.php:120 includes/mstw-tr-csv-import-class.php:98
     34#: includes/mstw-tr-team-tax-admin-class.php:385
    3535msgid "Teams"
    3636msgstr ""
    3737
    38 #: includes/mstw-tr-admin.php:429
     38#: includes/mstw-tr-admin.php:398
    3939msgid "All Players"
    4040msgstr ""
    4141
    42 #: includes/mstw-tr-admin.php:430 includes/mstw-tr-player-cpt-admin.php:631
     42#: includes/mstw-tr-admin.php:399 includes/mstw-tr-player-cpt-admin.php:639
    4343msgid "Manage Players"
    4444msgstr ""
    4545
    46 #: includes/mstw-tr-admin.php:452
    47 #: includes/mstw-tr-team-roster-admin-class.php:233
    48 #: includes/mstw-tr-team-roster-admin-class.php:709
     46#: includes/mstw-tr-admin.php:421
     47#: includes/mstw-tr-team-roster-admin-class.php:226
     48#: includes/mstw-tr-team-roster-admin-class.php:693
    4949msgid "Add Players"
    5050msgstr ""
    5151
    52 #: includes/mstw-tr-admin.php:453
     52#: includes/mstw-tr-admin.php:422
    5353msgid "Add Players to Rosters"
    5454msgstr ""
    5555
    56 #: includes/mstw-tr-admin.php:467 includes/mstw-tr-admin.php:468
     56#: includes/mstw-tr-admin.php:436 includes/mstw-tr-admin.php:437
    5757msgid "Edit Rosters"
    5858msgstr ""
    5959
    60 #: includes/mstw-tr-admin.php:487 includes/mstw-tr-admin.php:488
     60#: includes/mstw-tr-admin.php:456 includes/mstw-tr-admin.php:457
    6161msgid "Settings"
    6262msgstr ""
    6363
    64 #: includes/mstw-tr-admin.php:566 includes/mstw-tr-admin.php:569
     64#: includes/mstw-tr-admin.php:512 includes/mstw-tr-admin.php:515
    6565msgid "Player updated."
    6666msgstr ""
    6767
    68 #: includes/mstw-tr-admin.php:567
     68#: includes/mstw-tr-admin.php:513
    6969msgid "Custom field updated."
    7070msgstr ""
    7171
    72 #: includes/mstw-tr-admin.php:568
     72#: includes/mstw-tr-admin.php:514
    7373msgid "Custom field deleted."
    7474msgstr ""
    7575
    76 #: includes/mstw-tr-admin.php:570
     76#: includes/mstw-tr-admin.php:516
    7777msgid "Player restored to revision"
    7878msgstr ""
    7979
    80 #: includes/mstw-tr-admin.php:571
     80#: includes/mstw-tr-admin.php:517
    8181msgid "Player published."
    8282msgstr ""
    8383
    84 #: includes/mstw-tr-admin.php:572
     84#: includes/mstw-tr-admin.php:518
    8585msgid "Player saved."
    8686msgstr ""
    8787
    88 #: includes/mstw-tr-admin.php:573
     88#: includes/mstw-tr-admin.php:519
    8989msgid "Player submitted."
    9090msgstr ""
    9191
    92 #: includes/mstw-tr-admin.php:574
     92#: includes/mstw-tr-admin.php:520
    9393msgid "Player scheduled for publication."
    9494msgstr ""
    9595
    96 #: includes/mstw-tr-admin.php:575
     96#: includes/mstw-tr-admin.php:521
    9797msgid "Player draft updated."
    9898msgstr ""
    9999
    100100#. translators: %s: count of players updated
    101 #: includes/mstw-tr-admin.php:591
     101#: includes/mstw-tr-admin.php:537
    102102#, php-format
    103103msgid "%s player updated."
     
    107107
    108108#. translators: %s: count of players deleted
    109 #: includes/mstw-tr-admin.php:593
     109#: includes/mstw-tr-admin.php:539
    110110#, php-format
    111111msgid "%s player not updated, somebody is editing it."
     
    115115
    116116#. translators: %s: count of players deleted
    117 #: includes/mstw-tr-admin.php:595
     117#: includes/mstw-tr-admin.php:541
    118118#, php-format
    119119msgid "%s player permanently deleted."
     
    123123
    124124#. translators: %s: count of players moved to trash
    125 #: includes/mstw-tr-admin.php:597
     125#: includes/mstw-tr-admin.php:543
    126126#, php-format
    127127msgid "%s player moved to the Trash."
     
    131131
    132132#. translators: %s: count of players restored from trash
    133 #: includes/mstw-tr-admin.php:599
     133#: includes/mstw-tr-admin.php:545
    134134#, php-format
    135135msgid "%s player restored from the Trash."
     
    138138msgstr[1] ""
    139139
    140 #: includes/mstw-tr-admin.php:617
     140#: includes/mstw-tr-admin.php:563
    141141msgid "Team added."
    142142msgstr ""
    143143
    144 #: includes/mstw-tr-admin.php:618
     144#: includes/mstw-tr-admin.php:564
    145145msgid "Team deleted."
    146146msgstr ""
    147147
    148 #: includes/mstw-tr-admin.php:619
     148#: includes/mstw-tr-admin.php:565
    149149msgid "Team updated."
    150150msgstr ""
    151151
    152 #: includes/mstw-tr-admin.php:620
     152#: includes/mstw-tr-admin.php:566
    153153msgid "Team not added."
    154154msgstr ""
    155155
    156 #: includes/mstw-tr-admin.php:621
     156#: includes/mstw-tr-admin.php:567
    157157msgid "Team not updated."
    158158msgstr ""
    159159
    160 #: includes/mstw-tr-admin.php:622
     160#: includes/mstw-tr-admin.php:568
    161161msgid "Teams deleted."
    162162msgstr ""
    163163
    164 #: includes/mstw-tr-admin.php:679 mstw-team-rosters.php:764
     164#: includes/mstw-tr-admin.php:620 mstw-team-rosters.php:750
    165165msgid "AJAX Error: invalid action."
    166166msgstr ""
    167167
    168 #: includes/mstw-tr-admin.php:685 mstw-team-rosters.php:769
     168#: includes/mstw-tr-admin.php:626 mstw-team-rosters.php:756
    169169msgid "AJAX Error: no action found."
    170170msgstr ""
    171171
    172 #: includes/mstw-tr-admin.php:726 includes/mstw-tr-admin.php:766
     172#: includes/mstw-tr-admin.php:670 includes/mstw-tr-admin.php:710
    173173msgid "AJAX Error: No league provided to handler."
    174174msgstr ""
    175175
    176 #: includes/mstw-tr-admin.php:874
     176#: includes/mstw-tr-admin.php:772
     177msgid "fatal error encountered in team rosters"
     178msgstr ""
     179
     180#: includes/mstw-tr-admin.php:776
     181msgid "fatal error encountered in team Rosters"
     182msgstr ""
     183
     184#: includes/mstw-tr-admin.php:818
    177185msgid "Team Rosters - Quick Start"
    178186msgstr ""
    179187
    180 #: includes/mstw-tr-admin.php:877
     188#: includes/mstw-tr-admin.php:821
    181189msgid ""
    182190"At least one team must exist before anything can be displayed via the "
     
    185193msgstr ""
    186194
    187 #: includes/mstw-tr-admin.php:878
     195#: includes/mstw-tr-admin.php:822
    188196msgid ""
    189197"After creating one or more teams, players must be added to them. Players may "
     
    192200msgstr ""
    193201
    194 #: includes/mstw-tr-admin.php:879
     202#: includes/mstw-tr-admin.php:823
    195203msgid ""
    196204"Multiple players may be added to a roster via this screen. While the same "
     
    199207msgstr ""
    200208
    201 #: includes/mstw-tr-admin.php:880
     209#: includes/mstw-tr-admin.php:824
    202210msgid ""
    203211"Entire rosters may be edited or updated via this screen. While the same data "
     
    206214msgstr ""
    207215
    208 #: includes/mstw-tr-admin.php:881
     216#: includes/mstw-tr-admin.php:825
    209217msgid ""
    210218"Provides a rich set of controls for ROSTER TABLES, ROSTER GALLERIES, and "
     
    212220msgstr ""
    213221
    214 #: includes/mstw-tr-admin.php:882
     222#: includes/mstw-tr-admin.php:826
    215223msgid ""
    216224"Provides the ability to upload Teams and Players (including player photos) "
     
    220228msgstr ""
    221229
    222 #: includes/mstw-tr-admin.php:890
     230#: includes/mstw-tr-admin.php:834
    223231#, php-format
    224232msgid ""
     
    232240
    233241#: includes/mstw-tr-cpts.php:39 includes/mstw-tr-cpts.php:84
    234 #: includes/mstw-tr-cpts.php:86 includes/mstw-tr-csv-import-class.php:145
    235 #: includes/mstw-tr-team-tax-admin-class.php:225
     242#: includes/mstw-tr-cpts.php:86 includes/mstw-tr-csv-import-class.php:141
     243#: includes/mstw-tr-team-tax-admin-class.php:226
    236244msgid "Players"
    237245msgstr ""
     
    293301msgstr ""
    294302
    295 #: includes/mstw-tr-cpts.php:112 includes/mstw-tr-team-tax-admin-class.php:399
     303#: includes/mstw-tr-cpts.php:112 includes/mstw-tr-team-tax-admin-class.php:390
    296304msgid "Edit Team"
    297305msgstr ""
     
    325333msgstr ""
    326334
    327 #: includes/mstw-tr-csv-import-class.php:86
     335#: includes/mstw-tr-csv-import-class.php:87
    328336msgid "Import CSV Files"
    329337msgstr ""
    330338
    331 #: includes/mstw-tr-csv-import-class.php:89
    332 #: includes/mstw-tr-team-roster-admin-class.php:127
     339#: includes/mstw-tr-csv-import-class.php:90
     340#: includes/mstw-tr-team-roster-admin-class.php:131
    333341msgid "Read the contextual help tab on the top right of this screen."
    334342msgstr ""
    335343
    336 #: includes/mstw-tr-csv-import-class.php:99
     344#: includes/mstw-tr-csv-import-class.php:101
    337345msgid "Teams CSV file:"
    338346msgstr ""
    339347
    340 #: includes/mstw-tr-csv-import-class.php:106
    341 #: includes/mstw-tr-csv-import-class.php:236
     348#: includes/mstw-tr-csv-import-class.php:108
     349#: includes/mstw-tr-csv-import-class.php:231
    342350msgid "Import Teams"
    343351msgstr ""
    344352
    345353#. translators: %1s: HTML newline that should not be translated
    346 #: includes/mstw-tr-csv-import-class.php:149
     354#: includes/mstw-tr-csv-import-class.php:145
    347355#, php-format
    348356msgid ""
     
    354362msgstr ""
    355363
    356 #: includes/mstw-tr-csv-import-class.php:155
     364#: includes/mstw-tr-csv-import-class.php:151
    357365msgid "Select Team to Import:"
    358366msgstr ""
    359367
    360 #: includes/mstw-tr-csv-import-class.php:158
     368#: includes/mstw-tr-csv-import-class.php:154
    361369msgid ""
    362370"This team will be used as the default if there is no entry for a player in "
     
    364372msgstr ""
    365373
    366 #: includes/mstw-tr-csv-import-class.php:162
     374#: includes/mstw-tr-csv-import-class.php:158
    367375msgid "Move Player Photos:"
    368376msgstr ""
    369377
    370 #: includes/mstw-tr-csv-import-class.php:165
     378#: includes/mstw-tr-csv-import-class.php:161
    371379msgid ""
    372380"If checked, photo files will be imported from their current locations to the "
     
    375383msgstr ""
    376384
    377 #: includes/mstw-tr-csv-import-class.php:169
     385#: includes/mstw-tr-csv-import-class.php:165
    378386msgid "Players CSV file:"
    379387msgstr ""
    380388
    381 #: includes/mstw-tr-csv-import-class.php:172
     389#: includes/mstw-tr-csv-import-class.php:168
    382390msgid "Select the CSV players file to import."
    383391msgstr ""
    384392
    385 #: includes/mstw-tr-csv-import-class.php:239
     393#: includes/mstw-tr-csv-import-class.php:237
     394#: includes/mstw-tr-csv-import-class.php:242
     395#: includes/mstw-tr-csv-import-class.php:261
     396#: includes/mstw-tr-csv-import-class.php:267
     397msgid "Problem encountered with CSV file. Exiting."
     398msgstr ""
     399
     400#: includes/mstw-tr-csv-import-class.php:250
    386401msgid "team"
    387402msgstr ""
    388403
    389 #: includes/mstw-tr-csv-import-class.php:239
     404#: includes/mstw-tr-csv-import-class.php:250
    390405msgid "teams"
    391406msgstr ""
    392407
    393 #: includes/mstw-tr-csv-import-class.php:242
    394 #: includes/mstw-tr-csv-import-class.php:354
     408#: includes/mstw-tr-csv-import-class.php:253
     409#: includes/mstw-tr-csv-import-class.php:391
    395410msgid "Import Players"
    396411msgstr ""
    397412
    398 #: includes/mstw-tr-csv-import-class.php:245
     413#: includes/mstw-tr-csv-import-class.php:275
    399414msgid "player"
    400415msgstr ""
    401416
    402 #: includes/mstw-tr-csv-import-class.php:245
     417#: includes/mstw-tr-csv-import-class.php:275
    403418msgid "players"
    404419msgstr ""
    405420
    406421#. translators: %s: filename
    407 #: includes/mstw-tr-csv-import-class.php:271
     422#: includes/mstw-tr-csv-import-class.php:305
    408423#, php-format
    409424msgid "Failed to load file %s, aborting."
     
    411426
    412427#. translators: %1$s 'record' or 'records' skipped %
    413 #: includes/mstw-tr-csv-import-class.php:326
     428#: includes/mstw-tr-csv-import-class.php:363
    414429#, php-format
    415430msgid "Skipped %1$s record."
     
    419434
    420435#. translators: %1$s/%2$s 'record' or 'records' processed
    421 #: includes/mstw-tr-csv-import-class.php:335
     436#: includes/mstw-tr-csv-import-class.php:371
    422437#, php-format
    423438msgid "Imported %1$s record in %2$.2f seconds."
     
    426441msgstr[1] ""
    427442
    428 #: includes/mstw-tr-csv-import-class.php:378
     443#: includes/mstw-tr-csv-import-class.php:415
    429444msgid "No first or last name."
    430445msgstr ""
    431446
    432 #: includes/mstw-tr-csv-import-class.php:384
     447#: includes/mstw-tr-csv-import-class.php:421
    433448msgid "No title imported"
    434449msgstr ""
    435450
    436451#. translators: %s: import type
    437 #: includes/mstw-tr-csv-import-class.php:392
     452#: includes/mstw-tr-csv-import-class.php:429
    438453#, php-format
    439454msgid "Unknown import type \"%s\"."
    440455msgstr ""
    441456
    442 #: includes/mstw-tr-csv-import-class.php:433
    443 #: includes/mstw-tr-csv-import-class.php:446
    444 #: includes/mstw-tr-player-cpt-admin.php:119
    445 #: includes/mstw-tr-player-cpt-admin.php:125
    446 msgid "----"
    447 msgstr ""
    448 
    449 #: includes/mstw-tr-csv-import-class.php:435
    450 #: includes/mstw-tr-csv-import-class.php:448
     457#: includes/mstw-tr-csv-import-class.php:470
     458#: includes/mstw-tr-csv-import-class.php:483
    451459#: includes/mstw-tr-player-cpt-admin.php:120
    452460#: includes/mstw-tr-player-cpt-admin.php:126
    453 #: includes/mstw-tr-roster-tables-class.php:412
    454 #: includes/mstw-tr-utility-functions.php:919
    455 #: includes/mstw-tr-utility-functions.php:920
    456 msgid "R"
    457 msgstr ""
    458 
    459 #: includes/mstw-tr-csv-import-class.php:436
    460 #: includes/mstw-tr-csv-import-class.php:449
    461 msgid "r"
    462 msgstr ""
    463 
    464 #: includes/mstw-tr-csv-import-class.php:438
    465 #: includes/mstw-tr-csv-import-class.php:451
     461msgid "----"
     462msgstr ""
     463
     464#: includes/mstw-tr-csv-import-class.php:472
     465#: includes/mstw-tr-csv-import-class.php:485
    466466#: includes/mstw-tr-player-cpt-admin.php:121
    467467#: includes/mstw-tr-player-cpt-admin.php:127
     468#: includes/mstw-tr-roster-tables-class.php:411
     469#: includes/mstw-tr-utility-functions.php:920
     470#: includes/mstw-tr-utility-functions.php:921
     471msgid "R"
     472msgstr ""
     473
     474#: includes/mstw-tr-csv-import-class.php:473
     475#: includes/mstw-tr-csv-import-class.php:486
     476msgid "r"
     477msgstr ""
     478
     479#: includes/mstw-tr-csv-import-class.php:475
     480#: includes/mstw-tr-csv-import-class.php:488
     481#: includes/mstw-tr-player-cpt-admin.php:122
     482#: includes/mstw-tr-player-cpt-admin.php:128
     483#: includes/mstw-tr-roster-tables-class.php:412
     484#: includes/mstw-tr-utility-functions.php:924
     485#: includes/mstw-tr-utility-functions.php:925
     486msgid "L"
     487msgstr ""
     488
     489#: includes/mstw-tr-csv-import-class.php:476
     490#: includes/mstw-tr-csv-import-class.php:489
     491msgid "l"
     492msgstr ""
     493
     494#: includes/mstw-tr-csv-import-class.php:478
     495#: includes/mstw-tr-player-cpt-admin.php:123
    468496#: includes/mstw-tr-roster-tables-class.php:413
    469 #: includes/mstw-tr-utility-functions.php:923
    470 #: includes/mstw-tr-utility-functions.php:924
    471 msgid "L"
    472 msgstr ""
    473 
    474 #: includes/mstw-tr-csv-import-class.php:439
    475 #: includes/mstw-tr-csv-import-class.php:452
    476 msgid "l"
    477 msgstr ""
    478 
    479 #: includes/mstw-tr-csv-import-class.php:441
    480 #: includes/mstw-tr-player-cpt-admin.php:122
    481 #: includes/mstw-tr-roster-tables-class.php:414
    482 #: includes/mstw-tr-utility-functions.php:927
    483497#: includes/mstw-tr-utility-functions.php:928
     498#: includes/mstw-tr-utility-functions.php:929
    484499msgid "B"
    485500msgstr ""
    486501
    487 #: includes/mstw-tr-csv-import-class.php:442
     502#: includes/mstw-tr-csv-import-class.php:479
    488503msgid "b"
    489504msgstr ""
    490505
    491 #: includes/mstw-tr-csv-import-class.php:675
     506#: includes/mstw-tr-csv-import-class.php:715
    492507msgid "No team name or slug found."
    493508msgstr ""
    494509
     510#: includes/mstw-tr-csv-import-class.php:771
     511#: includes/mstw-tr-csv-import-class.php:778
     512msgid "Failed to get file contents."
     513msgstr ""
     514
    495515#. translators: %s: filename
    496 #: includes/mstw-tr-csv-import-class.php:750
     516#: includes/mstw-tr-csv-import-class.php:792
    497517#, php-format
    498518msgid "Failed to open file: %s."
    499519msgstr ""
    500520
    501 #: includes/mstw-tr-csv-import-class.php:775
     521#: includes/mstw-tr-csv-import-class.php:817
    502522msgid "CSV Import"
    503523msgstr ""
    504524
    505 #: includes/mstw-tr-csv-import-class.php:790
     525#: includes/mstw-tr-csv-import-class.php:832
    506526msgid ""
    507527"This screen allows the import of teams and players from files in CSV format. "
     
    509529msgstr ""
    510530
    511 #: includes/mstw-tr-csv-import-class.php:792
     531#: includes/mstw-tr-csv-import-class.php:834
    512532msgid "To import teams, simply choose the CSV file and click \"Import Teams\"."
    513533msgstr ""
    514534
    515 #: includes/mstw-tr-csv-import-class.php:794
     535#: includes/mstw-tr-csv-import-class.php:836
    516536msgid ""
    517537"To import players, first select the CSV file containing the players, then "
     
    519539msgstr ""
    520540
    521 #: includes/mstw-tr-csv-import-class.php:797
     541#: includes/mstw-tr-csv-import-class.php:839
    522542msgid "Select an existing team. Players will be addeded to that team."
    523543msgstr ""
    524544
    525 #: includes/mstw-tr-csv-import-class.php:798
     545#: includes/mstw-tr-csv-import-class.php:840
    526546msgid ""
    527547"Don't elect an existing team, and provide the team(s) in the player_teams "
     
    530550msgstr ""
    531551
    532 #: includes/mstw-tr-csv-import-class.php:799
     552#: includes/mstw-tr-csv-import-class.php:841
    533553msgid ""
    534554"Choose whether you want the player photos (provided in the CSV file) to be "
     
    539559msgstr ""
    540560
    541 #: includes/mstw-tr-csv-import-class.php:802
     561#: includes/mstw-tr-csv-import-class.php:844
    542562msgid ""
    543563"NOTE THAT IT CAN TAKE A SIGNFICANT AMOUNT OF TIME TO IMPORT PLAYERS. In "
     
    546566msgstr ""
    547567
    548 #: includes/mstw-tr-csv-import-class.php:804
     568#: includes/mstw-tr-csv-import-class.php:846
    549569msgid "See the plugin Users Manual on shoalsummitsolutions.com"
    550570msgstr ""
    551571
    552 #: includes/mstw-tr-data-fields-columns-settings.php:46
     572#: includes/mstw-tr-data-fields-columns-settings.php:44
    553573msgid "Data Fields Labels"
    554574msgstr ""
    555575
    556 #: includes/mstw-tr-data-fields-columns-settings.php:60
     576#: includes/mstw-tr-data-fields-columns-settings.php:58
    557577msgid "Photo Label:"
    558578msgstr ""
    559579
    560 #: includes/mstw-tr-data-fields-columns-settings.php:61
     580#: includes/mstw-tr-data-fields-columns-settings.php:59
    561581msgid "(Default: Photo)"
    562582msgstr ""
    563583
    564 #: includes/mstw-tr-data-fields-columns-settings.php:71
     584#: includes/mstw-tr-data-fields-columns-settings.php:69
    565585msgid "Name Label:"
    566586msgstr ""
    567587
    568 #: includes/mstw-tr-data-fields-columns-settings.php:72
     588#: includes/mstw-tr-data-fields-columns-settings.php:70
    569589msgid "(Default: Name)"
    570590msgstr ""
    571591
    572 #: includes/mstw-tr-data-fields-columns-settings.php:82
     592#: includes/mstw-tr-data-fields-columns-settings.php:80
    573593msgid "Number Label:"
    574594msgstr ""
    575595
    576 #: includes/mstw-tr-data-fields-columns-settings.php:83
     596#: includes/mstw-tr-data-fields-columns-settings.php:81
    577597msgid "(Default: Nbr)"
    578598msgstr ""
    579599
    580 #: includes/mstw-tr-data-fields-columns-settings.php:93
     600#: includes/mstw-tr-data-fields-columns-settings.php:91
    581601msgid "Position Label:"
    582602msgstr ""
    583603
    584 #: includes/mstw-tr-data-fields-columns-settings.php:94
     604#: includes/mstw-tr-data-fields-columns-settings.php:92
    585605msgid "(Default: Pos)"
    586606msgstr ""
    587607
    588 #: includes/mstw-tr-data-fields-columns-settings.php:104
     608#: includes/mstw-tr-data-fields-columns-settings.php:102
    589609msgid "Height Label:"
    590610msgstr ""
    591611
    592 #: includes/mstw-tr-data-fields-columns-settings.php:105
     612#: includes/mstw-tr-data-fields-columns-settings.php:103
    593613msgid "(Default: Ht)"
    594614msgstr ""
    595615
    596 #: includes/mstw-tr-data-fields-columns-settings.php:115
     616#: includes/mstw-tr-data-fields-columns-settings.php:113
    597617msgid "Weight Label:"
    598618msgstr ""
    599619
    600 #: includes/mstw-tr-data-fields-columns-settings.php:116
     620#: includes/mstw-tr-data-fields-columns-settings.php:114
    601621msgid "(Default: Wt)"
    602622msgstr ""
    603623
    604 #: includes/mstw-tr-data-fields-columns-settings.php:126
     624#: includes/mstw-tr-data-fields-columns-settings.php:124
    605625msgid "Year Label:"
    606626msgstr ""
    607627
    608 #: includes/mstw-tr-data-fields-columns-settings.php:127
     628#: includes/mstw-tr-data-fields-columns-settings.php:125
    609629msgid "(Default: Year)"
    610630msgstr ""
    611631
    612 #: includes/mstw-tr-data-fields-columns-settings.php:137
     632#: includes/mstw-tr-data-fields-columns-settings.php:135
    613633msgid "Experience Label:"
    614634msgstr ""
    615635
    616 #: includes/mstw-tr-data-fields-columns-settings.php:138
     636#: includes/mstw-tr-data-fields-columns-settings.php:136
    617637msgid "(Default: Exp)"
    618638msgstr ""
    619639
    620 #: includes/mstw-tr-data-fields-columns-settings.php:148
     640#: includes/mstw-tr-data-fields-columns-settings.php:146
    621641msgid "Age Label:"
    622642msgstr ""
    623643
    624 #: includes/mstw-tr-data-fields-columns-settings.php:149
     644#: includes/mstw-tr-data-fields-columns-settings.php:147
    625645msgid "(Default: Age)"
    626646msgstr ""
    627647
    628 #: includes/mstw-tr-data-fields-columns-settings.php:159
     648#: includes/mstw-tr-data-fields-columns-settings.php:157
    629649msgid "Home Town Label:"
    630650msgstr ""
    631651
    632 #: includes/mstw-tr-data-fields-columns-settings.php:160
     652#: includes/mstw-tr-data-fields-columns-settings.php:158
    633653msgid "(Default: Home Town)"
    634654msgstr ""
    635655
    636 #: includes/mstw-tr-data-fields-columns-settings.php:170
     656#: includes/mstw-tr-data-fields-columns-settings.php:168
    637657msgid "Last School Label:"
    638658msgstr ""
    639659
    640 #: includes/mstw-tr-data-fields-columns-settings.php:171
     660#: includes/mstw-tr-data-fields-columns-settings.php:169
    641661msgid "(Default: Last School)"
    642662msgstr ""
    643663
    644 #: includes/mstw-tr-data-fields-columns-settings.php:181
     664#: includes/mstw-tr-data-fields-columns-settings.php:179
    645665msgid "Country Label:"
    646666msgstr ""
    647667
    648 #: includes/mstw-tr-data-fields-columns-settings.php:182
     668#: includes/mstw-tr-data-fields-columns-settings.php:180
    649669msgid "(Default: Country)"
    650670msgstr ""
    651671
    652 #: includes/mstw-tr-data-fields-columns-settings.php:192
     672#: includes/mstw-tr-data-fields-columns-settings.php:190
    653673msgid "Bats/Throws Label:"
    654674msgstr ""
    655675
    656 #: includes/mstw-tr-data-fields-columns-settings.php:193
     676#: includes/mstw-tr-data-fields-columns-settings.php:191
    657677msgid "(Default: Bat/Thw)"
    658678msgstr ""
    659679
    660 #: includes/mstw-tr-data-fields-columns-settings.php:203
     680#: includes/mstw-tr-data-fields-columns-settings.php:201
    661681msgid "Other Info Label:"
    662682msgstr ""
    663683
    664 #: includes/mstw-tr-data-fields-columns-settings.php:204
     684#: includes/mstw-tr-data-fields-columns-settings.php:202
    665685msgid "(Default: Other)"
    666686msgstr ""
    667687
    668 #: includes/mstw-tr-data-fields-columns-settings.php:225
     688#: includes/mstw-tr-data-fields-columns-settings.php:223
    669689msgid "Visibility"
    670690msgstr ""
    671691
    672 #: includes/mstw-tr-data-fields-columns-settings.php:239
    673 #: includes/mstw-tr-data-fields-columns-settings.php:305
    674 #: includes/mstw-tr-data-fields-columns-settings.php:316
    675 #: includes/mstw-tr-data-fields-columns-settings.php:327
    676 #: includes/mstw-tr-data-fields-columns-settings.php:338
    677 #: includes/mstw-tr-data-fields-columns-settings.php:349
    678 #: includes/mstw-tr-data-fields-columns-settings.php:360
    679 #: includes/mstw-tr-data-fields-columns-settings.php:371
    680 #: includes/mstw-tr-data-fields-columns-settings.php:382
     692#: includes/mstw-tr-data-fields-columns-settings.php:237
     693#: includes/mstw-tr-data-fields-columns-settings.php:303
     694#: includes/mstw-tr-data-fields-columns-settings.php:314
     695#: includes/mstw-tr-data-fields-columns-settings.php:325
     696#: includes/mstw-tr-data-fields-columns-settings.php:336
     697#: includes/mstw-tr-data-fields-columns-settings.php:347
     698#: includes/mstw-tr-data-fields-columns-settings.php:358
     699#: includes/mstw-tr-data-fields-columns-settings.php:369
     700#: includes/mstw-tr-data-fields-columns-settings.php:380
    681701msgid "(Default: Hide)"
    682702msgstr ""
    683703
    684 #: includes/mstw-tr-data-fields-columns-settings.php:250
     704#: includes/mstw-tr-data-fields-columns-settings.php:248
    685705msgid "(Always shown.)"
    686706msgstr ""
    687707
    688 #: includes/mstw-tr-data-fields-columns-settings.php:261
    689 #: includes/mstw-tr-data-fields-columns-settings.php:272
    690 #: includes/mstw-tr-data-fields-columns-settings.php:283
    691 #: includes/mstw-tr-data-fields-columns-settings.php:294
     708#: includes/mstw-tr-data-fields-columns-settings.php:259
     709#: includes/mstw-tr-data-fields-columns-settings.php:270
     710#: includes/mstw-tr-data-fields-columns-settings.php:281
     711#: includes/mstw-tr-data-fields-columns-settings.php:292
    692712msgid "(Default: Show)"
    693713msgstr ""
    694714
    695 #: includes/mstw-tr-data-fields-columns-settings.php:403
     715#: includes/mstw-tr-data-fields-columns-settings.php:401
    696716msgid "Order"
    697717msgstr ""
    698718
    699 #: includes/mstw-tr-data-fields-columns-settings.php:417
     719#: includes/mstw-tr-data-fields-columns-settings.php:415
    700720msgid "(Default: 1)"
    701721msgstr ""
    702722
    703 #: includes/mstw-tr-data-fields-columns-settings.php:428
     723#: includes/mstw-tr-data-fields-columns-settings.php:426
    704724msgid "(Default: 2)"
    705725msgstr ""
    706726
    707 #: includes/mstw-tr-data-fields-columns-settings.php:439
     727#: includes/mstw-tr-data-fields-columns-settings.php:437
    708728msgid "(Default: 3)"
    709729msgstr ""
    710730
    711 #: includes/mstw-tr-data-fields-columns-settings.php:450
     731#: includes/mstw-tr-data-fields-columns-settings.php:448
    712732msgid "(Default: 4)"
    713733msgstr ""
    714734
    715 #: includes/mstw-tr-data-fields-columns-settings.php:461
     735#: includes/mstw-tr-data-fields-columns-settings.php:459
    716736msgid "(Default: 5)"
    717737msgstr ""
    718738
    719 #: includes/mstw-tr-data-fields-columns-settings.php:472
     739#: includes/mstw-tr-data-fields-columns-settings.php:470
    720740msgid "(Default: 6)"
    721741msgstr ""
    722742
    723 #: includes/mstw-tr-data-fields-columns-settings.php:483
     743#: includes/mstw-tr-data-fields-columns-settings.php:481
    724744msgid "(Default: 7)"
    725745msgstr ""
    726746
    727 #: includes/mstw-tr-data-fields-columns-settings.php:494
     747#: includes/mstw-tr-data-fields-columns-settings.php:492
    728748msgid "(Default: 8)"
    729749msgstr ""
    730750
    731 #: includes/mstw-tr-data-fields-columns-settings.php:505
     751#: includes/mstw-tr-data-fields-columns-settings.php:503
    732752msgid "(Default: 9)"
    733753msgstr ""
    734754
    735 #: includes/mstw-tr-data-fields-columns-settings.php:516
     755#: includes/mstw-tr-data-fields-columns-settings.php:514
    736756msgid "(Default: 10)"
    737757msgstr ""
    738758
    739 #: includes/mstw-tr-data-fields-columns-settings.php:527
     759#: includes/mstw-tr-data-fields-columns-settings.php:525
    740760msgid "(Default: 11)"
    741761msgstr ""
    742762
    743 #: includes/mstw-tr-data-fields-columns-settings.php:538
     763#: includes/mstw-tr-data-fields-columns-settings.php:536
    744764msgid "(Default: 12)"
    745765msgstr ""
    746766
    747 #: includes/mstw-tr-data-fields-columns-settings.php:549
     767#: includes/mstw-tr-data-fields-columns-settings.php:547
    748768msgid "(Default: 13)"
    749769msgstr ""
    750770
    751 #: includes/mstw-tr-data-fields-columns-settings.php:560
     771#: includes/mstw-tr-data-fields-columns-settings.php:558
    752772msgid "(Default: 14)"
    753773msgstr ""
    754774
    755 #: includes/mstw-tr-data-fields-columns-settings.php:578
    756 msgid "Field Labels. "
    757 msgstr ""
    758 
    759 #: includes/mstw-tr-player-cpt-admin.php:38
     775#: includes/mstw-tr-player-cpt-admin.php:39
    760776msgid "Player Bio:"
    761777msgstr ""
    762778
    763 #: includes/mstw-tr-player-cpt-admin.php:52
     779#: includes/mstw-tr-player-cpt-admin.php:55
    764780msgid "Player Photo"
    765781msgstr ""
    766782
    767 #: includes/mstw-tr-player-cpt-admin.php:76
     783#: includes/mstw-tr-player-cpt-admin.php:79
    768784msgid "Set featured image"
    769785msgstr ""
    770786
    771 #: includes/mstw-tr-player-cpt-admin.php:76
     787#: includes/mstw-tr-player-cpt-admin.php:79
    772788msgid "Set Player Photo"
    773789msgstr ""
    774790
    775 #: includes/mstw-tr-player-cpt-admin.php:78
     791#: includes/mstw-tr-player-cpt-admin.php:81
    776792msgid "Remove featured image"
    777793msgstr ""
    778794
    779 #: includes/mstw-tr-player-cpt-admin.php:78
     795#: includes/mstw-tr-player-cpt-admin.php:81
    780796msgid "Remove Player Photo"
    781797msgstr ""
    782798
    783 #: includes/mstw-tr-player-cpt-admin.php:93
     799#: includes/mstw-tr-player-cpt-admin.php:96
    784800msgid "Player Data"
    785801msgstr ""
    786802
    787 #: includes/mstw-tr-player-cpt-admin.php:177
     803#: includes/mstw-tr-player-cpt-admin.php:178
    788804msgid "First Name:"
    789805msgstr ""
    790806
    791 #: includes/mstw-tr-player-cpt-admin.php:185
     807#: includes/mstw-tr-player-cpt-admin.php:186
    792808msgid "Last Name:"
    793809msgstr ""
    794810
    795 #: includes/mstw-tr-player-cpt-admin.php:236
     811#: includes/mstw-tr-player-cpt-admin.php:237
    796812msgid ""
    797813"This field is intended for the player's year in school, for example, \"So\", "
     
    800816msgstr ""
    801817
    802 #: includes/mstw-tr-player-cpt-admin.php:244
     818#: includes/mstw-tr-player-cpt-admin.php:245
    803819msgid ""
    804820"This field is intended for the player's year or class in school, for "
     
    807823msgstr ""
    808824
    809 #: includes/mstw-tr-player-cpt-admin.php:252
     825#: includes/mstw-tr-player-cpt-admin.php:253
    810826msgid ""
    811827"This field is intended to be the player's experience, for example, \"3 "
     
    814830msgstr ""
    815831
    816 #: includes/mstw-tr-player-cpt-admin.php:268
     832#: includes/mstw-tr-player-cpt-admin.php:269
    817833msgid ""
    818834"This field is typically combined with the last school in US college and high "
     
    820836msgstr ""
    821837
    822 #: includes/mstw-tr-player-cpt-admin.php:276
     838#: includes/mstw-tr-player-cpt-admin.php:277
    823839msgid ""
    824840"This field is typically combined with the home town in US college and high "
     
    827843msgstr ""
    828844
    829 #: includes/mstw-tr-player-cpt-admin.php:284
     845#: includes/mstw-tr-player-cpt-admin.php:285
    830846msgid ""
    831847"This field is intended for international teams, but it could changed to "
     
    833849msgstr ""
    834850
    835 #: includes/mstw-tr-player-cpt-admin.php:290
     851#: includes/mstw-tr-player-cpt-admin.php:291
    836852msgid "Bats:"
    837853msgstr ""
    838854
    839 #: includes/mstw-tr-player-cpt-admin.php:291
     855#: includes/mstw-tr-player-cpt-admin.php:292
    840856msgid ""
    841857"This is a baseball specific field, but it could be used for cricket, say. It "
     
    843859msgstr ""
    844860
    845 #: includes/mstw-tr-player-cpt-admin.php:297
     861#: includes/mstw-tr-player-cpt-admin.php:298
    846862msgid "Throws:"
    847863msgstr ""
    848864
    849 #: includes/mstw-tr-player-cpt-admin.php:298
     865#: includes/mstw-tr-player-cpt-admin.php:299
    850866msgid ""
    851867"This is a baseball specific field. It is combined with the \"Bats\" field in "
     
    853869msgstr ""
    854870
    855 #: includes/mstw-tr-player-cpt-admin.php:306
     871#: includes/mstw-tr-player-cpt-admin.php:307
    856872msgid "This field is a spare. It is intended to be re-purposed by site admins."
    857873msgstr ""
     
    860876#: includes/mstw-tr-roster-table-settings.php:94
    861877#: includes/mstw-tr-roster-table-settings.php:221
    862 #: includes/mstw-tr-roster-tables-class.php:565
     878#: includes/mstw-tr-roster-tables-class.php:547
    863879#: includes/mstw-tr-team-roster-admin-class.php:46
    864 #: includes/mstw-tr-utility-functions.php:379
     880#: includes/mstw-tr-utility-functions.php:380
    865881msgid "First Name"
    866882msgstr ""
     
    869885#: includes/mstw-tr-roster-table-settings.php:93
    870886#: includes/mstw-tr-roster-table-settings.php:220
    871 #: includes/mstw-tr-roster-tables-class.php:566
     887#: includes/mstw-tr-roster-tables-class.php:548
    872888#: includes/mstw-tr-team-roster-admin-class.php:47
    873 #: includes/mstw-tr-utility-functions.php:380
     889#: includes/mstw-tr-utility-functions.php:381
    874890msgid "Last Name"
    875891msgstr ""
     
    879895msgstr ""
    880896
    881 #: includes/mstw-tr-player-cpt-admin.php:540
     897#: includes/mstw-tr-player-cpt-admin.php:545
    882898msgid "Show All Teams"
    883899msgstr ""
    884900
    885 #: includes/mstw-tr-player-cpt-admin.php:636
     901#: includes/mstw-tr-player-cpt-admin.php:644
    886902msgid "Add/Edit Player"
    887903msgstr ""
    888904
    889 #: includes/mstw-tr-player-cpt-admin.php:659
     905#: includes/mstw-tr-player-cpt-admin.php:667
    890906msgid ""
    891907"This screen provides a list of selected data fields for all players. The "
     
    893909msgstr ""
    894910
    895 #: includes/mstw-tr-player-cpt-admin.php:661
     911#: includes/mstw-tr-player-cpt-admin.php:669
    896912msgid ""
    897913"To add a player, click the \"Add New Player\" button at the top of the "
     
    900916msgstr ""
    901917
    902 #: includes/mstw-tr-player-cpt-admin.php:663
     918#: includes/mstw-tr-player-cpt-admin.php:671
    903919msgid "To edit a player, roll over the \"Name\" field and selecte \"Edit\"."
    904920msgstr ""
    905921
    906 #: includes/mstw-tr-player-cpt-admin.php:665
     922#: includes/mstw-tr-player-cpt-admin.php:673
    907923msgid ""
    908924"To delete a player, roll over the \"Name\" field and selecte \"Trash\". Note "
     
    912928msgstr ""
    913929
    914 #: includes/mstw-tr-player-cpt-admin.php:667
    915 #: includes/mstw-tr-player-cpt-admin.php:687
     930#: includes/mstw-tr-player-cpt-admin.php:675
     931#: includes/mstw-tr-player-cpt-admin.php:695
    916932msgid "See the Data Entry - Players man page for more details."
    917933msgstr ""
    918934
    919 #: includes/mstw-tr-player-cpt-admin.php:673
     935#: includes/mstw-tr-player-cpt-admin.php:681
    920936msgid ""
    921937"Title. The player title should always be entered. However, it does not "
     
    923939msgstr ""
    924940
    925 #: includes/mstw-tr-player-cpt-admin.php:675
     941#: includes/mstw-tr-player-cpt-admin.php:683
    926942msgid ""
    927943"First Name and Last Name. At least one of these fields should be entered; "
     
    929945msgstr ""
    930946
    931 #: includes/mstw-tr-player-cpt-admin.php:677
    932 #: includes/mstw-tr-player-cpt-admin.php:679
     947#: includes/mstw-tr-player-cpt-admin.php:685
     948#: includes/mstw-tr-player-cpt-admin.php:687
    933949msgid ""
    934950"Use the Manage Teams metabox to add a player to one or more teams; "
     
    936952msgstr ""
    937953
    938 #: includes/mstw-tr-player-cpt-admin.php:681
     954#: includes/mstw-tr-player-cpt-admin.php:689
    939955msgid ""
    940956"Use the Player Photo metabox to add a player photo from the Media Gallery."
    941957msgstr ""
    942958
    943 #: includes/mstw-tr-player-cpt-admin.php:683
     959#: includes/mstw-tr-player-cpt-admin.php:691
    944960msgid ""
    945961"Use the Player Bio metabox to add a player profile/bio. Note that you can "
     
    947963msgstr ""
    948964
    949 #: includes/mstw-tr-player-cpt-admin.php:685
     965#: includes/mstw-tr-player-cpt-admin.php:693
    950966msgid ""
    951967"Delete a player by clicking the \"Move to Trash\" link in the Publish "
     
    953969msgstr ""
    954970
    955 #: includes/mstw-tr-player-cpt-admin.php:707
     971#: includes/mstw-tr-player-cpt-admin.php:715
    956972msgid ""
    957973"This screen allows updating the status of all games in a league and season."
    958974msgstr ""
    959975
    960 #: includes/mstw-tr-player-cpt-admin.php:708
     976#: includes/mstw-tr-player-cpt-admin.php:716
    961977msgid "Select a LEAGUE and SEASON then press the Update Games Table button."
    962978msgstr ""
    963979
    964 #: includes/mstw-tr-player-cpt-admin.php:709
     980#: includes/mstw-tr-player-cpt-admin.php:717
    965981msgid "Enter the status in information for each game."
    966982msgstr ""
    967983
    968 #: includes/mstw-tr-player-cpt-admin.php:710
     984#: includes/mstw-tr-player-cpt-admin.php:718
    969985msgid "See the Update Games man page for more details."
    970986msgstr ""
     
    11581174#: includes/mstw-tr-roster-table-settings.php:65
    11591175#: includes/mstw-tr-roster-table-settings.php:202
    1160 #: includes/mstw-tr-utility-functions.php:1954
    1161 #: includes/mstw-tr-utility-functions.php:1969
    1162 #: includes/mstw-tr-utility-functions.php:1979
    1163 #: includes/mstw-tr-utility-functions.php:1999
    1164 #: includes/mstw-tr-utility-functions.php:2007
    1165 #: includes/mstw-tr-utility-functions.php:2018
    1166 #: includes/mstw-utility-functions.php:522
    1167 #: includes/mstw-utility-functions.php:537
    1168 #: includes/mstw-utility-functions.php:547
    1169 #: includes/mstw-utility-functions.php:567
    1170 #: includes/mstw-utility-functions.php:575
    1171 #: includes/mstw-utility-functions.php:586
     1176#: includes/mstw-tr-utility-functions.php:1938
     1177#: includes/mstw-tr-utility-functions.php:1953
     1178#: includes/mstw-tr-utility-functions.php:1963
     1179#: includes/mstw-tr-utility-functions.php:1983
     1180#: includes/mstw-tr-utility-functions.php:1991
     1181#: includes/mstw-tr-utility-functions.php:2002
    11721182msgid "Custom"
    11731183msgstr ""
     
    13161326
    13171327#: includes/mstw-tr-roster-table-settings.php:164
    1318 #: includes/mstw-tr-roster-tables-class.php:568
     1328#: includes/mstw-tr-roster-tables-class.php:550
    13191329msgid "Class/Year"
    13201330msgstr ""
    13211331
    13221332#: includes/mstw-tr-roster-table-settings.php:165
    1323 #: includes/mstw-tr-utility-functions.php:387
     1333#: includes/mstw-tr-utility-functions.php:388
    13241334msgid "Class/Year (long format)"
    13251335msgstr ""
    13261336
    13271337#: includes/mstw-tr-roster-table-settings.php:166
    1328 #: includes/mstw-tr-utility-functions.php:388
     1338#: includes/mstw-tr-utility-functions.php:389
    13291339msgid "Experience"
    13301340msgstr ""
    13311341
    13321342#: includes/mstw-tr-roster-table-settings.php:167
    1333 #: includes/mstw-tr-utility-functions.php:217
    1334 #: includes/mstw-tr-utility-functions.php:389
    1335 #: includes/mstw-tr-utility-functions.php:458
    1336 #: includes/mstw-tr-utility-functions.php:502
    1337 #: includes/mstw-tr-utility-functions.php:548
     1343#: includes/mstw-tr-utility-functions.php:218
     1344#: includes/mstw-tr-utility-functions.php:390
     1345#: includes/mstw-tr-utility-functions.php:459
     1346#: includes/mstw-tr-utility-functions.php:503
     1347#: includes/mstw-tr-utility-functions.php:549
    13381348msgid "Age"
    13391349msgstr ""
    13401350
    13411351#: includes/mstw-tr-roster-table-settings.php:168
    1342 #: includes/mstw-tr-utility-functions.php:221
    1343 #: includes/mstw-tr-utility-functions.php:390
    1344 #: includes/mstw-tr-utility-functions.php:460
    1345 #: includes/mstw-tr-utility-functions.php:506
    1346 #: includes/mstw-tr-utility-functions.php:550
     1352#: includes/mstw-tr-utility-functions.php:222
     1353#: includes/mstw-tr-utility-functions.php:391
     1354#: includes/mstw-tr-utility-functions.php:461
     1355#: includes/mstw-tr-utility-functions.php:507
     1356#: includes/mstw-tr-utility-functions.php:551
    13471357msgid "Home Town"
    13481358msgstr ""
    13491359
    13501360#: includes/mstw-tr-roster-table-settings.php:169
    1351 #: includes/mstw-tr-utility-functions.php:225
    1352 #: includes/mstw-tr-utility-functions.php:391
    1353 #: includes/mstw-tr-utility-functions.php:462
    1354 #: includes/mstw-tr-utility-functions.php:508
    1355 #: includes/mstw-tr-utility-functions.php:552
     1361#: includes/mstw-tr-utility-functions.php:226
     1362#: includes/mstw-tr-utility-functions.php:392
     1363#: includes/mstw-tr-utility-functions.php:463
     1364#: includes/mstw-tr-utility-functions.php:509
     1365#: includes/mstw-tr-utility-functions.php:553
    13561366msgid "Last School"
    13571367msgstr ""
    13581368
    13591369#: includes/mstw-tr-roster-table-settings.php:170
    1360 #: includes/mstw-tr-utility-functions.php:229
    1361 #: includes/mstw-tr-utility-functions.php:392
    1362 #: includes/mstw-tr-utility-functions.php:464
    1363 #: includes/mstw-tr-utility-functions.php:510
    1364 #: includes/mstw-tr-utility-functions.php:556
     1370#: includes/mstw-tr-utility-functions.php:230
     1371#: includes/mstw-tr-utility-functions.php:393
     1372#: includes/mstw-tr-utility-functions.php:465
     1373#: includes/mstw-tr-utility-functions.php:511
     1374#: includes/mstw-tr-utility-functions.php:557
    13651375msgid "Country"
    13661376msgstr ""
    13671377
    13681378#: includes/mstw-tr-roster-table-settings.php:172
    1369 #: includes/mstw-tr-utility-functions.php:395
    1370 #: includes/mstw-tr-utility-functions.php:468
    1371 #: includes/mstw-tr-utility-functions.php:514
    1372 #: includes/mstw-tr-utility-functions.php:560
     1379#: includes/mstw-tr-utility-functions.php:396
     1380#: includes/mstw-tr-utility-functions.php:469
     1381#: includes/mstw-tr-utility-functions.php:515
     1382#: includes/mstw-tr-utility-functions.php:561
    13731383msgid "Other Info"
    13741384msgstr ""
     
    14371447
    14381448#. translators: %s: team slug
    1439 #: includes/mstw-tr-roster-table.php:146
     1449#: includes/mstw-tr-roster-table.php:143
    14401450#, php-format
    14411451msgid "No players found on team: %s"
    14421452msgstr ""
    14431453
    1444 #: includes/mstw-tr-roster-tables-class.php:256
    1445 #: includes/mstw-tr-utility-functions.php:788
     1454#: includes/mstw-tr-roster-tables-class.php:255
     1455#: includes/mstw-tr-utility-functions.php:787
    14461456msgid "No player photo found."
    14471457msgstr ""
    14481458
    1449 #: includes/mstw-tr-roster-tables-class.php:411
     1459#: includes/mstw-tr-roster-tables-class.php:410
    14501460msgid "--"
    14511461msgstr ""
    14521462
    1453 #: includes/mstw-tr-roster-tables-class.php:564
    1454 #: includes/mstw-tr-utility-functions.php:381
     1463#: includes/mstw-tr-roster-tables-class.php:546
     1464#: includes/mstw-tr-utility-functions.php:382
    14551465msgid "Jersey Number"
    14561466msgstr ""
    14571467
    1458 #: includes/mstw-tr-roster-tables-class.php:567
     1468#: includes/mstw-tr-roster-tables-class.php:549
    14591469msgid "Hometown"
    14601470msgstr ""
    14611471
    1462 #: includes/mstw-tr-roster-tables-class.php:596
     1472#: includes/mstw-tr-roster-tables-class.php:578
    14631473msgid "Sort Roster"
    14641474msgstr ""
    14651475
    1466 #: includes/mstw-tr-roster-tables-class.php:634
     1476#: includes/mstw-tr-roster-tables-class.php:614
    14671477msgid "Roster"
    14681478msgstr ""
     
    14721482msgstr ""
    14731483
    1474 #: includes/mstw-tr-settings.php:138
     1484#: includes/mstw-tr-settings.php:139
    14751485msgid "Save Changes"
    14761486msgstr ""
    14771487
    1478 #: includes/mstw-tr-settings.php:140
     1488#: includes/mstw-tr-settings.php:141
    14791489msgid "Reset Defaults"
    14801490msgstr ""
    14811491
    1482 #: includes/mstw-tr-settings.php:156
     1492#: includes/mstw-tr-settings.php:157
    14831493msgid "Roster Table Fields & Columns"
    14841494msgstr ""
    14851495
    1486 #: includes/mstw-tr-settings.php:157 includes/mstw-tr-settings.php:194
     1496#: includes/mstw-tr-settings.php:158 includes/mstw-tr-settings.php:194
    14871497msgid "Roster Tables"
    14881498msgstr ""
    14891499
    1490 #: includes/mstw-tr-settings.php:158 includes/mstw-tr-settings.php:199
     1500#: includes/mstw-tr-settings.php:159 includes/mstw-tr-settings.php:199
    14911501msgid "Roster Table Colors"
    14921502msgstr ""
    14931503
    1494 #: includes/mstw-tr-settings.php:159 includes/mstw-tr-settings.php:204
     1504#: includes/mstw-tr-settings.php:160 includes/mstw-tr-settings.php:204
    14951505msgid "Player Profiles & Galleries"
    14961506msgstr ""
     
    15921602msgstr ""
    15931603
     1604#: includes/mstw-tr-settings.php:290
     1605msgid "Rpster Table data fields & columns settings reset to defaults."
     1606msgstr ""
     1607
    15941608#: includes/mstw-tr-settings.php:297
    1595 msgid "Rpster Table data fields & columns settings reset to defaults."
    1596 msgstr ""
    1597 
    1598 #: includes/mstw-tr-settings.php:304
    15991609msgid "Roster table settings reset to defaults."
    16001610msgstr ""
    16011611
    1602 #: includes/mstw-tr-settings.php:308
     1612#: includes/mstw-tr-settings.php:301
    16031613msgid "Roster table color settings reset to defaults."
    16041614msgstr ""
    16051615
    1606 #: includes/mstw-tr-settings.php:312
     1616#: includes/mstw-tr-settings.php:305
    16071617msgid "Player profile & gallery settings reset to defaults."
    16081618msgstr ""
    16091619
    1610 #: includes/mstw-tr-settings.php:330
     1620#: includes/mstw-tr-settings.php:323
    16111621msgid "Data fields & columns settings updated."
    16121622msgstr ""
    16131623
    16141624#. translators: %1$s/%2$s: key/value that had error
    1615 #: includes/mstw-tr-settings.php:353 includes/mstw-tr-settings.php:439
     1625#: includes/mstw-tr-settings.php:346 includes/mstw-tr-settings.php:429
    16161626#, php-format
    16171627msgid "Error with %1$s = '%2$s'. Reset to previous value."
    16181628msgstr ""
    16191629
    1620 #: includes/mstw-tr-settings.php:365
     1630#: includes/mstw-tr-settings.php:358
    16211631msgid "Roster tables settings updated."
    16221632msgstr ""
    16231633
    16241634#. translators: $s: key that had error
    1625 #: includes/mstw-tr-settings.php:394 includes/mstw-tr-settings.php:460
     1635#: includes/mstw-tr-settings.php:385 includes/mstw-tr-settings.php:450
    16261636#, php-format
    16271637msgid "Error: %s reset to the default."
    16281638msgstr ""
    16291639
    1630 #: includes/mstw-tr-settings.php:402
     1640#: includes/mstw-tr-settings.php:393
    16311641msgid "Roster table colors settings updated."
    16321642msgstr ""
    16331643
    1634 #: includes/mstw-tr-settings.php:468
     1644#: includes/mstw-tr-settings.php:458
    16351645msgid "Player profiles & galleries settings updated."
    16361646msgstr ""
    16371647
    16381648#: includes/mstw-tr-team-roster-admin-class.php:58
    1639 #: includes/mstw-tr-utility-functions.php:393
     1649#: includes/mstw-tr-utility-functions.php:394
    16401650msgid "Bats"
    16411651msgstr ""
    16421652
    16431653#: includes/mstw-tr-team-roster-admin-class.php:59
    1644 #: includes/mstw-tr-utility-functions.php:394
     1654#: includes/mstw-tr-utility-functions.php:395
    16451655msgid "Throws"
    16461656msgstr ""
    16471657
    1648 #: includes/mstw-tr-team-roster-admin-class.php:179
     1658#: includes/mstw-tr-team-roster-admin-class.php:174
    16491659msgid "Create a team before editting it's roster."
    16501660msgstr ""
    16511661
    1652 #: includes/mstw-tr-team-roster-admin-class.php:194
     1662#: includes/mstw-tr-team-roster-admin-class.php:189
    16531663msgid "Change Team"
    16541664msgstr ""
    16551665
    1656 #: includes/mstw-tr-team-roster-admin-class.php:204
     1666#: includes/mstw-tr-team-roster-admin-class.php:198
    16571667msgid ""
    16581668"Caution! This button will update the table with the selected team roster "
     
    16611671msgstr ""
    16621672
    1663 #: includes/mstw-tr-team-roster-admin-class.php:212
     1673#: includes/mstw-tr-team-roster-admin-class.php:206
    16641674msgid ""
    16651675"Enter players for the selected team. No data will be processed on or after "
     
    16671677msgstr ""
    16681678
    1669 #: includes/mstw-tr-team-roster-admin-class.php:229
    1670 #: includes/mstw-tr-team-roster-admin-class.php:708
     1679#: includes/mstw-tr-team-roster-admin-class.php:223
     1680#: includes/mstw-tr-team-roster-admin-class.php:692
    16711681msgid "Update Roster"
    16721682msgstr ""
    16731683
    1674 #: includes/mstw-tr-team-roster-admin-class.php:691
    1675 msgid "Problem encountered updating games. Exiting."
    1676 msgstr ""
    1677 
    1678 #: includes/mstw-tr-team-roster-admin-class.php:715
     1684#: includes/mstw-tr-team-roster-admin-class.php:685
     1685msgid "Problem encountered updating roster; $options array missing. Exiting."
     1686msgstr ""
     1687
     1688#: includes/mstw-tr-team-roster-admin-class.php:696
    16791689msgid "Error: No team specified for roster update."
    16801690msgstr ""
    16811691
    1682 #: includes/mstw-tr-team-roster-admin-class.php:1057
     1692#: includes/mstw-tr-team-roster-admin-class.php:981
    16831693msgid ""
    16841694"Use this screen to edit the players on a roster in bulk - up to 20 at time. "
     
    16861696msgstr ""
    16871697
    1688 #: includes/mstw-tr-team-roster-admin-class.php:1059
     1698#: includes/mstw-tr-team-roster-admin-class.php:983
    16891699msgid ""
    16901700"While players can be edited on this screen much faster than the Manage "
     
    16941704msgstr ""
    16951705
    1696 #: includes/mstw-tr-team-roster-admin-class.php:1081
     1706#: includes/mstw-tr-team-roster-admin-class.php:1003
    16971707msgid ""
    16981708"Use this screen to add players to rosters in bulk - up to 20 at time. First "
     
    17001710msgstr ""
    17011711
    1702 #: includes/mstw-tr-team-roster-admin-class.php:1083
     1712#: includes/mstw-tr-team-roster-admin-class.php:1005
    17031713msgid ""
    17041714"While players can be added on this screen much faster than the Manage "
     
    17061716msgstr ""
    17071717
    1708 #: includes/mstw-tr-team-roster-admin-class.php:1086
     1718#: includes/mstw-tr-team-roster-admin-class.php:1008
    17091719msgid "The Player Title will be set to \"First_Name Last_Name."
    17101720msgstr ""
    17111721
    1712 #: includes/mstw-tr-team-roster-admin-class.php:1087
     1722#: includes/mstw-tr-team-roster-admin-class.php:1009
    17131723msgid "The Player Slug will be set to \"first_name-last_name."
    17141724msgstr ""
    17151725
    1716 #: includes/mstw-tr-team-roster-admin-class.php:1088
     1726#: includes/mstw-tr-team-roster-admin-class.php:1010
    17171727msgid ""
    17181728"Each Player will be added to only the selected team. Use the Manage Players "
     
    17201730msgstr ""
    17211731
    1722 #: includes/mstw-tr-team-roster-admin-class.php:1089
     1732#: includes/mstw-tr-team-roster-admin-class.php:1011
    17231733msgid "Use the Manage Players screen to add Player Photos and Player Profiles."
    17241734msgstr ""
    17251735
    1726 #: includes/mstw-tr-team-roster-admin-class.php:1092
     1736#: includes/mstw-tr-team-roster-admin-class.php:1014
    17271737msgid "See the MSTW Team Rosters users manual for more details."
    17281738msgstr ""
    17291739
    1730 #: includes/mstw-tr-team-tax-admin-class.php:224
     1740#: includes/mstw-tr-team-tax-admin-class.php:225
    17311741msgid "Team Name"
    17321742msgstr ""
    17331743
    1734 #: includes/mstw-tr-team-tax-admin-class.php:226
     1744#: includes/mstw-tr-team-tax-admin-class.php:227
    17351745msgid "Slug"
    17361746msgstr ""
    17371747
    1738 #: includes/mstw-tr-team-tax-admin-class.php:227
     1748#: includes/mstw-tr-team-tax-admin-class.php:228
    17391749msgid "Team Source"
    17401750msgstr ""
    17411751
    1742 #: includes/mstw-tr-team-tax-admin-class.php:260
     1752#: includes/mstw-tr-team-tax-admin-class.php:261
    17431753msgid "None"
    17441754msgstr ""
    17451755
    1746 #: includes/mstw-tr-team-tax-admin-class.php:433
     1756#: includes/mstw-tr-team-tax-admin-class.php:424
    17471757msgid "This screen provides management (add, edit, delete) of teams."
    17481758msgstr ""
    17491759
    1750 #: includes/mstw-tr-team-tax-admin-class.php:434
     1760#: includes/mstw-tr-team-tax-admin-class.php:425
    17511761msgid ""
    17521762"Each team may be linked to a team in the MSTW Schedules & Scoreboards or the "
     
    17551765msgstr ""
    17561766
    1757 #: includes/mstw-tr-team-tax-admin-class.php:435
     1767#: includes/mstw-tr-team-tax-admin-class.php:426
    17581768msgid ""
    17591769"Teams may be added on this page. They may also be added in bulk via the CSV "
     
    17611771msgstr ""
    17621772
    1763 #: includes/mstw-tr-team-tax-admin-class.php:436
     1773#: includes/mstw-tr-team-tax-admin-class.php:427
    17641774msgid ""
    17651775"Roll over a team name, and select \"Edit\" to modify the data for an "
     
    17671777msgstr ""
    17681778
    1769 #: includes/mstw-tr-team-tax-admin-class.php:437
     1779#: includes/mstw-tr-team-tax-admin-class.php:428
    17701780msgid ""
    17711781"Roll over a team name, and select \"Delete\" to remove a team. Any players "
     
    17741784msgstr ""
    17751785
     1786#: includes/mstw-tr-team-tax-admin-class.php:430
    17761787#: includes/mstw-tr-team-tax-admin-class.php:439
    1777 #: includes/mstw-tr-team-tax-admin-class.php:448
    17781788msgid "See the Data Entry - Teams man page for more details."
    17791789msgstr ""
    17801790
    1781 #: includes/mstw-tr-team-tax-admin-class.php:446
     1791#: includes/mstw-tr-team-tax-admin-class.php:437
    17821792msgid "Use this screen to modify the information for an existing team."
    17831793msgstr ""
    17841794
    1785 #: includes/mstw-tr-utility-functions.php:184
    1786 #: includes/mstw-tr-utility-functions.php:446
    1787 #: includes/mstw-tr-utility-functions.php:490
    1788 #: includes/mstw-tr-utility-functions.php:536
     1795#: includes/mstw-tr-utility-functions.php:185
     1796#: includes/mstw-tr-utility-functions.php:447
     1797#: includes/mstw-tr-utility-functions.php:491
     1798#: includes/mstw-tr-utility-functions.php:537
    17891799msgid "Nbr"
    17901800msgstr ""
    17911801
    1792 #: includes/mstw-tr-utility-functions.php:189
     1802#: includes/mstw-tr-utility-functions.php:190
    17931803msgid "Name"
    17941804msgstr ""
    17951805
    1796 #: includes/mstw-tr-utility-functions.php:193
     1806#: includes/mstw-tr-utility-functions.php:194
    17971807msgid "Photo"
    17981808msgstr ""
    17991809
    1800 #: includes/mstw-tr-utility-functions.php:197
    1801 #: includes/mstw-tr-utility-functions.php:448
    1802 #: includes/mstw-tr-utility-functions.php:492
    1803 #: includes/mstw-tr-utility-functions.php:538
     1810#: includes/mstw-tr-utility-functions.php:198
     1811#: includes/mstw-tr-utility-functions.php:449
     1812#: includes/mstw-tr-utility-functions.php:493
     1813#: includes/mstw-tr-utility-functions.php:539
    18041814msgid "Pos"
    18051815msgstr ""
    18061816
    1807 #: includes/mstw-tr-utility-functions.php:201
    1808 #: includes/mstw-tr-utility-functions.php:450
    1809 #: includes/mstw-tr-utility-functions.php:494
    1810 #: includes/mstw-tr-utility-functions.php:540
     1817#: includes/mstw-tr-utility-functions.php:202
     1818#: includes/mstw-tr-utility-functions.php:451
     1819#: includes/mstw-tr-utility-functions.php:495
     1820#: includes/mstw-tr-utility-functions.php:541
    18111821msgid "Ht"
    18121822msgstr ""
    18131823
    1814 #: includes/mstw-tr-utility-functions.php:205
    1815 #: includes/mstw-tr-utility-functions.php:452
    1816 #: includes/mstw-tr-utility-functions.php:496
    1817 #: includes/mstw-tr-utility-functions.php:542
     1824#: includes/mstw-tr-utility-functions.php:206
     1825#: includes/mstw-tr-utility-functions.php:453
     1826#: includes/mstw-tr-utility-functions.php:497
     1827#: includes/mstw-tr-utility-functions.php:543
    18181828msgid "Wt"
    18191829msgstr ""
    18201830
    1821 #: includes/mstw-tr-utility-functions.php:209
     1831#: includes/mstw-tr-utility-functions.php:210
    18221832msgid "Year"
    18231833msgstr ""
    18241834
    1825 #: includes/mstw-tr-utility-functions.php:213
    1826 #: includes/mstw-tr-utility-functions.php:456
    1827 #: includes/mstw-tr-utility-functions.php:500
    1828 #: includes/mstw-tr-utility-functions.php:546
     1835#: includes/mstw-tr-utility-functions.php:214
     1836#: includes/mstw-tr-utility-functions.php:457
     1837#: includes/mstw-tr-utility-functions.php:501
     1838#: includes/mstw-tr-utility-functions.php:547
    18291839msgid "Exp"
    18301840msgstr ""
    18311841
    1832 #: includes/mstw-tr-utility-functions.php:233
    1833 #: includes/mstw-tr-utility-functions.php:466
    1834 #: includes/mstw-tr-utility-functions.php:512
    1835 #: includes/mstw-tr-utility-functions.php:558
     1842#: includes/mstw-tr-utility-functions.php:234
     1843#: includes/mstw-tr-utility-functions.php:467
     1844#: includes/mstw-tr-utility-functions.php:513
     1845#: includes/mstw-tr-utility-functions.php:559
    18361846msgid "Bat/Thw"
    18371847msgstr ""
    18381848
    1839 #: includes/mstw-tr-utility-functions.php:237
     1849#: includes/mstw-tr-utility-functions.php:238
    18401850msgid "Other"
    18411851msgstr ""
    18421852
    1843 #: includes/mstw-tr-utility-functions.php:346
    1844 #: theme-templates/single-player.php:244
     1853#: includes/mstw-tr-utility-functions.php:347
     1854#: theme-templates/single-player.php:267
    18451855msgid "Player Bio"
    18461856msgstr ""
    18471857
    1848 #: includes/mstw-tr-utility-functions.php:382
     1858#: includes/mstw-tr-utility-functions.php:383
    18491859msgid "Position (abbrev)"
    18501860msgstr ""
    18511861
    1852 #: includes/mstw-tr-utility-functions.php:383
     1862#: includes/mstw-tr-utility-functions.php:384
    18531863msgid "Position (long format)"
    18541864msgstr ""
    18551865
    1856 #: includes/mstw-tr-utility-functions.php:384
     1866#: includes/mstw-tr-utility-functions.php:385
    18571867msgid "Height"
    18581868msgstr ""
    18591869
    1860 #: includes/mstw-tr-utility-functions.php:385
     1870#: includes/mstw-tr-utility-functions.php:386
    18611871msgid "Weight"
    18621872msgstr ""
    18631873
    1864 #: includes/mstw-tr-utility-functions.php:386
     1874#: includes/mstw-tr-utility-functions.php:387
    18651875msgid "Class/Year (abbrev)"
    18661876msgstr ""
    18671877
    1868 #: includes/mstw-tr-utility-functions.php:454
    1869 #: includes/mstw-tr-utility-functions.php:498
    1870 #: includes/mstw-tr-utility-functions.php:544
     1878#: includes/mstw-tr-utility-functions.php:455
     1879#: includes/mstw-tr-utility-functions.php:499
     1880#: includes/mstw-tr-utility-functions.php:545
    18711881msgid "Yr"
    18721882msgstr ""
     
    18781888msgstr ""
    18791889
    1880 #: includes/mstw-tr-utility-functions.php:1352
     1890#: includes/mstw-tr-utility-functions.php:1338
    18811891msgid "For more information:"
    18821892msgstr ""
    18831893
    1884 #: includes/mstw-tr-utility-functions.php:1354
     1894#: includes/mstw-tr-utility-functions.php:1340
    18851895msgid "MSTW Team Rosters Users Manual"
    18861896msgstr ""
    18871897
    1888 #: includes/mstw-tr-utility-functions.php:1356
     1898#: includes/mstw-tr-utility-functions.php:1342
    18891899msgid "See MSTW Team Rosters in Action"
    18901900msgstr ""
    18911901
    1892 #: includes/mstw-tr-utility-functions.php:1358
     1902#: includes/mstw-tr-utility-functions.php:1344
    18931903msgid "MSTW Team Rosters on WordPress.org"
    18941904msgstr ""
    18951905
    1896 #: includes/mstw-tr-utility-functions.php:1360
     1906#: includes/mstw-tr-utility-functions.php:1346
    18971907msgid "Need more help? Want to contribute? Register for MSTW Gold Support"
    18981908msgstr ""
    18991909
    1900 #: includes/mstw-tr-utility-functions.php:1722
    1901 #: includes/mstw-utility-functions.php:348
     1910#: includes/mstw-tr-utility-functions.php:1708
    19021911msgid "Default Field"
    19031912msgstr ""
    19041913
    1905 #: includes/mstw-tr-utility-functions.php:1723
    1906 #: includes/mstw-utility-functions.php:349
     1914#: includes/mstw-tr-utility-functions.php:1709
    19071915msgid "Default Label"
    19081916msgstr ""
    19091917
     1918#: includes/mstw-tr-utility-functions.php:1931
     1919msgid "Show"
     1920msgstr ""
     1921
     1922#: includes/mstw-tr-utility-functions.php:1932
     1923msgid "Hide"
     1924msgstr ""
     1925
     1926#: includes/mstw-tr-utility-functions.php:1939
     1927msgid "Tuesday, 07 April 01:15 pm"
     1928msgstr ""
     1929
     1930#: includes/mstw-tr-utility-functions.php:1940
     1931msgid "Tuesday, 7 April 01:15 pm"
     1932msgstr ""
     1933
     1934#: includes/mstw-tr-utility-functions.php:1941
     1935msgid "Tuesday, 07 April 1:15 pm"
     1936msgstr ""
     1937
     1938#: includes/mstw-tr-utility-functions.php:1942
     1939msgid "Tuesday, 7 April 1:15 pm"
     1940msgstr ""
     1941
     1942#: includes/mstw-tr-utility-functions.php:1943
     1943#: includes/mstw-tr-utility-functions.php:1944
     1944msgid "Tuesday, 7 April 13:15"
     1945msgstr ""
     1946
     1947#: includes/mstw-tr-utility-functions.php:1945
     1948msgid "07 April 13:15"
     1949msgstr ""
     1950
     1951#: includes/mstw-tr-utility-functions.php:1946
     1952msgid "7 April 13:15"
     1953msgstr ""
     1954
    19101955#: includes/mstw-tr-utility-functions.php:1947
    1911 #: includes/mstw-utility-functions.php:515
    1912 msgid "Show"
     1956msgid "07 April 01:15 pm"
    19131957msgstr ""
    19141958
    19151959#: includes/mstw-tr-utility-functions.php:1948
    1916 #: includes/mstw-utility-functions.php:516
    1917 msgid "Hide"
    1918 msgstr ""
    1919 
    1920 #: includes/mstw-tr-utility-functions.php:1955
    1921 #: includes/mstw-utility-functions.php:523
    1922 msgid "Tuesday, 07 April 01:15 pm"
    1923 msgstr ""
    1924 
    1925 #: includes/mstw-tr-utility-functions.php:1956
    1926 #: includes/mstw-utility-functions.php:524
    1927 msgid "Tuesday, 7 April 01:15 pm"
     1960msgid "7 April 01:15 pm"
    19281961msgstr ""
    19291962
    19301963#: includes/mstw-tr-utility-functions.php:1957
    1931 #: includes/mstw-utility-functions.php:525
    1932 msgid "Tuesday, 07 April 1:15 pm"
    1933 msgstr ""
    1934 
    1935 #: includes/mstw-tr-utility-functions.php:1958
    1936 #: includes/mstw-utility-functions.php:526
    1937 msgid "Tuesday, 7 April 1:15 pm"
    1938 msgstr ""
    1939 
    1940 #: includes/mstw-tr-utility-functions.php:1959
    1941 #: includes/mstw-tr-utility-functions.php:1960
    1942 #: includes/mstw-utility-functions.php:527
    1943 #: includes/mstw-utility-functions.php:528
    1944 msgid "Tuesday, 7 April 13:15"
    1945 msgstr ""
    1946 
    1947 #: includes/mstw-tr-utility-functions.php:1961
    1948 #: includes/mstw-utility-functions.php:529
    1949 msgid "07 April 13:15"
    1950 msgstr ""
    1951 
    1952 #: includes/mstw-tr-utility-functions.php:1962
    1953 #: includes/mstw-utility-functions.php:530
    1954 msgid "7 April 13:15"
    1955 msgstr ""
    1956 
    1957 #: includes/mstw-tr-utility-functions.php:1963
    1958 #: includes/mstw-utility-functions.php:531
    1959 msgid "07 April 01:15 pm"
    1960 msgstr ""
    1961 
    1962 #: includes/mstw-tr-utility-functions.php:1964
    1963 #: includes/mstw-utility-functions.php:532
    1964 msgid "7 April 01:15 pm"
     1964msgid "Formats for 7 April 2013 13:15."
     1965msgstr ""
     1966
     1967#: includes/mstw-tr-utility-functions.php:1968
     1968msgid "07 Apr 2013"
     1969msgstr ""
     1970
     1971#: includes/mstw-tr-utility-functions.php:1969
     1972msgid "7 Apr 2013"
     1973msgstr ""
     1974
     1975#: includes/mstw-tr-utility-functions.php:1970
     1976msgid "Tues, 07 Apr 2013"
     1977msgstr ""
     1978
     1979#: includes/mstw-tr-utility-functions.php:1971
     1980msgid "Tues, 7 Apr 13"
     1981msgstr ""
     1982
     1983#: includes/mstw-tr-utility-functions.php:1972
     1984msgid "Tuesday, 7 Apr"
    19651985msgstr ""
    19661986
    19671987#: includes/mstw-tr-utility-functions.php:1973
    1968 #: includes/mstw-utility-functions.php:541
    1969 msgid "Formats for 7 April 2013 13:15."
    1970 msgstr ""
    1971 
    1972 #: includes/mstw-tr-utility-functions.php:1984
    1973 #: includes/mstw-utility-functions.php:552
    1974 msgid "07 Apr 2013"
    1975 msgstr ""
    1976 
    1977 #: includes/mstw-tr-utility-functions.php:1985
    1978 #: includes/mstw-utility-functions.php:553
    1979 msgid "7 Apr 2013"
     1988msgid "Tuesday, 07 April 2013"
     1989msgstr ""
     1990
     1991#: includes/mstw-tr-utility-functions.php:1974
     1992msgid "Tuesday, 7 April 2013"
     1993msgstr ""
     1994
     1995#: includes/mstw-tr-utility-functions.php:1975
     1996msgid "Tues, 07 Apr"
     1997msgstr ""
     1998
     1999#: includes/mstw-tr-utility-functions.php:1976
     2000msgid "Tues, 7 Apr"
     2001msgstr ""
     2002
     2003#: includes/mstw-tr-utility-functions.php:1977
     2004msgid "07 Apr"
     2005msgstr ""
     2006
     2007#: includes/mstw-tr-utility-functions.php:1978
     2008msgid "7 Apr"
    19802009msgstr ""
    19812010
    19822011#: includes/mstw-tr-utility-functions.php:1986
    1983 #: includes/mstw-utility-functions.php:554
    1984 msgid "Tues, 07 Apr 2013"
    1985 msgstr ""
    1986 
    1987 #: includes/mstw-tr-utility-functions.php:1987
    1988 #: includes/mstw-utility-functions.php:555
    1989 msgid "Tues, 7 Apr 13"
    1990 msgstr ""
    1991 
    1992 #: includes/mstw-tr-utility-functions.php:1988
    1993 #: includes/mstw-utility-functions.php:556
    1994 msgid "Tuesday, 7 Apr"
    1995 msgstr ""
    1996 
    1997 #: includes/mstw-tr-utility-functions.php:1989
    1998 #: includes/mstw-utility-functions.php:557
    1999 msgid "Tuesday, 07 April 2013"
    2000 msgstr ""
    2001 
    2002 #: includes/mstw-tr-utility-functions.php:1990
    2003 #: includes/mstw-utility-functions.php:558
    2004 msgid "Tuesday, 7 April 2013"
    2005 msgstr ""
    2006 
    2007 #: includes/mstw-tr-utility-functions.php:1991
    2008 #: includes/mstw-utility-functions.php:559
    2009 msgid "Tues, 07 Apr"
     2012msgid "Formats for 7 Apr 2013. Default: 2013-04-07"
    20102013msgstr ""
    20112014
    20122015#: includes/mstw-tr-utility-functions.php:1992
    2013 #: includes/mstw-utility-functions.php:560
    2014 msgid "Tues, 7 Apr"
     2016msgid "08:00 (24hr)"
    20152017msgstr ""
    20162018
    20172019#: includes/mstw-tr-utility-functions.php:1993
    2018 #: includes/mstw-utility-functions.php:561
    2019 msgid "07 Apr"
     2020msgid "8:00 (24hr)"
    20202021msgstr ""
    20212022
    20222023#: includes/mstw-tr-utility-functions.php:1994
    2023 #: includes/mstw-utility-functions.php:562
    2024 msgid "7 Apr"
    2025 msgstr ""
    2026 
    2027 #: includes/mstw-tr-utility-functions.php:2002
    2028 #: includes/mstw-utility-functions.php:570
    2029 msgid "Formats for 7 Apr 2013. Default: 2013-04-07"
    2030 msgstr ""
    2031 
    2032 #: includes/mstw-tr-utility-functions.php:2008
    2033 #: includes/mstw-utility-functions.php:576
    2034 msgid "08:00 (24hr)"
    2035 msgstr ""
    2036 
    2037 #: includes/mstw-tr-utility-functions.php:2009
    2038 #: includes/mstw-utility-functions.php:577
    2039 msgid "8:00 (24hr)"
    2040 msgstr ""
    2041 
    2042 #: includes/mstw-tr-utility-functions.php:2010
    2043 #: includes/mstw-utility-functions.php:578
    20442024msgid "08:00 am"
    20452025msgstr ""
    20462026
    2047 #: includes/mstw-tr-utility-functions.php:2011
    2048 #: includes/mstw-utility-functions.php:579
     2027#: includes/mstw-tr-utility-functions.php:1995
    20492028msgid "08:00 AM"
    20502029msgstr ""
    20512030
    2052 #: includes/mstw-tr-utility-functions.php:2012
    2053 #: includes/mstw-utility-functions.php:580
     2031#: includes/mstw-tr-utility-functions.php:1996
    20542032msgid "8:00 am"
    20552033msgstr ""
    20562034
    2057 #: includes/mstw-tr-utility-functions.php:2013
    2058 #: includes/mstw-utility-functions.php:581
     2035#: includes/mstw-tr-utility-functions.php:1997
    20592036msgid "8:00 AM"
    20602037msgstr ""
    20612038
    2062 #: includes/mstw-tr-utility-functions.php:2021
    2063 #: includes/mstw-utility-functions.php:589
     2039#: includes/mstw-tr-utility-functions.php:2005
    20642040msgid "Formats for eight in the morning. Default: 08:00"
    20652041msgstr ""
    20662042
    2067 #: includes/mstw-tr-utility-functions.php:2120
    2068 msgid "Default"
    2069 msgstr ""
    2070 
    2071 #: includes/mstw-tr-utility-functions.php:2160
    2072 msgid "Baseball"
    2073 msgstr ""
    2074 
    2075 #: includes/mstw-tr-utility-functions.php:2161
    2076 msgid "Baseball-MLB"
    2077 msgstr ""
    2078 
    2079 #: includes/mstw-tr-utility-functions.php:2162
    2080 msgid "Basketball"
    2081 msgstr ""
    2082 
    2083 #: includes/mstw-tr-utility-functions.php:2163
    2084 msgid "Mens Basketball"
    2085 msgstr ""
    2086 
    2087 #: includes/mstw-tr-utility-functions.php:2164
    2088 #: includes/mstw-tr-utility-functions.php:2165
    2089 msgid "Womens Basketball"
    2090 msgstr ""
    2091 
    2092 #: includes/mstw-tr-utility-functions.php:2167
    2093 msgid "Competitive Cheer"
    2094 msgstr ""
    2095 
    2096 #: includes/mstw-tr-utility-functions.php:2169
    2097 msgid "Cross Country"
    2098 msgstr ""
    2099 
    2100 #: includes/mstw-tr-utility-functions.php:2170
    2101 msgid "Mens Cross Country"
    2102 msgstr ""
    2103 
    2104 #: includes/mstw-tr-utility-functions.php:2171
    2105 msgid "Womens Cross Country"
    2106 msgstr ""
    2107 
    2108 #: includes/mstw-tr-utility-functions.php:2173
    2109 msgid "Field Hockey"
    2110 msgstr ""
    2111 
    2112 #: includes/mstw-tr-utility-functions.php:2174
    2113 msgid "Football"
    2114 msgstr ""
    2115 
    2116 #: includes/mstw-tr-utility-functions.php:2175
    2117 msgid "Football-NCAA"
    2118 msgstr ""
    2119 
    2120 #: includes/mstw-tr-utility-functions.php:2176
    2121 msgid "Football-NFL"
    2122 msgstr ""
    2123 
    2124 #: includes/mstw-tr-utility-functions.php:2178
    2125 msgid "Golf"
    2126 msgstr ""
    2127 
    2128 #: includes/mstw-tr-utility-functions.php:2179
    2129 msgid "Mens Golf"
    2130 msgstr ""
    2131 
    2132 #: includes/mstw-tr-utility-functions.php:2180
    2133 msgid "Womens Golf"
    2134 msgstr ""
    2135 
    2136 #: includes/mstw-tr-utility-functions.php:2182
    2137 msgid "Gymnastics"
    2138 msgstr ""
    2139 
    2140 #: includes/mstw-tr-utility-functions.php:2184
    2141 msgid "Ice Hockey"
    2142 msgstr ""
    2143 
    2144 #: includes/mstw-tr-utility-functions.php:2185
    2145 msgid "Ice Hockey-NHL"
    2146 msgstr ""
    2147 
    2148 #: includes/mstw-tr-utility-functions.php:2187
    2149 msgid "Lacrosse"
    2150 msgstr ""
    2151 
    2152 #: includes/mstw-tr-utility-functions.php:2188
    2153 msgid "Mens Lacrosse"
    2154 msgstr ""
    2155 
    2156 #: includes/mstw-tr-utility-functions.php:2189
    2157 msgid "Womens Lacrosse"
    2158 msgstr ""
    2159 
    2160 #: includes/mstw-tr-utility-functions.php:2191
    2161 msgid "Rugby"
    2162 msgstr ""
    2163 
    2164 #: includes/mstw-tr-utility-functions.php:2193
    2165 msgid "Soccer"
    2166 msgstr ""
    2167 
    2168 #: includes/mstw-tr-utility-functions.php:2194
    2169 msgid "Mens Soccer"
    2170 msgstr ""
    2171 
    2172 #: includes/mstw-tr-utility-functions.php:2195
    2173 msgid "Womens Soccer"
    2174 msgstr ""
    2175 
    2176 #: includes/mstw-tr-utility-functions.php:2196
    2177 msgid "Soccer-Premier League"
    2178 msgstr ""
    2179 
    2180 #: includes/mstw-tr-utility-functions.php:2198
    2181 msgid "Softball"
    2182 msgstr ""
    2183 
    2184 #: includes/mstw-tr-utility-functions.php:2200
    2185 msgid "Swimming & Diving"
    2186 msgstr ""
    2187 
    2188 #: includes/mstw-tr-utility-functions.php:2201
    2189 msgid "Mens Swimming"
    2190 msgstr ""
    2191 
    2192 #: includes/mstw-tr-utility-functions.php:2202
    2193 msgid "Womens Swimming"
    2194 msgstr ""
    2195 
    2196 #: includes/mstw-tr-utility-functions.php:2204
    2197 msgid "Tennis"
    2198 msgstr ""
    2199 
    2200 #: includes/mstw-tr-utility-functions.php:2205
    2201 msgid "Mens Tennis"
    2202 msgstr ""
    2203 
    2204 #: includes/mstw-tr-utility-functions.php:2206
    2205 msgid "Womens Tennis"
    2206 msgstr ""
    2207 
    2208 #: includes/mstw-tr-utility-functions.php:2208
    2209 msgid "Track & Field"
    2210 msgstr ""
    2211 
    2212 #: includes/mstw-tr-utility-functions.php:2209
    2213 msgid "Mens Track"
    2214 msgstr ""
    2215 
    2216 #: includes/mstw-tr-utility-functions.php:2210
    2217 msgid "Womens Track"
    2218 msgstr ""
    2219 
    2220 #: includes/mstw-tr-utility-functions.php:2211
    2221 msgid "Volleyball"
    2222 msgstr ""
    2223 
    2224 #: includes/mstw-tr-utility-functions.php:2213
    2225 msgid "Mens Volleyball"
    2226 msgstr ""
    2227 
    2228 #: includes/mstw-tr-utility-functions.php:2214
    2229 msgid "Womens Volleyball"
    2230 msgstr ""
    2231 
    2232 #: includes/mstw-tr-utility-functions.php:2216
    2233 msgid "Water Polo"
    2234 msgstr ""
    2235 
    2236 #: includes/mstw-utility-functions.php:182
     2043#: includes/mstw-utility-functions.php:198
    22372044msgid "Mon"
    22382045msgstr ""
    22392046
    2240 #: includes/mstw-utility-functions.php:183
     2047#: includes/mstw-utility-functions.php:199
    22412048msgid "Tue"
    22422049msgstr ""
    22432050
    2244 #: includes/mstw-utility-functions.php:184
     2051#: includes/mstw-utility-functions.php:200
    22452052msgid "Wed"
    22462053msgstr ""
    22472054
    2248 #: includes/mstw-utility-functions.php:185
     2055#: includes/mstw-utility-functions.php:201
    22492056msgid "Thr"
    22502057msgstr ""
    22512058
    2252 #: includes/mstw-utility-functions.php:186
     2059#: includes/mstw-utility-functions.php:202
    22532060msgid "Fri"
    22542061msgstr ""
    22552062
    2256 #: includes/mstw-utility-functions.php:187
     2063#: includes/mstw-utility-functions.php:203
    22572064msgid "Sat"
    22582065msgstr ""
    22592066
    2260 #: includes/mstw-utility-functions.php:188
     2067#: includes/mstw-utility-functions.php:204
    22612068msgid "Sun"
    22622069msgstr ""
    22632070
    2264 #: includes/mstw-utility-functions.php:191
     2071#: includes/mstw-utility-functions.php:207
    22652072msgid "Monday"
    22662073msgstr ""
    22672074
    2268 #: includes/mstw-utility-functions.php:192
     2075#: includes/mstw-utility-functions.php:208
    22692076msgid "Tuesday"
    22702077msgstr ""
    22712078
    2272 #: includes/mstw-utility-functions.php:193
     2079#: includes/mstw-utility-functions.php:209
    22732080msgid "Wednesday"
    22742081msgstr ""
    22752082
    2276 #: includes/mstw-utility-functions.php:194
     2083#: includes/mstw-utility-functions.php:210
    22772084msgid "Thursday"
    22782085msgstr ""
    22792086
    2280 #: includes/mstw-utility-functions.php:195
     2087#: includes/mstw-utility-functions.php:211
    22812088msgid "Friday"
    22822089msgstr ""
    22832090
    2284 #: includes/mstw-utility-functions.php:196
     2091#: includes/mstw-utility-functions.php:212
    22852092msgid "Saturday"
    22862093msgstr ""
    22872094
    2288 #: includes/mstw-utility-functions.php:197
     2095#: includes/mstw-utility-functions.php:213
    22892096msgid "Sunday"
    22902097msgstr ""
    22912098
    2292 #: includes/mstw-utility-functions.php:200
     2099#: includes/mstw-utility-functions.php:216
    22932100msgid "January"
    22942101msgstr ""
    22952102
    2296 #: includes/mstw-utility-functions.php:201
     2103#: includes/mstw-utility-functions.php:217
    22972104msgid "February"
    22982105msgstr ""
    22992106
    2300 #: includes/mstw-utility-functions.php:202
     2107#: includes/mstw-utility-functions.php:218
    23012108msgid "March"
    23022109msgstr ""
    23032110
    2304 #: includes/mstw-utility-functions.php:203
     2111#: includes/mstw-utility-functions.php:219
    23052112msgid "April"
    23062113msgstr ""
    23072114
    2308 #: includes/mstw-utility-functions.php:204
    2309 #: includes/mstw-utility-functions.php:218
     2115#: includes/mstw-utility-functions.php:220
     2116#: includes/mstw-utility-functions.php:234
    23102117msgid "May"
    23112118msgstr ""
    23122119
    2313 #: includes/mstw-utility-functions.php:205
     2120#: includes/mstw-utility-functions.php:221
    23142121msgid "June"
    23152122msgstr ""
    23162123
    2317 #: includes/mstw-utility-functions.php:206
     2124#: includes/mstw-utility-functions.php:222
    23182125msgid "July"
    23192126msgstr ""
    23202127
    2321 #: includes/mstw-utility-functions.php:207
     2128#: includes/mstw-utility-functions.php:223
    23222129msgid "August"
    23232130msgstr ""
    23242131
    2325 #: includes/mstw-utility-functions.php:208
     2132#: includes/mstw-utility-functions.php:224
    23262133msgid "September"
    23272134msgstr ""
    23282135
    2329 #: includes/mstw-utility-functions.php:209
     2136#: includes/mstw-utility-functions.php:225
    23302137msgid "October"
    23312138msgstr ""
    23322139
    2333 #: includes/mstw-utility-functions.php:210
     2140#: includes/mstw-utility-functions.php:226
    23342141msgid "November"
    23352142msgstr ""
    23362143
    2337 #: includes/mstw-utility-functions.php:211
     2144#: includes/mstw-utility-functions.php:227
    23382145msgid "December"
    23392146msgstr ""
    23402147
    2341 #: includes/mstw-utility-functions.php:214
     2148#: includes/mstw-utility-functions.php:230
    23422149msgid "Jan"
    23432150msgstr ""
    23442151
    2345 #: includes/mstw-utility-functions.php:215
     2152#: includes/mstw-utility-functions.php:231
    23462153msgid "Feb"
    23472154msgstr ""
    23482155
    2349 #: includes/mstw-utility-functions.php:216
     2156#: includes/mstw-utility-functions.php:232
    23502157msgid "Mar"
    23512158msgstr ""
    23522159
    2353 #: includes/mstw-utility-functions.php:217
     2160#: includes/mstw-utility-functions.php:233
    23542161msgid "Apr"
    23552162msgstr ""
    23562163
    2357 #: includes/mstw-utility-functions.php:219
     2164#: includes/mstw-utility-functions.php:235
    23582165msgid "Jun"
    23592166msgstr ""
    23602167
    2361 #: includes/mstw-utility-functions.php:220
     2168#: includes/mstw-utility-functions.php:236
    23622169msgid "Jul"
    23632170msgstr ""
    23642171
    2365 #: includes/mstw-utility-functions.php:221
     2172#: includes/mstw-utility-functions.php:237
    23662173msgid "Aug"
    23672174msgstr ""
    23682175
    2369 #: includes/mstw-utility-functions.php:222
     2176#: includes/mstw-utility-functions.php:238
    23702177msgid "Sep"
    23712178msgstr ""
    23722179
    2373 #: includes/mstw-utility-functions.php:223
     2180#: includes/mstw-utility-functions.php:239
    23742181msgid "Oct"
    23752182msgstr ""
    23762183
    2377 #: includes/mstw-utility-functions.php:224
     2184#: includes/mstw-utility-functions.php:240
    23782185msgid "Nov"
    23792186msgstr ""
    23802187
    2381 #: includes/mstw-utility-functions.php:225
     2188#: includes/mstw-utility-functions.php:241
    23822189msgid "Dec"
    23832190msgstr ""
    23842191
    23852192#. translators: %s: plugin name & version
    2386 #: mstw-team-rosters.php:149
     2193#: mstw-team-rosters.php:150
    23872194#, php-format
    23882195msgid ""
     
    23912198msgstr ""
    23922199
    2393 #: mstw-team-rosters.php:172
     2200#: mstw-team-rosters.php:173
    23942201msgid "MSTW Admin"
    23952202msgstr ""
    23962203
    2397 #: mstw-team-rosters.php:201
     2204#: mstw-team-rosters.php:202
    23982205msgid "MSTW Team Rosters Admin"
    23992206msgstr ""
    24002207
    2401 #: theme-templates/single-player.php:61
     2208#: theme-templates/single-player.php:37 theme-templates/single-player.php:41
     2209msgid "fatal error encountered in single-player"
     2210msgstr ""
     2211
     2212#: theme-templates/single-player.php:78
    24022213msgid "Unspecified"
    24032214msgstr ""
    24042215
    2405 #: theme-templates/single-player.php:62
     2216#: theme-templates/single-player.php:79
    24062217msgid "unknown"
    24072218msgstr ""
    24082219
    2409 #: theme-templates/single-player.php:128
     2220#: theme-templates/single-player.php:154
    24102221msgid "Update Player"
    24112222msgstr ""
    24122223
    2413 #. Plugin Name of the plugin/theme
    2414 msgid "MSTW Team Rosters"
     2224#: theme-templates/taxonomy-team.php:81
     2225msgid "Not Found"
    24152226msgstr ""
    24162227
  • team-rosters/trunk/mstw-team-rosters.php

    r3270053 r3319253  
    44 * Plugin URI:   http://shoalsummitsolutions.com
    55 * Description:  Manage & display team rosters. Front end displays include roster tables, player galleries, and single player profiles.
    6  * Version:      4.8
     6 * Version:      4.8.1
    77 * Requires at least: 3.4.2
    88 * Requires PHP: 5.6
     
    7979 // ----------------------------------------------------------------
    8080 // add ajax action for the manage rosters screen
    81  // mstw_bb_ajax_callback( ) is in mstw-bb-admin.php
     81 // mstw_tr_ajax_callback( ) is in mstw-tr-admin.php
    8282 //
    8383 add_action( 'wp_ajax_team_rosters', 'mstw_tr_ajax_callback' );
     
    112112
    113113 function mstw_tr_register_activation_hook( ) {
    114     // Need mstw-tr-utility-functions.php for mstw_tr_log_msg()
     114    // mstw_log_msg( 'mstw_tr_register_activation_hook:' );
     115     
    115116    require_once( plugin_dir_path( __FILE__ ) . 'includes/mstw-tr-utility-functions.php' );
    116117   
     
    149150                __( '%1$s requires WordPress %2$s or higher, and has been deactivated! Please upgrade WordPress and try again.', 'team-rosters' ), $plugin_data['Name'], $version );
    150151           
    151             die( $die_msg );
     152            die( esc_html( $die_msg ) );
    152153
    153154        }
     
    189190        }
    190191        else
    191             mstw_tr_log_msg( "Oops, failed to add MSTW Admin role. Already exists?" );
     192            mstw_log_msg( "Oops, failed to add MSTW Admin role. Already exists?" );
    192193       
    193194        //
     
    213214        }
    214215        else {
    215             mstw_tr_log_msg( "Oops, failed to add MSTW Schedules & Scoreboards Admin role. Already exists?" );
     216            mstw_log_msg( "Oops, failed to add MSTW Schedules & Scoreboards Admin role. Already exists?" );
    216217        }
    217218   
     
    280281        else {
    281282            $role_name = ( $role_name == null ) ? 'null' : $role_name;
    282             mstw_tr_log_msg( 'Bad args passed to mstw_tr_add_caps( ). $role_name = ' . $role_name . ' and $role_obj = null' );
     283            mstw_log_msg( 'Bad args passed to mstw_tr_add_caps( ). $role_name = ' . $role_name . ' and $role_obj = null' );
    283284        }
    284285       
     
    380381    // Roster Table settings
    381382    //
    382     echo ".mstw-tr-table thead tr th { \n";
    383         echo mstw_tr_build_css_rule( $options, 'table_head_text', 'color' );
    384         echo mstw_tr_build_css_rule( $options, 'table_head_bkgd', 'background-color' );
    385     echo "} \n";
    386    
    387     echo "h1.mstw-tr-roster-title { \n";
    388         echo mstw_tr_build_css_rule( $options, 'table_title_color', 'color' );     
    389     echo "} \n";
    390    
    391     echo '.mstw-tr-table tbody tr:nth-child(odd) td {';//'tr.mstw-tr-odd {';
    392         echo mstw_tr_build_css_rule( $options, 'table_odd_row_text', 'color' );
    393         echo mstw_tr_build_css_rule( $options, 'table_odd_row_bkgd', 'background-color' );
    394     echo '}';
    395    
    396     echo '.mstw-tr-table tbody tr:nth-child(even) td {' ; //'tr.mstw-tr-even {';
    397         echo mstw_tr_build_css_rule( $options, 'table_even_row_text', 'color' );
    398         echo mstw_tr_build_css_rule( $options, 'table_even_row_bkgd', 'background-color' );
    399     echo '}';
    400    
    401     echo ".mstw-tr-table tbody tr:nth-child(even) td a,
    402           .mstw-tr-table tbody tr:nth-child(odd) td a   { \n";
    403         echo mstw_tr_build_css_rule( $options, 'table_links_color', 'color' );
    404     echo "} \n";
    405    
    406     echo '.mstw-tr-table tbody tr td,
    407          .mstw-tr-table tbody tr td {';
    408         echo mstw_tr_build_css_rule( $options, 'table_border_color', 'border-top-color' );
    409         echo mstw_tr_build_css_rule( $options, 'table_border_color', 'border-bottom-color' );
    410         echo mstw_tr_build_css_rule( $options, 'table_border_color', 'border-left-color' );
    411         echo mstw_tr_build_css_rule( $options, 'table_border_color', 'border-right-color' );
    412     echo '}';
    413    
    414     echo '.mstw-tr-table tbody tr td img {';
    415         echo mstw_tr_build_css_rule( $options, 'table_photo_width', 'width', 'px' );
    416         echo mstw_tr_build_css_rule( $options, 'table_photo_height', 'height', 'px' );
    417     echo '}';
     383    echo wp_kses_post( ".mstw-tr-table thead tr th { \n" );
     384        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_head_text', 'color' ) );
     385        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_head_bkgd', 'background-color' ) );
     386    echo wp_kses_post( "} \n" );
     387   
     388    echo wp_kses_post( "h1.mstw-tr-roster-title { \n" );
     389        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_title_color', 'color' ) );     
     390    echo wp_kses_post( "} \n");
     391   
     392    echo wp_kses_post( ".mstw-tr-table tbody tr:nth-child(odd) td { \n" );
     393        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_odd_row_text', 'color' ) );
     394        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_odd_row_bkgd', 'background-color' ) );
     395    echo wp_kses_post( '}' );
     396   
     397    echo wp_kses_post( '.mstw-tr-table tbody tr:nth-child(even) td {' );
     398        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_even_row_text', 'color' ) );
     399        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_even_row_bkgd', 'background-color' ) );
     400    echo wp_kses_post( '}' );
     401   
     402    echo wp_kses_post( ".mstw-tr-table tbody tr:nth-child(even) td a,
     403          .mstw-tr-table tbody tr:nth-child(odd) td a   { \n" );
     404        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_links_color', 'color' ) );
     405    echo wp_kses_post( "} \n" );
     406   
     407    echo wp_kses_post( '.mstw-tr-table tbody tr td,
     408         .mstw-tr-table tbody tr td {' );
     409        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_border_color', 'border-top-color' ) );
     410        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_border_color', 'border-bottom-color' ) );
     411        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_border_color', 'border-left-color' ) );
     412        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_border_color', 'border-right-color' ) );
     413    echo wp_kses_post( '}' );
     414   
     415    echo wp_kses_post( '.mstw-tr-table tbody tr td img {' );
     416        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_photo_width', 'width', 'px' ) );
     417        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_photo_height', 'height', 'px' ) );
     418    echo wp_kses_post( '}' );
    418419   
    419420    //
    420421    // Roster Table 2 Settings
    421422    //
    422     echo "div.roster-sort-controls h1.mstw-tr-roster-title { \n";
    423         echo mstw_tr_build_css_rule( $options, 'table2_title_color', 'color' );     
    424     echo "} \n";
    425    
    426     echo "div.mstw-tr-roster-player-bio a, div.mstw-tr-roster-player-number-name h3.player-name a { \n";
    427         echo mstw_tr_build_css_rule( $options, 'table2_links_color', 'color' );
    428     echo "} \n";
    429    
    430     echo '.mstw-tr-roster-player-pertinents .mstw-tr-roster-player-number-name span.jersey {';
    431         echo mstw_tr_build_css_rule( $options, 'table2_jersey_text', 'color' );
    432         echo mstw_tr_build_css_rule( $options, 'table2_jersey_bkgd', 'background-color' );
    433     echo '}';
    434    
    435     echo 'li.mstw-tr-roster-player:nth-child(even) div.mstw-tr-roster-player-container {' ;
    436         echo mstw_tr_build_css_rule( $options, 'table2_even_row_text', 'color' );
    437         echo mstw_tr_build_css_rule( $options, 'table2_even_row_bkgd', 'background-color' );
    438     echo '}';
    439    
    440     echo 'li.mstw-tr-roster-player:nth-child(odd) div.mstw-tr-roster-player-container {' ;
    441         echo mstw_tr_build_css_rule( $options, 'table2_odd_row_text', 'color' );
    442         echo mstw_tr_build_css_rule( $options, 'table2_odd_row_bkgd', 'background-color' );
    443     echo '}';
     423    echo wp_kses_post( "div.roster-sort-controls h1.mstw-tr-roster-title { \n" );
     424        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table2_title_color', 'color' ) );     
     425    echo wp_kses_post( "} \n" );
     426   
     427    echo wp_kses_post( "div.mstw-tr-roster-player-bio a, div.mstw-tr-roster-player-number-name h3.player-name a { \n" );
     428        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table2_links_color', 'color' ) );
     429    echo wp_kses_post( "} \n" );
     430   
     431    echo wp_kses_post( '.mstw-tr-roster-player-pertinents .mstw-tr-roster-player-number-name span.jersey {' );
     432        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table2_jersey_text', 'color' ) );
     433        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table2_jersey_bkgd', 'background-color' ) );
     434    echo wp_kses_post( '}' );
     435   
     436    echo wp_kses_post( 'li.mstw-tr-roster-player:nth-child(even) div.mstw-tr-roster-player-container {'  );
     437        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table2_even_row_text', 'color' ) );
     438        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table2_even_row_bkgd', 'background-color' ) );
     439    echo wp_kses_post( '}' );
     440   
     441    echo wp_kses_post( 'li.mstw-tr-roster-player:nth-child(odd) div.mstw-tr-roster-player-container {'  );
     442        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table2_odd_row_text', 'color' ) );
     443        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table2_odd_row_bkgd', 'background-color' ) );
     444    echo wp_kses_post( '}' );
    444445
    445446    //
    446447    // Player Profile Settings
    447448    //
    448     echo ".player-header { \n";
    449         echo mstw_tr_build_css_rule( $options, 'sp_main_bkgd_color', 'background-color' );
    450     echo "} \n";
    451    
    452     echo "#player-name-nbr { \n";
    453         echo mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' );
    454     echo "} \n";
    455    
    456     echo "table#player-info-table { \n";
    457         echo mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' );
    458     echo "} \n";
    459    
    460     echo ".player-bio { \n";
    461         echo mstw_tr_build_css_rule( $options, 'sp_bio_border_color', 'border-color' );
    462     echo '}';
    463    
    464     echo ".player-bio h1, .player-bio h2, .player-bio h3 { \n";
    465         echo mstw_tr_build_css_rule( $options, 'sp_bio_header_color', 'color' );
    466     echo "}\n";
    467    
    468     echo ".player-bio { \n";
    469         echo mstw_tr_build_css_rule( $options, 'sp_bio_text_color', 'color' );
    470     echo "}\n";
    471    
    472     echo ".player-bio { \n";
    473         echo mstw_tr_build_css_rule( $options, 'sp_bio_bkgd_color', 'background-color' );
    474     echo "}\n";
    475    
    476     echo "h1.player-head-title, .player-team-title { \n";
    477         echo mstw_tr_build_css_rule( $options, 'table_title_color', 'color' );
    478     echo "}\n";
    479    
    480     echo "h1.mstw_tr_roster_title { \n";
    481         echo mstw_tr_build_css_rule( $options, 'table_title_color', 'color' );
    482     echo "}\n";
    483    
    484     echo "div#player-photo img, div#team-logo img { \n";
    485         echo mstw_tr_build_css_rule( $options, 'sp_image_width', 'width', 'px' );
    486         echo mstw_tr_build_css_rule( $options, 'sp_image_height', 'height', 'px' );
    487     echo "}\n";
    488    
    489     echo "table#player-info { \n";
    490         echo mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' );
    491     echo "}\n";
     449    echo wp_kses_post( ".player-header { \n" );
     450        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_main_bkgd_color', 'background-color' ) );
     451    echo wp_kses_post( "} \n" );
     452   
     453    echo wp_kses_post( "#player-name-nbr { \n" );
     454        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' ) );
     455    echo wp_kses_post( "} \n" );
     456   
     457    echo wp_kses_post( "table#player-info-table { \n" );
     458        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' ) );
     459    echo wp_kses_post( "} \n" );
     460   
     461    echo wp_kses_post( ".player-bio { \n" );
     462        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_bio_border_color', 'border-color' ) );
     463    echo wp_kses_post( '}' );
     464   
     465    echo wp_kses_post( ".player-bio h1, .player-bio h2, .player-bio h3 { \n" );
     466        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_bio_header_color', 'color' ) );
     467    echo wp_kses_post( "}\n" );
     468   
     469    echo wp_kses_post( ".player-bio { \n" );
     470        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_bio_text_color', 'color' ) );
     471    echo wp_kses_post( "}\n" );
     472   
     473    echo wp_kses_post( ".player-bio { \n" );
     474        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_bio_bkgd_color', 'background-color' ) );
     475    echo wp_kses_post( "}\n" );
     476   
     477    echo wp_kses_post( "h1.player-head-title, .player-team-title { \n" );
     478        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_title_color', 'color' ) );
     479    echo wp_kses_post( "}\n" );
     480   
     481    echo wp_kses_post( "h1.mstw_tr_roster_title { \n" );
     482        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_title_color', 'color' ) );
     483    echo wp_kses_post( "}\n" );
     484   
     485    echo wp_kses_post( "div#player-photo img, div#team-logo img { \n" );
     486        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_image_width', 'width', 'px' ) );
     487        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_image_height', 'height', 'px' ) );
     488    echo wp_kses_post( "}\n" );
     489   
     490    echo wp_kses_post( "table#player-info { \n" );
     491        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' ) );
     492    echo wp_kses_post( "}\n" );
    492493   
    493494    //
    494495    // Player Gallery Settings
    495496    //
    496     echo ".player-tile { \n";
    497         echo mstw_tr_build_css_rule( $options, 'sp_main_bkgd_color', 'background-color' );
    498     echo "} \n";
    499    
    500     //echo ".player-tile { \n";
    501     //  echo mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' );
    502     //echo "} \n";
    503    
    504     echo ".player-tile img { \n";
    505         echo mstw_tr_build_css_rule( $options, 'sp_image_width', 'width', 'px' );
    506         echo mstw_tr_build_css_rule( $options, 'sp_image_height', 'height', 'px' );
    507     echo "} \n";
    508    
    509     echo ".player-name-number { \n";
    510         echo mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' );
    511        
    512     echo "} \n";
    513    
    514     echo ".player-name-number .player-name a:link, .player-name-number .player-name a:visited { \n";
    515         echo mstw_tr_build_css_rule( $options, 'gallery_links_color', 'color' );
    516     echo "}\n";
    517    
    518     echo ".player-info-container table.player-info { \n";
    519         echo mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' );
    520     echo "}\n";
    521    
    522    
    523    
    524     echo '</style>';
     497    echo wp_kses_post( ".player-tile { \n" );
     498        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_main_bkgd_color', 'background-color' ) );
     499    echo wp_kses_post( "} \n" );
     500   
     501    echo wp_kses_post( ".player-tile img { \n" );
     502        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_image_width', 'width', 'px' ) );
     503        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_image_height', 'height', 'px' ) );
     504    echo wp_kses_post( "} \n" );
     505   
     506    echo wp_kses_post( ".player-name-number { \n" );
     507        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' ) );
     508    echo wp_kses_post( "} \n" );
     509   
     510    echo wp_kses_post( ".player-name-number .player-name a:link, .player-name-number .player-name a:visited { \n" );
     511        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'gallery_links_color', 'color' ) );
     512    echo wp_kses_post( "}\n" );
     513   
     514    echo wp_kses_post( ".player-info-container table.player-info { \n" );
     515        echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' ) );
     516    echo wp_kses_post( "}\n" );
     517   
     518   
     519   
     520    echo wp_kses_post( '</style>' );
    525521   
    526522}
     
    558554           
    559555                // Need the team slug to set query
    560                 $uri_array = explode( '/', $_SERVER['REQUEST_URI'] );   
     556                $requestURI = mstw_safe_get( 'REQUEST_URI',  $_SERVER, '' );
     557                $uri_array = explode( '/', $requestURI );   
    561558                $team_slug = $uri_array[sizeof( $uri_array )-2];
    562559               
     
    582579    }  //End: mstw_tr_get_posts()
    583580
    584 // ----------------------------------------------------------------
    585 // Deactivate, request upgrade, and exit if WP version is not right
    586 
    587     //add_action( 'admin_init', 'mstw_tr_requires_wp_ver' );
    588 
    589     function mstw_tr_requires_wp_ver() {
    590         //mstw_log_msg( "mstw_tr_requires_wp_ver:" );
    591         global $wp_version;
    592        
    593         $plugin = plugin_basename( __FILE__ );
    594         $plugin_data = get_plugin_data( __FILE__, false );
    595 
    596         if ( version_compare($wp_version, "4.0", "<" ) ) {
    597             if( is_plugin_active($plugin) ) {
    598                 deactivate_plugins( $plugin );
    599                 wp_die( "'".$plugin_data['Name']."' requires WordPress 3.4.2 or higher, and has been deactivated!
    600                     Please upgrade WordPress and try again.<br /><br />Back to <a href='".admin_url()."'>WordPress admin</a>." );
    601             }
    602         }
    603     }
    604 
    605581 // ----------------------------------------------------------------
    606582 // Load the CSS styles and Java scripts
     
    608584 add_action( 'wp_enqueue_scripts', 'mstw_tr_enqueue_styles' );
    609585
    610  function mstw_tr_enqueue_styles( ) {   
     586function mstw_tr_enqueue_styles( ) {   
    611587    //mstw_log_msg( "mstw_tr_enqueue_styles:" );
    612588   
     
    631607    if ( file_exists( $custom_stylesheet ) ) {
    632608        $custom_stylesheet_url = get_stylesheet_directory_uri( ) . '/mstw-tr-custom-styles.css';
    633         wp_register_style( 'mstw_tr_custom_style', $custom_stylesheet_url );
    634         wp_enqueue_style( 'mstw_tr_custom_style' );
     609        //wp_register_style( 'mstw_tr_custom_style', $custom_stylesheet_url );
     610        //wp_enqueue_style( 'mstw_tr_custom_style' );
    635611        wp_enqueue_style( 'mstw_tr_custom_style',
    636612                                            $custom_stylesheet_url,
     
    681657       
    682658        //wp_localize_script( 'multi-team-schedule-ajax', 'mstw_multi_team_schedule_ajax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) );       
    683         wp_localize_script( 'tr-sort-roster-2', 'mstw_tr_sort_roster_2_ajax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) );   
     659        wp_localize_script( 'tr-sort-roster-2', 'mstw_tr_sort_roster_2_ajax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'ajax-nonce' ) ) );   
    684660                         
    685661                         
     
    695671function mstw_tr_add_feat_img( ) {
    696672    //mstw_log_msg( "mstw_tr_add_feat_img:" );
     673   
    697674    if ( !current_theme_supports( 'post-thumbnails' ) ) {
    698675        add_theme_support( 'post-thumbnails' );
     
    739716function mstw_tr_sort_roster_ajax_callback ( ) {
    740717    //mstw_log_msg( 'mstw_tr_sort_roster_ajax_callback:' );
    741 
     718    //mstw_log_msg( $_POST );
     719   
    742720    $response = array(
    743721                                'response' => 'sorted',
     
    749727    if ( array_key_exists( 'real_action', $_POST ) ) {
    750728       
    751         $action = $_POST['real_action'];
     729        $action = mstw_safe_get( 'real_action', $_POST, 'sort_roster' );
    752730
    753731        switch( $action ) {
    754732            case 'sort_roster':
    755                 $team = $_POST[ 'team' ];
     733                $team = mstw_safe_get( 'team',  $_POST, '' );
    756734               
    757                 $table_id = $_POST[ 'table_id' ];
     735                $table_id = mstw_safe_get( 'table_id', $_POST, '' );
    758736                $response[ 'table_id' ] = $table_id;
    759737               
    760                 $args_str = stripslashes( $_POST[ 'args_str' ] );
     738                $args_str = stripslashes( mstw_safe_get( 'args_str', $_POST, '' ) );
    761739               
    762                 $sort_value = $_POST[ 'sort_value' ];
     740                $sort_value = mstw_safe_get( 'sort_value', $_POST, 'numeric' );
    763741
    764742                $html = do_shortcode( "[mstw_tr_roster_2 $args_str table_id=$table_id no_controls=1 sort_order=$sort_value ]" );
     
    768746               
    769747            default:
    770                 mstw_log_msg( "Error: Invalid action, $action, on page: " . $_POST['page'] );
    771                 $response['error'] = __( 'AJAX Error: invalid action.', 'team-rosters' );
     748                if (isset( $_POST['page'] ) ) {
     749                    mstw_log_msg( "Error: Invalid action, $action, on page: " . sanitize_text_field( wp_unslash( $_POST['page'] ) ) );
     750                    $response['error'] = __( 'AJAX Error: invalid action.', 'team-rosters' );
     751                }
    772752                break;
    773753        }
  • team-rosters/trunk/readme.txt

    r3270053 r3319253  
    44Tags: sports,teams,rosters,players,team rosters 
    55Requires at least: 3.4.2
    6 Tested up to: 6.7
    7 Stable tag: 4.8
     6Tested up to: 6.8
     7Stable tag: 4.8.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4242
    4343== Changelog ==
     44
     45== 4.8.1 ==
     46* Re-corrected security issues identified by the Wordpress team.
    4447
    4548= 4.8 =
  • team-rosters/trunk/theme-templates/single-player.php

    r3270053 r3319253  
    2525   
    2626    //mstw_log_msg( 'single-player.php' );
    27        
     27    //mstw_log_msg( $_GET );
     28       
     29    //Validate the nonce
     30    //$nonce = mstw_safe_get( 'mstw-tr-nonce', $_GET, '' );
     31   
     32    if ( isset( $_GET['mstw-tr-nonce'] ) ) {
     33        //$safeNonce = mstw_really_safe_get( 'mstw-tr-nonce', $_GET, '' );
     34        //$safeNonce = $_GET[ 'mstw-tr-nonce' ];
     35        if ( false == wp_verify_nonce(  sanitize_text_field( wp_unslash( $_GET[ 'mstw-tr-nonce' ] ) ), 'single-player' ) ) {
     36            mstw_log_msg( "single-player: invalid nonce" );
     37            die( esc_html__('fatal error encountered in single-player', 'team-rosters' ) );
     38        }
     39    } else {
     40        mstw_log_msg( "single-player: nonce not found" );
     41        die( esc_html__('fatal error encountered in single-player', 'team-rosters' ) );
     42    }
     43   
     44   
    2845    // Get the settings from the admin page
    2946    $options = get_option( 'mstw_tr_options' );
     
    3451    // Set the roster format based on the page args & plugin settings
    3552    $roster_type = ( isset( $_GET['roster_type'] ) && $_GET['roster_type'] != '' ) ?
    36                         $_GET['roster_type'] :
     53                        sanitize_text_field( wp_unslash( $_GET['roster_type'] ) ) :
    3754                        $options['roster_type'];
    3855                       
    39     $team_slug =  ( isset( $_GET['team'] ) && $_GET['team'] != '' ) ?
    40                                     $_GET['team'] :
     56    $team_slug =  ( isset( $_GET['team'] ) && sanitize_text_field( wp_unslash( $_GET['team'] ) ) != '' ) ?
     57                                    sanitize_text_field( wp_unslash( $_GET['team'] ) ) :
    4158                                    '';
    4259   
     
    6582   
    6683    if ( 'custom' == $roster_type ) {
    67         $argsStr =  ( isset( $_GET['args'] ) && $_GET['args'] != '' ) ?
    68                                     $_GET['args'] :
     84        $argsStr =  ( isset( $_GET['args'] ) && sanitize_text_field( wp_unslash( $_GET['args'] ) ) != '' ) ?
     85                                    sanitize_text_field( wp_unslash( $_GET['args'] ) ) :
    6986                                    '';
     87        $newArgsStr = mstw_safe_get( 'args', $_GET, '' );
     88       
     89        //mstw_log_msg( 'argsStr:' );
     90        //mstw_log_msg( $argsStr );
     91        //mstw_log_msg( 'newArgsStr:' );
     92        //mstw_log_msg( $newArgsStr );
     93
    7094                                   
    7195        if ( '' != $argsStr ) {
     
    107131                        <div class="player-select-controls MSTW-flex-row alignwide">
    108132                            <?php
    109                             $formAction = get_site_url( null, "player/{$post->post_name}/?roster_type=$roster_type&team=$team_slug" );
     133                            $nonce = wp_create_nonce( 'single-player' );
     134                            $formAction = get_site_url( null, "player/{$post->post_name}/?roster_type=$roster_type&team=$team_slug&mstw-tr-nonce=$nonce" );
    110135                            if ( 'custom' == $roster_type ) {
    111136                                $serialArgs = base64_encode( serialize( $options ) );
     
    115140                           
    116141                            <form id="single-player-profile" method="POST" action= "<?php echo esc_url( $formAction ); ?>">
     142                                <?php wp_nonce_field( 'single-player', 'mstw-tr-nonce' ); ?>
    117143                                <input type='hidden' name='current-player' id='current-player' value= <?php echo esc_html( $post->post_name ) ?> />
    118144                                <div class="player-select-list ms-control">
  • team-rosters/trunk/theme-templates/taxonomy-team.php

    r3270053 r3319253  
    2323    get_header( );
    2424   
    25     $siteURL = "//".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
     25    if ( !isset( $_SERVER['REQUEST_URI'] ) or !isset( $_SERVER['HTTP_HOST'] ) ) {
     26        mstw_log_msg( '$_SERVER[REQUEST_URI] or $_SERVER[HTTP_HOST] is not set. Returning nada' );
     27        return;
     28    }
    2629   
     30    $requestURI = esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) );
     31    $httpHost = esc_url_raw( wp_unslash( $_SERVER['HTTP_HOST'] ) );
     32    $siteURL = "//" . $httpHost . $requestURI;
    2733    $parsedURL = wp_parse_url( $siteURL, PHP_URL_QUERY );
    2834   
     
    7379
    7480    // figure out the team name - for the title (if shown) and for team-based styles
    75     $uri_array = explode( '/', $_SERVER['REQUEST_URI'] );   
    76     $team_slug = $uri_array[sizeof( $uri_array )-2];
    77     $term = get_term_by( 'slug', $team_slug, 'mstw_tr_team' );
    78     $team_name = $term->name;
     81    $team_name = __('Not Found', 'team-rosters' );
     82   
     83    if ( isset( $_SERVER['REQUEST_URI'] ) ) {   
     84        $requestURI = esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) );
     85        $uri_array = explode( '/', $requestURI );   
     86        /*mstw_log_msg( 'uri array' );
     87        mstw_log_msg( $uri_array );
     88        $us_uri_array = explode( '/', wp_unslash( $_SERVER['REQUEST_URI'] ) );
     89        mstw_log_msg( 'unslashed uri array' );
     90        mstw_log_msg( $us_uri_array );
     91        */
     92        $team_slug = $uri_array[sizeof( $uri_array )-2];
     93        $term = get_term_by( 'slug', $team_slug, 'mstw_tr_team' );
     94        $team_name = $term->name;
     95    }   
    7996    ?>
    8097
Note: See TracChangeset for help on using the changeset viewer.