[wp-trac] [WordPress Trac] #32339: Wrong logic for adding category in Press This
WordPress Trac
noreply at wordpress.org
Mon May 11 08:38:47 UTC 2015
#32339: Wrong logic for adding category in Press This
--------------------------+-----------------------------
Reporter: pavelevap | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Press This | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
I noticed some strange behaviour and it seems to me, that logic is wrong.
https://core.trac.wordpress.org/browser/tags/4.2.2/src/wp-admin/includes
/class-wp-press-this.php#L209
`$cat_id` will never return error, because it will be always array with
`term_id` and `term_taxonomy_id` (existed term or created term).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32339>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list