Skip to content

Commit

Permalink
fix: make sure sponsored categories, tags show sponsor info (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelfulford authored Mar 13, 2024
1 parent 4bb9148 commit ad652aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/theme-helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,13 @@ function get_sponsors_for_archive( $term_id = null, $scope = null, $logo_options
if ( ! is_archive() ) {
return new WP_Error(
'newspack-sponsors__is_not_archive',
__( 'Please provide a $term_id if not invoking within a term archive page.' )
__( 'Please provide a $term_id if not invoking within a term archive page.', 'newspack-sponsors' )
);
}

$term = get_queried_object();
} else {
$term = get_term_by( 'id', $term_id );
$term = get_term_by( 'term_taxonomy_id', $term_id );
}

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

0 comments on commit ad652aa

Please sign in to comment.