Opened 3 years ago
Closed 3 years ago
#13572 closed defect (bug) (invalid)
Wrong data-type in template.php
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Template | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch reporter-feedback dev-feedback |
| Cc: |
Description
Hi, I found another set of bug's this time in wp-admin/includes/template.php, basically
$screen = (object) array('id' => $screen, 'base' => $screen);//really messy
and
$hidden_class = in_array($box['id'], $hidden) ? ' hide-if-js' : '';
There another in strict mode (there is a lot of warnings of wrong data-type) with this code
$hidden_class = in_array($box['id'], $hidden) ? ' hide-if-js' : '';
Result:
Segmentation fault or half displayed page
Expected:
Link editor, Dashboard, Custom menu in theme
Server:
PHP Version 5.2.9-pl2-gentoo
Linux Gentoo 2.6.22-gentoo-r5Spunki #1 SMP Wed Sep 5 17:45:36 CEST 2007 x86_64
Shared hosting
Attachments (1)
Change History (3)
- Keywords reporter-feedback dev-feedback added
- Priority changed from high to normal
- Severity changed from major to normal
Note: See
TracTickets for help on using
tickets.

I don't see any type issues with any of these. $i is an integer, and $hidden is always an array unless the option in the DB gets changed manually.