@@ -403,7 +403,7 @@ function install($package) {
403403 $ this ->init ();
404404 $ this ->install_strings ();
405405
406- add_filter ('upgrader_source_selection ' , array (& $ this , 'check_package ' ) );
406+ add_filter ('upgrader_source_selection ' , array ($ this , 'check_package ' ) );
407407
408408 $ this ->run (array (
409409 'package ' => $ package ,
@@ -413,7 +413,7 @@ function install($package) {
413413 'hook_extra ' => array ()
414414 ));
415415
416- remove_filter ('upgrader_source_selection ' , array (& $ this , 'check_package ' ) );
416+ remove_filter ('upgrader_source_selection ' , array ($ this , 'check_package ' ) );
417417
418418 if ( ! $ this ->result || is_wp_error ($ this ->result ) )
419419 return $ this ->result ;
@@ -443,9 +443,9 @@ function upgrade($plugin) {
443443 // Get the URL to the zip file
444444 $ r = $ current ->response [ $ plugin ];
445445
446- add_filter ('upgrader_pre_install ' , array (& $ this , 'deactivate_plugin_before_upgrade ' ), 10 , 2 );
447- add_filter ('upgrader_clear_destination ' , array (& $ this , 'delete_old_plugin ' ), 10 , 4 );
448- //'source_selection' => array(& $this, 'source_selection'), //there's a trac ticket to move up the directory for zip's which are made a bit differently, useful for non-.org plugins.
446+ add_filter ('upgrader_pre_install ' , array ($ this , 'deactivate_plugin_before_upgrade ' ), 10 , 2 );
447+ add_filter ('upgrader_clear_destination ' , array ($ this , 'delete_old_plugin ' ), 10 , 4 );
448+ //'source_selection' => array($this, 'source_selection'), //there's a trac ticket to move up the directory for zip's which are made a bit differently, useful for non-.org plugins.
449449
450450 $ this ->run (array (
451451 'package ' => $ r ->package ,
@@ -458,8 +458,8 @@ function upgrade($plugin) {
458458 ));
459459
460460 // Cleanup our hooks, in case something else does a upgrade on this connection.
461- remove_filter ('upgrader_pre_install ' , array (& $ this , 'deactivate_plugin_before_upgrade ' ));
462- remove_filter ('upgrader_clear_destination ' , array (& $ this , 'delete_old_plugin ' ));
461+ remove_filter ('upgrader_pre_install ' , array ($ this , 'deactivate_plugin_before_upgrade ' ));
462+ remove_filter ('upgrader_clear_destination ' , array ($ this , 'delete_old_plugin ' ));
463463
464464 if ( ! $ this ->result || is_wp_error ($ this ->result ) )
465465 return $ this ->result ;
@@ -480,7 +480,7 @@ function bulk_upgrade($plugins) {
480480
481481 $ current = get_site_transient ( 'update_plugins ' );
482482
483- add_filter ('upgrader_clear_destination ' , array (& $ this , 'delete_old_plugin ' ), 10 , 4 );
483+ add_filter ('upgrader_clear_destination ' , array ($ this , 'delete_old_plugin ' ), 10 , 4 );
484484
485485 $ this ->skin ->header ();
486486
@@ -550,7 +550,7 @@ function bulk_upgrade($plugins) {
550550 $ this ->skin ->footer ();
551551
552552 // Cleanup our hooks, in case something else does a upgrade on this connection.
553- remove_filter ('upgrader_clear_destination ' , array (& $ this , 'delete_old_plugin ' ));
553+ remove_filter ('upgrader_clear_destination ' , array ($ this , 'delete_old_plugin ' ));
554554
555555 // Force refresh of plugin update information
556556 delete_site_transient ('update_plugins ' );
@@ -712,7 +712,7 @@ function check_parent_theme_filter($install_result, $hook_extra, $child_result)
712712 if ( ! $ api || is_wp_error ($ api ) ) {
713713 $ this ->skin ->feedback ( 'parent_theme_not_found ' , $ theme_info ->get ('Template ' ) );
714714 // Don't show activate or preview actions after install
715- add_filter ('install_theme_complete_actions ' , array (& $ this , 'hide_activate_preview_actions ' ) );
715+ add_filter ('install_theme_complete_actions ' , array ($ this , 'hide_activate_preview_actions ' ) );
716716 return $ install_result ;
717717 }
718718
@@ -737,7 +737,7 @@ function check_parent_theme_filter($install_result, $hook_extra, $child_result)
737737 ) );
738738
739739 if ( is_wp_error ($ parent_result ) )
740- add_filter ('install_theme_complete_actions ' , array (& $ this , 'hide_activate_preview_actions ' ) );
740+ add_filter ('install_theme_complete_actions ' , array ($ this , 'hide_activate_preview_actions ' ) );
741741
742742 // Start cleaning up after the parents installation
743743 remove_filter ('install_theme_complete_actions ' , '__return_false ' , 999 );
@@ -760,8 +760,8 @@ function install($package) {
760760 $ this ->init ();
761761 $ this ->install_strings ();
762762
763- add_filter ('upgrader_source_selection ' , array (& $ this , 'check_package ' ) );
764- add_filter ('upgrader_post_install ' , array (& $ this , 'check_parent_theme_filter ' ), 10 , 3 );
763+ add_filter ('upgrader_source_selection ' , array ($ this , 'check_package ' ) );
764+ add_filter ('upgrader_post_install ' , array ($ this , 'check_parent_theme_filter ' ), 10 , 3 );
765765
766766 $ options = array (
767767 'package ' => $ package ,
@@ -772,8 +772,8 @@ function install($package) {
772772
773773 $ this ->run ($ options );
774774
775- remove_filter ('upgrader_source_selection ' , array (& $ this , 'check_package ' ) );
776- remove_filter ('upgrader_post_install ' , array (& $ this , 'check_parent_theme_filter ' ));
775+ remove_filter ('upgrader_source_selection ' , array ($ this , 'check_package ' ) );
776+ remove_filter ('upgrader_post_install ' , array ($ this , 'check_parent_theme_filter ' ));
777777
778778 if ( ! $ this ->result || is_wp_error ($ this ->result ) )
779779 return $ this ->result ;
@@ -802,9 +802,9 @@ function upgrade($theme) {
802802
803803 $ r = $ current ->response [ $ theme ];
804804
805- add_filter ('upgrader_pre_install ' , array (& $ this , 'current_before ' ), 10 , 2 );
806- add_filter ('upgrader_post_install ' , array (& $ this , 'current_after ' ), 10 , 2 );
807- add_filter ('upgrader_clear_destination ' , array (& $ this , 'delete_old_theme ' ), 10 , 4 );
805+ add_filter ('upgrader_pre_install ' , array ($ this , 'current_before ' ), 10 , 2 );
806+ add_filter ('upgrader_post_install ' , array ($ this , 'current_after ' ), 10 , 2 );
807+ add_filter ('upgrader_clear_destination ' , array ($ this , 'delete_old_theme ' ), 10 , 4 );
808808
809809 $ options = array (
810810 'package ' => $ r ['package ' ],
@@ -818,9 +818,9 @@ function upgrade($theme) {
818818
819819 $ this ->run ($ options );
820820
821- remove_filter ('upgrader_pre_install ' , array (& $ this , 'current_before ' ));
822- remove_filter ('upgrader_post_install ' , array (& $ this , 'current_after ' ));
823- remove_filter ('upgrader_clear_destination ' , array (& $ this , 'delete_old_theme ' ));
821+ remove_filter ('upgrader_pre_install ' , array ($ this , 'current_before ' ));
822+ remove_filter ('upgrader_post_install ' , array ($ this , 'current_after ' ));
823+ remove_filter ('upgrader_clear_destination ' , array ($ this , 'delete_old_theme ' ));
824824
825825 if ( ! $ this ->result || is_wp_error ($ this ->result ) )
826826 return $ this ->result ;
@@ -840,9 +840,9 @@ function bulk_upgrade($themes) {
840840
841841 $ current = get_site_transient ( 'update_themes ' );
842842
843- add_filter ('upgrader_pre_install ' , array (& $ this , 'current_before ' ), 10 , 2 );
844- add_filter ('upgrader_post_install ' , array (& $ this , 'current_after ' ), 10 , 2 );
845- add_filter ('upgrader_clear_destination ' , array (& $ this , 'delete_old_theme ' ), 10 , 4 );
843+ add_filter ('upgrader_pre_install ' , array ($ this , 'current_before ' ), 10 , 2 );
844+ add_filter ('upgrader_post_install ' , array ($ this , 'current_after ' ), 10 , 2 );
845+ add_filter ('upgrader_clear_destination ' , array ($ this , 'delete_old_theme ' ), 10 , 4 );
846846
847847 $ this ->skin ->header ();
848848
@@ -912,9 +912,9 @@ function bulk_upgrade($themes) {
912912 $ this ->skin ->footer ();
913913
914914 // Cleanup our hooks, in case something else does a upgrade on this connection.
915- remove_filter ('upgrader_pre_install ' , array (& $ this , 'current_before ' ));
916- remove_filter ('upgrader_post_install ' , array (& $ this , 'current_after ' ));
917- remove_filter ('upgrader_clear_destination ' , array (& $ this , 'delete_old_theme ' ));
915+ remove_filter ('upgrader_pre_install ' , array ($ this , 'current_before ' ));
916+ remove_filter ('upgrader_post_install ' , array ($ this , 'current_after ' ));
917+ remove_filter ('upgrader_clear_destination ' , array ($ this , 'delete_old_theme ' ));
918918
919919 // Force refresh of theme update information
920920 wp_clean_themes_cache ();
0 commit comments