From c12b1cf0846193a0564d6c1a9ca03f3c47b4b752 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 7 Jul 2010 13:53:27 +0000 Subject: [PATCH] Give the installerdbtype object to custom callbacks too :) --- includes/installer/Installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index 9ec3c42ba4..625c2efd69 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -873,7 +873,7 @@ abstract class Installer { if ( is_array( $stepObj ) ) { # A custom callaback $callback = $stepObj['callback']; - $status = call_user_func_array( $callback, array() ); + $status = call_user_func_array( $callback, array( $installer ) ); } else { # Boring implicitly named callback $func = 'install' . ucfirst( $step ); -- 2.20.1