WordPress.org

Make WordPress Core

Ticket #11232: 11232.back-link.diff

File 11232.back-link.diff, 557 bytes (added by nacin, 4 years ago)

Adds rudimentary "Go back" link.

  • includes/class-wp-upgrader.php

     
    504504                $this->maintenance_mode(false); 
    505505                $this->skin->footer(); 
    506506 
     507                echo '<p><a href="' . admin_url('update-core.php') . '">' . __('Go back') . '</a></p>'; 
     508 
    507509                // Cleanup our hooks, incase something else does a upgrade on this connection. 
    508510                remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_plugin')); 
    509511