Make WordPress Core


Ignore:
Timestamp:
04/03/2011 09:41:19 AM (14 years ago)
Author:
dd32
Message:

Allow plugins to hook into /wp-admin/update-core.php. Props ampt. Fixes #15221

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/update-core.php

    r17048 r17589  
    413413    require_once(ABSPATH . 'wp-admin/admin-header.php');
    414414    core_upgrade_preamble();
     415    include(ABSPATH . 'wp-admin/admin-footer.php');
    415416
    416417} elseif ( 'do-core-upgrade' == $action || 'do-core-reinstall' == $action ) {
     
    432433    if ( isset( $_POST['upgrade'] ) )
    433434        do_core_upgrade($reinstall);
     435
     436    include(ABSPATH . 'wp-admin/admin-footer.php');
    434437
    435438} elseif ( 'do-plugin-upgrade' == $action ) {
     
    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');
    462466
    463467} elseif ( 'do-theme-upgrade' == $action ) {
     
    488492    echo "<iframe src='$url' style='width: 100%; height: 100%; min-height: 750px;' frameborder='0'></iframe>";
    489493    echo '</div>';
    490 }
    491 
    492 include(ABSPATH . 'wp-admin/admin-footer.php');
     494    include(ABSPATH . 'wp-admin/admin-footer.php');
     495
     496} else {
     497    do_action('update-core-custom_' . $action);
     498}
Note: See TracChangeset for help on using the changeset viewer.