Make WordPress Core

Ticket #1370: functions.php.diff

File functions.php.diff, 545 bytes (added by markjaquith, 20 years ago)

patch for 1.6 SVN

  • functions.php

     
    15481548        $themes_dir = @ dir($theme_root);
    15491549        if ($themes_dir) {
    15501550                while(($theme_dir = $themes_dir->read()) !== false) {
    1551                         if (is_dir($theme_root . '/' . $theme_dir)) {
     1551                        if (is_dir($theme_root . '/' . $theme_dir) && is_readable($theme_root . '/' . $theme_dir)) {
    15521552                                if ($theme_dir{0} == '.' || $theme_dir == '..' || $theme_dir == 'CVS') {
    15531553                                        continue;
    15541554                                }