Make WordPress Core

Ticket #44250: error-silencer-upgrade.php.diff

File error-silencer-upgrade.php.diff, 990 bytes (added by subrataemfluence, 4 years ago)
  • upgrade.php

    diff --git a/upgrade.php src/wp-admin/includes/upgrade.php
    index 85439b4..c03678e 100755
    old new function make_site_theme_from_default( $theme_name, $template ) { 
    29532953        // Copy files from the default theme to the site theme.
    29542954        //$files = array('index.php', 'comments.php', 'comments-popup.php', 'footer.php', 'header.php', 'sidebar.php', 'style.css');
    29552955
    2956         $theme_dir = @ opendir( $default_dir );
     2956        $theme_dir = @opendir( $default_dir );
    29572957        if ( $theme_dir ) {
    29582958                while ( ( $theme_file = readdir( $theme_dir ) ) !== false ) {
    29592959                        if ( is_dir( "$default_dir/$theme_file" ) ) {
    function make_site_theme_from_default( $theme_name, $template ) { 
    29952995                return false;
    29962996        }
    29972997
    2998         $images_dir = @ opendir( "$default_dir/images" );
     2998        $images_dir = @opendir( "$default_dir/images" );
    29992999        if ( $images_dir ) {
    30003000                while ( ( $image = readdir( $images_dir ) ) !== false ) {
    30013001                        if ( is_dir( "$default_dir/images/$image" ) ) {