[wp-trac] [WordPress Trac] #41980: show_in_menu doesn't work with int value
WordPress Trac
noreply at wordpress.org
Mon Sep 25 15:40:31 UTC 2017
#41980: show_in_menu doesn't work with int value
-------------------------------+-----------------------------
Reporter: truongwp | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Keywords:
Focuses: administration |
-------------------------------+-----------------------------
The `show_in_menu` parameter in `register_post_type()` function doesn't
work with int value (or some other value which be treated as true if
convert to boolean). I tried to use `1` instead of `true`, some other
parameters work except `show_in_menu`. The problem is WordPress use `Not
Identical` operator instead of `Not Equal` to check the value of
`show_in_menu` when render admin menu items.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41980>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list