WordPress.org

Make WordPress Core

Ticket #14456: 14456.patch

File 14456.patch, 632 bytes (added by ampt, 8 years ago)
  • wp-admin/update-core.php

     
    372372
    373373$action = isset($_GET['action']) ? $_GET['action'] : 'upgrade-core';
    374374
     375if( ! in_array( $action, array( 'do-plugin-upgrade', 'upgrade-core', 'do-core-upgrade', 'do-core-reinstall', 'do-theme-upgrade' ) ) ) {
     376        wp_redirect( admin_url( 'update-core.php' ) );
     377        exit;
     378}
     379
    375380$upgrade_error = false;
    376381if ( 'do-plugin-upgrade' == $action && !isset($_GET['plugins']) && !isset($_POST['checked']) ) {
    377382        $upgrade_error = true;