Opened 3 years ago

Closed 3 years ago

#13572 closed defect (bug) (invalid)

Wrong data-type in template.php

Reported by: dz0ny 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)

bf6704b131adbc0472d6961ab633b7ec59903b10.patch (1.8 KB) - added by dz0ny 3 years ago.

Download all attachments as: .zip

Change History (3)

  • Keywords reporter-feedback dev-feedback added
  • Priority changed from high to normal
  • Severity changed from major to normal

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.

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Re-open with steps to reproduce.

Note: See TracTickets for help on using tickets.