fix: make sure sponsored categories, tags show sponsor info #289
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
All Submissions:
Changes proposed in this Pull Request:
This PR fixes a regression in the Sponsors plugin, where sponsored categories and tags stopped displaying the sponsor information at the top of their individual archive pages.
This one is a little weird. Just looking at releases, this seems to have stopped working between 1.2.1 and 1.3.0, but I'm not actually sure why -- the changes in 1.3.0 alone don't seem like enough.
On top of that, the fix I landed on was something that was never in this part of the plugin -- the docs for
get_term_by()
say that the taxonomy is optional only if you're usingterm_taxonomy_id
, butid
definitely worked for a while. So I'm not sure if this is the best approach, or if it'd be better to pass the taxonomy toget_term_by()
, or something else. Feedback welcome!See 1200550061930446-as-1206174629624809
How to test the changes in this Pull Request:
Other information: