WordPress.org

Make WordPress Core

Ticket #15221: update-core.15221.patch

File update-core.15221.patch, 1.4 KB (added by ampt, 3 years ago)

add .patch suffix

  • wp-admin/update-core.php

     
    394394        wp_version_check(); 
    395395        require_once(ABSPATH . 'wp-admin/admin-header.php'); 
    396396        core_upgrade_preamble(); 
     397        include(ABSPATH . 'wp-admin/admin-footer.php'); 
    397398} elseif ( 'do-core-upgrade' == $action || 'do-core-reinstall' == $action ) { 
    398399        check_admin_referer('upgrade-core'); 
    399400 
     
    413414        if ( isset( $_POST['upgrade'] ) ) 
    414415                do_core_upgrade($reinstall); 
    415416 
     417        include(ABSPATH . 'wp-admin/admin-footer.php'); 
    416418} elseif ( 'do-plugin-upgrade' == $action ) { 
    417419        check_admin_referer('upgrade-core'); 
    418420 
     
    436438        echo '<h2>' . esc_html__('Update Plugins') . '</h2>'; 
    437439        echo "<iframe src='$url' style='width: 100%; height: 100%; min-height: 750px;' frameborder='0'></iframe>"; 
    438440        echo '</div>'; 
     441        include(ABSPATH . 'wp-admin/admin-footer.php'); 
    439442} elseif ( 'do-theme-upgrade' == $action ) { 
    440443        check_admin_referer('upgrade-core'); 
    441444 
     
    459462        echo '<h2>' . esc_html__('Update Themes') . '</h2>'; 
    460463        echo "<iframe src='$url' style='width: 100%; height: 100%; min-height: 750px;' frameborder='0'></iframe>"; 
    461464        echo '</div>'; 
     465        include(ABSPATH . 'wp-admin/admin-footer.php'); 
     466} else { 
     467        do_action( 'do-custom-upgrade_' . $action ); 
    462468} 
    463469 
    464 include(ABSPATH . 'wp-admin/admin-footer.php');