Version Description
- Fix - Events not appearing due to filter malfunction.
Download this release
Release Info
Developer | ThemeBoy |
Plugin | SportsPress – Sports Club & League Manager |
Version | 2.7.7 |
Comparing to | |
See all releases |
Code changes from version 2.7.6 to 2.7.7
- changelog.txt +3 -0
- includes/admin/post-types/class-sp-admin-cpt-event.php +5 -3
- license.txt +1 -1
- readme.txt +5 -2
- sportspress.php +4 -4
changelog.txt
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
== SportsPress Changelog ==
|
2 |
|
|
|
|
|
|
|
3 |
= 2.7.6 =
|
4 |
* Feature - Add ability to bulk set events as on time.
|
5 |
* Fix - Players in events not being filtered by team.
|
1 |
== SportsPress Changelog ==
|
2 |
|
3 |
+
= 2.7.7 =
|
4 |
+
* Fix - Events not appearing due to filter malfunction.
|
5 |
+
|
6 |
= 2.7.6 =
|
7 |
* Feature - Add ability to bulk set events as on time.
|
8 |
* Fix - Players in events not being filtered by team.
|
includes/admin/post-types/class-sp-admin-cpt-event.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Post_Types
|
8 |
-
* @version 2.7.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -305,8 +305,10 @@ class SP_Admin_CPT_Event extends SP_Admin_CPT {
|
|
305 |
public function filters_query( $query ) {
|
306 |
global $typenow, $wp_query;
|
307 |
|
308 |
-
|
309 |
-
|
|
|
|
|
310 |
|
311 |
if ( ! empty( $_GET['team'] ) ) {
|
312 |
$query->query_vars['meta_query'][] = array(
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Post_Types
|
8 |
+
* @version 2.7.7
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
305 |
public function filters_query( $query ) {
|
306 |
global $typenow, $wp_query;
|
307 |
|
308 |
+
if ( $typenow == 'sp_event' ) {
|
309 |
+
//Avoid overriding relation operator if already set
|
310 |
+
if ( !isset( $query->query_vars['meta_query']['relation'] ) )
|
311 |
+
$query->query_vars['meta_query']['relation'] = 'AND';
|
312 |
|
313 |
if ( ! empty( $_GET['team'] ) ) {
|
314 |
$query->query_vars['meta_query'][] = array(
|
license.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
SportsPress
|
2 |
|
3 |
-
Copyright
|
4 |
|
5 |
This program is free software; you can redistribute it and/or modify
|
6 |
it under the terms of the GNU General Public License as published by
|
1 |
SportsPress
|
2 |
|
3 |
+
Copyright 2021 by the contributors
|
4 |
|
5 |
This program is free software; you can redistribute it and/or modify
|
6 |
it under the terms of the GNU General Public License as published by
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: ThemeBoy, brianmiyaji, aylaview, savvasha, nabil_kadimi, rochester
|
|
3 |
Tags: calendars, club, club management, esports, events, fixtures, leagues, league management, sports, sports club, sports data, team rosters
|
4 |
Donate link: http://tboy.co/donate
|
5 |
Requires at least: 3.8
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.7.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -240,6 +240,9 @@ When you upgrade to one of the SportsPress Pro licenses, you can simply activate
|
|
240 |
|
241 |
== Changelog ==
|
242 |
|
|
|
|
|
|
|
243 |
= 2.7.6 =
|
244 |
* Feature - Add ability to bulk set events as on time.
|
245 |
* Fix - Players in events not being filtered by team.
|
3 |
Tags: calendars, club, club management, esports, events, fixtures, leagues, league management, sports, sports club, sports data, team rosters
|
4 |
Donate link: http://tboy.co/donate
|
5 |
Requires at least: 3.8
|
6 |
+
Tested up to: 5.7
|
7 |
+
Stable tag: 2.7.7
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
240 |
|
241 |
== Changelog ==
|
242 |
|
243 |
+
= 2.7.7 =
|
244 |
+
* Fix - Events not appearing due to filter malfunction.
|
245 |
+
|
246 |
= 2.7.6 =
|
247 |
* Feature - Add ability to bulk set events as on time.
|
248 |
* Fix - Players in events not being filtered by team.
|
sportspress.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Plugin Name: SportsPress
|
4 |
* Plugin URI: http://themeboy.com/sportspress/
|
5 |
* Description: Manage your club and its players, staff, events, league tables, and player lists.
|
6 |
-
* Version: 2.7.
|
7 |
* Author: ThemeBoy
|
8 |
* Author URI: http://themeboy.com
|
9 |
* Requires at least: 3.8
|
10 |
-
* Tested up to: 5.
|
11 |
*
|
12 |
* Text Domain: sportspress
|
13 |
* Domain Path: /languages/
|
@@ -26,14 +26,14 @@ if ( ! class_exists( 'SportsPress' ) ) :
|
|
26 |
* Main SportsPress Class
|
27 |
*
|
28 |
* @class SportsPress
|
29 |
-
* @version 2.7.
|
30 |
*/
|
31 |
final class SportsPress {
|
32 |
|
33 |
/**
|
34 |
* @var string
|
35 |
*/
|
36 |
-
public $version = '2.7.
|
37 |
|
38 |
/**
|
39 |
* @var SportsPress The single instance of the class
|
3 |
* Plugin Name: SportsPress
|
4 |
* Plugin URI: http://themeboy.com/sportspress/
|
5 |
* Description: Manage your club and its players, staff, events, league tables, and player lists.
|
6 |
+
* Version: 2.7.7
|
7 |
* Author: ThemeBoy
|
8 |
* Author URI: http://themeboy.com
|
9 |
* Requires at least: 3.8
|
10 |
+
* Tested up to: 5.7
|
11 |
*
|
12 |
* Text Domain: sportspress
|
13 |
* Domain Path: /languages/
|
26 |
* Main SportsPress Class
|
27 |
*
|
28 |
* @class SportsPress
|
29 |
+
* @version 2.7.7
|
30 |
*/
|
31 |
final class SportsPress {
|
32 |
|
33 |
/**
|
34 |
* @var string
|
35 |
*/
|
36 |
+
public $version = '2.7.7';
|
37 |
|
38 |
/**
|
39 |
* @var SportsPress The single instance of the class
|