Tag version 2.6

This commit is contained in:
Brian Miyaji
2018-05-07 17:29:36 +10:00
parent 61c468fa8b
commit 87074fa217
65 changed files with 116 additions and 145 deletions

View File

@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
Description: Add player assignments support to SportsPress.
Author: Savvas
Author URI: http://themeboy.com/
Version: 2.6.0
Version: 2.6
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;
@@ -14,7 +14,7 @@ if ( ! class_exists( 'SportsPress_Player_Assignments' ) ) :
* Main SportsPress Player Assignments Class
*
* @class SportsPress_Player_Assignments
* @version 2.6.0
* @version 2.6
*/
class SportsPress_Player_Assignments {
/**
@@ -36,7 +36,7 @@ class SportsPress_Player_Assignments {
*/
private function define_constants() {
if ( !defined( 'SP_PLAYER_ASSIGNMENTS_VERSION' ) )
define( 'SP_PLAYER_ASSIGNMENTS_VERSION', '2.6.0' );
define( 'SP_PLAYER_ASSIGNMENTS_VERSION', '2.6' );
if ( !defined( 'SP_PLAYER_ASSIGNMENTS_URL' ) )
define( 'SP_PLAYER_ASSIGNMENTS_URL', plugin_dir_url( __FILE__ ) );
if ( !defined( 'SP_PLAYER_ASSIGNMENTS_DIR' ) )
@@ -57,7 +57,7 @@ class SportsPress_Player_Assignments {
if ( 0 === $l_id ) continue;
foreach ( $season as $s_id => $team_id ) {
if ( 0 >= $team_id ) continue;
$serialized = $l_id.'_'.$s_id.'_'.$team_id;
$serialized = intval($l_id).'_'.intval($s_id).'_'.intval($team_id);
add_post_meta( $post_id, 'sp_assignments', $serialized, false );
}
}