#32339 closed defect (bug) (fixed)
Wrong logic for adding category in Press This
Reported by: | pavelevap | Owned by: | azaozz |
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | 4.2 |
Component: | Press This | Keywords: | |
Focuses: | administration | Cc: |
Description
I noticed some strange behaviour and it seems to me, that logic is wrong.
$cat_id
will never return error, because it will be always array with term_id
and term_taxonomy_id
(existed term or created term).
Attachments (1)
Change History (9)
#3
@
9 years ago
@kraftbj: Sure. I could add new category several times to post. See attached screenshot. So, check for term existence does not work...
#4
@
9 years ago
If you check in your category list, all those entries will map to only one and the same category once first added, despite what it looks like. The back-end logic is accurate. The front-end logic could be improved.
#5
@
9 years ago
Yes, this category is not created several times, but it can be confusing.
But following line will never be executed because $cat_id
will never return error:
And that is the cause of this problem?
What was the strange behavior? In either case with the logic, want to make sure the strange behavior is either expected, but perhaps odd, or straight up a bug :)