WordPress.org

Make WordPress Core

Changeset 19821


Ignore:
Timestamp:
02/03/2012 01:38:03 PM (6 years ago)
Author:
nacin
Message:

Return an empty object properly. see #17242.

File:
1 edited

Legend:

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

    r19815 r19821  
    14911491
    14921492        if ( empty( $headers ) )
    1493             return stdClass();
     1493            return new stdClass;
    14941494
    14951495        $_wp_random_header = (object) $headers[ array_rand( $headers ) ];
Note: See TracChangeset for help on using the changeset viewer.