Changeset 10150 for trunk/wp-admin/update-core.php
- Timestamp:
- 12/09/2008 06:03:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/update-core.php
r9967 r10150 50 50 echo '</p>'; 51 51 echo '</form>'; 52 52 53 53 } 54 54 … … 56 56 $dismissed = get_core_updates( array( 'dismissed' => true, 'available' => false ) ); 57 57 if ( $dismissed ) { 58 58 59 59 $show_text = js_escape(__('Show hidden updates')); 60 60 $hide_text = js_escape(__('Hide hidden updates')); 61 61 ?> 62 62 <script type="text/javascript"> 63 63 64 64 jQuery(function($) { 65 65 $('dismissed-updates').show(); … … 77 77 } 78 78 echo '</ul>'; 79 } 79 } 80 80 } 81 81 … … 100 100 } else { 101 101 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>.'); 103 103 echo '</p></div>'; 104 104 105 105 echo '<h3 class="response">'; 106 106 _e( 'There is a new version of WordPress available for upgrade' ); … … 132 132 function do_core_upgrade() { 133 133 global $wp_filesystem; 134 134 135 135 $url = wp_nonce_url('update-core.php?action=do-core-upgrade', 'upgrade-core'); 136 136 if ( false === ($credentials = request_filesystem_credentials($url)) ) 137 137 return; 138 138 139 139 $version = isset( $_POST['version'] )? $_POST['version'] : false; 140 140 $locale = isset( $_POST['locale'] )? $_POST['locale'] : 'en_US'; … … 142 142 if ( !$update ) 143 143 return; 144 144 145 145 146 146 if ( ! WP_Filesystem($credentials) ) { … … 193 193 194 194 $action = isset($_GET['action']) ? $_GET['action'] : 'upgrade-core'; 195 195 196 196 if ( 'upgrade-core' == $action ) { 197 197 $title = __('Upgrade WordPress');
Note: See TracChangeset
for help on using the changeset viewer.