[wp-trac] [WordPress Trac] #18722: Missing link to edit term objects of non-public taxonomy
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 23 15:00:14 UTC 2011
#18722: Missing link to edit term objects of non-public taxonomy
--------------------------+-----------------------
Reporter: johnbillion | Owner: duck_
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.3
Component: Taxonomy | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-----------------------
Changes (by duck_):
* status: closed => reopened
* resolution: fixed =>
Comment:
Replying to [comment:3 duck_]:
> Also includes removal of $post_type global
This causes a notice when adding new terms as
`get_current_screen()->post_type` returns an empty string during the add-
tag AJAX request, so get_post_type_object() returns `null`.
A check should be added before accessing ->show_ui, and we might want to
go back to $post_type global too if the post count should be linked even
for new terms with zero posts.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18722#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list