WordPress.org

Make WordPress Core

Changeset 14320


Ignore:
Timestamp:
04/30/10 17:37:42 (5 years ago)
Author:
markjaquith
Message:

Make sure sidebars_widgets is an array. If it is a string (no idea how, but it happens), we get a fatal error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/widgets.php

    r14154 r14320  
    10731073    } 
    10741074 
    1075     if ( isset($sidebars_widgets['array_version']) ) 
     1075    if ( is_array( $sidebars_widgets ) && isset($sidebars_widgets['array_version']) ) 
    10761076        unset($sidebars_widgets['array_version']); 
    10771077 
Note: See TracChangeset for help on using the changeset viewer.