Skip to content

Commit ad652aa

Browse files
fix: make sure sponsored categories, tags show sponsor info (#289)
1 parent 4bb9148 commit ad652aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/theme-helpers.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,13 @@ function get_sponsors_for_archive( $term_id = null, $scope = null, $logo_options
223223
if ( ! is_archive() ) {
224224
return new WP_Error(
225225
'newspack-sponsors__is_not_archive',
226-
__( 'Please provide a $term_id if not invoking within a term archive page.' )
226+
__( 'Please provide a $term_id if not invoking within a term archive page.', 'newspack-sponsors' )
227227
);
228228
}
229229

230230
$term = get_queried_object();
231231
} else {
232-
$term = get_term_by( 'id', $term_id );
232+
$term = get_term_by( 'term_taxonomy_id', $term_id );
233233
}
234234

235235
// Return false if there's no term for this $term_id.

0 commit comments

Comments
 (0)