Ticket #29425: 29425.diff
File 29425.diff, 1.4 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/class-wp-upgrader.php
1252 1252 1253 1253 if ( empty( $language_updates ) ) { 1254 1254 $this->skin->header(); 1255 1255 $this->skin->before(); 1256 1256 $this->skin->set_result( true ); 1257 1257 $this->skin->feedback( 'up_to_date' ); 1258 1258 $this->skin->after(); 1259 1259 $this->skin->bulk_footer(); 1260 1260 $this->skin->footer(); 1261 1261 return true; 1262 1262 } 1263 1263 1264 1264 if ( 'upgrader_process_complete' == current_filter() ) 1265 1265 $this->skin->feedback( 'starting_upgrade' ); 1266 1266 1267 // Remove any existing package checks and then set the new one for translations, #WP29230. 1267 // Remove any existing upgrade filters from the plugin/theme upgraders #WP29425 & #WP29230 1268 remove_all_filters( 'upgrader_pre_install' ); 1269 remove_all_filters( 'upgrader_clear_destination' ); 1270 remove_all_filterS( 'upgrader_post_install' ); 1268 1271 remove_all_filters( 'upgrader_source_selection' ); 1272 1269 1273 add_filter( 'upgrader_source_selection', array( $this, 'check_package' ), 10, 2 ); 1270 1274 1271 1275 $this->skin->header(); 1272 1276 1273 1277 // Connect to the Filesystem first. 1274 1278 $res = $this->fs_connect( array( WP_CONTENT_DIR, WP_LANG_DIR ) ); 1275 1279 if ( ! $res ) { 1276 1280 $this->skin->footer(); 1277 1281 return false; 1278 1282 } 1279 1283 1280 1284 $results = array(); 1281 1285 1282 1286 $this->update_count = count( $language_updates ); 1283 1287 $this->update_current = 0;