Use term_id where appropriate
This commit is contained in:
@@ -72,7 +72,7 @@ class SportsPress_Lazy_Loading {
|
||||
if ( $league ) {
|
||||
$args['tax_query'][] = array(
|
||||
'taxonomy' => 'sp_league',
|
||||
'field' => 'id',
|
||||
'field' => 'term_id',
|
||||
'terms' => $league,
|
||||
);
|
||||
}
|
||||
@@ -80,7 +80,7 @@ class SportsPress_Lazy_Loading {
|
||||
if ( $season ) {
|
||||
$args['tax_query'][] = array(
|
||||
'taxonomy' => 'sp_season',
|
||||
'field' => 'id',
|
||||
'field' => 'term_id',
|
||||
'terms' => $season,
|
||||
);
|
||||
}
|
||||
@@ -156,7 +156,7 @@ class SportsPress_Lazy_Loading {
|
||||
if ( $leagues ) {
|
||||
$args['tax_query'][] = array(
|
||||
'taxonomy' => 'sp_league',
|
||||
'field' => 'id',
|
||||
'field' => 'term_id',
|
||||
'terms' => wp_list_pluck( $leagues, 'term_id' ),
|
||||
);
|
||||
}
|
||||
@@ -164,7 +164,7 @@ class SportsPress_Lazy_Loading {
|
||||
if ( $seasons ) {
|
||||
$args['tax_query'][] = array(
|
||||
'taxonomy' => 'sp_season',
|
||||
'field' => 'id',
|
||||
'field' => 'term_id',
|
||||
'terms' => wp_list_pluck( $seasons, 'term_id' ),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user