WordPress.org

Make WordPress Core

Ticket #17242: 17242-stdclass-fix.diff

File 17242-stdclass-fix.diff, 360 bytes (added by kawauso, 6 years ago)

Itty bitty patch

  • wp-includes/theme.php

     
    14901490                }
    14911491
    14921492                if ( empty( $headers ) )
    1493                         return stdClass();
     1493                        return stdClass;
    14941494
    14951495                $_wp_random_header = (object) $headers[ array_rand( $headers ) ];
    14961496