[wp-trac] [WordPress Trac] #13572: Wrong data-type in template.php

WordPress Trac wp-trac at lists.automattic.com
Thu May 27 11:53:37 UTC 2010


#13572: Wrong data-type in template.php
--------------------------+-------------------------------------------------
 Reporter:  dz0ny         |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  high          |   Milestone:  Unassigned
Component:  Template      |     Version:  3.0       
 Severity:  major         |    Keywords:  has-patch 
--------------------------+-------------------------------------------------
 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

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13572>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list