[wp-trac] [WordPress Trac] #37893: Implementation of is_registered_sidebar() doesn't match its documented signature
WordPress Trac
noreply at wordpress.org
Thu Oct 6 15:39:22 UTC 2016
#37893: Implementation of is_registered_sidebar() doesn't match its documented
signature
-------------------------------------+-------------------
Reporter: mdgl | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7
Component: Widgets | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: docs
-------------------------------------+-------------------
Comment (by PieWP):
The usage of is_int is to type specific, it would return false on a string
value of "1". The usage of is_numeric solves that issue.
As commeted by Rachelbaker in slack chat, tested it with
"var_dump(is_numeric('1love1heart'));" it returns false.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37893#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list