Remove the term_taxonomy_id from the term array. - #24
Closed
xiffy wants to merge 1 commit into
Closed
Conversation
…s number can interfere with the _selected_ function. data: terms id name 10 so so, 11 the best taxonomy 1 judgements term_taxonomy id taxonomy_id term_id 11 1 10 12 1 11 suppose a post has term 10 attached from taxonomy 1, the $default array now holds term_id => 10, name => "so so", slug => "so-so", term_group => 0, term_taxonomy_id => 11, ... the function selected checks whether the current term_id is in the array presented above, which is both treu for term 10 and 11.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The existence of this id can interfere with the selected function.
terms:
taxonomy:
term_taxonomy:
suppose a post has term 10 attached from taxonomy 1, the $default array now holds
term_id => 10, name => "so so", slug => "so-so", term_group => 0, term_taxonomy_id => 11, ...
the function selected checks whether the current term_id is in the array presented above, which is both treu for term 10 and 11.