WordPress.org

Make WordPress Core

Ticket #43374: 43374.patch

File 43374.patch, 439 bytes (added by desrosj, 3 years ago)
  • src/wp-includes/theme.php

     
    370370function get_theme_roots() {
    371371        global $wp_theme_directories;
    372372
    373         if ( count( $wp_theme_directories ) <= 1 ) {
     373        if ( is_countable( $wp_theme_directories ) && count( $wp_theme_directories ) <= 1 ) {
    374374                return '/themes';
    375375        }
    376376