Make WordPress Core


Ignore:
Timestamp:
12/09/2008 06:03:31 PM (18 years ago)
Author:
ryan
Message:

Strip trailing whitespace

File:
1 edited

Legend:

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

    r9967 r10150  
    5050        echo '</p>';
    5151        echo '</form>';
    52        
     52
    5353}
    5454
    … …  
    5656        $dismissed = get_core_updates( array( 'dismissed' => true, 'available' => false ) );
    5757        if ( $dismissed ) {
    58                
     58
    5959                $show_text = js_escape(__('Show hidden updates'));
    6060                $hide_text = js_escape(__('Hide hidden updates'));
    6161        ?>
    6262        <script type="text/javascript">
    63                
     63
    6464                jQuery(function($) {
    6565                        $('dismissed-updates').show();
    … …  
    7777                }
    7878                echo '</ul>';
    79         }       
     79        }
    8080}
    8181
    … …  
    100100        } else {
    101101                echo '<div class="updated fade"><p>';
    102                 _e('<strong>Important:</strong> before upgrading, please <a href="http://codex.wordpress.org/WordPress_Backups">backup your database and files</a>.'); 
     102                _e('<strong>Important:</strong> before upgrading, please <a href="http://codex.wordpress.org/WordPress_Backups">backup your database and files</a>.');
    103103                echo '</p></div>';
    104        
     104
    105105                echo '<h3 class="response">';
    106106                _e( 'There is a new version of WordPress available for upgrade' );
    … …  
    132132function do_core_upgrade() {
    133133        global $wp_filesystem;
    134        
     134
    135135        $url = wp_nonce_url('update-core.php?action=do-core-upgrade', 'upgrade-core');
    136136        if ( false === ($credentials = request_filesystem_credentials($url)) )
    137137                return;
    138                
     138
    139139        $version = isset( $_POST['version'] )? $_POST['version'] : false;
    140140        $locale = isset( $_POST['locale'] )? $_POST['locale'] : 'en_US';
    … …  
    142142        if ( !$update )
    143143                return;
    144                
     144
    145145
    146146        if ( ! WP_Filesystem($credentials) ) {
    … …  
    193193
    194194$action = isset($_GET['action']) ? $_GET['action'] : 'upgrade-core';
    195        
     195
    196196if ( 'upgrade-core' == $action ) {
    197197        $title = __('Upgrade WordPress');
Note: See TracChangeset for help on using the changeset viewer.