Make WordPress Core

Ticket #43374: #43374.patch

File #43374.patch, 722 bytes (added by teddytime, 7 years ago)

This is a patch that resolves the warning

  • wp-includes/theme.php

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: C:\wamp64\www\wordpress-svn\trunk\src
    # This patch can be applied using context Tools: Patch action on respective folder.
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    370370function get_theme_roots() {
    371371        global $wp_theme_directories;
    372372
    373         if ( count( $wp_theme_directories ) <= 1 ) {
     373        if ( is_array( $wp_theme_directories ) && count( $wp_theme_directories ) <= 1 ) {
    374374                return '/themes';
    375375        }
    376376