diff --git a/Puc/v4p3/DebugBar/Extension.php b/Puc/v4p3/DebugBar/Extension.php index db39f97..0d33e6c 100644 --- a/Puc/v4p3/DebugBar/Extension.php +++ b/Puc/v4p3/DebugBar/Extension.php @@ -58,7 +58,7 @@ if ( !class_exists('Puc_v4p3_DebugBar_Extension', false) ): if ( $_POST['uid'] !== $this->updateChecker->getUniqueName('uid') ) { return; } - $this->preAjaxReqest(); + $this->preAjaxRequest(); $update = $this->updateChecker->checkForUpdates(); if ( $update !== null ) { echo "An update is available:"; @@ -72,7 +72,7 @@ if ( !class_exists('Puc_v4p3_DebugBar_Extension', false) ): /** * Check access permissions and enable error display (for debugging). */ - protected function preAjaxReqest() { + protected function preAjaxRequest() { if ( !$this->updateChecker->userCanInstallUpdates() ) { die('Access denied'); } diff --git a/Puc/v4p3/DebugBar/PluginExtension.php b/Puc/v4p3/DebugBar/PluginExtension.php index 8b0c2a5..f436deb 100644 --- a/Puc/v4p3/DebugBar/PluginExtension.php +++ b/Puc/v4p3/DebugBar/PluginExtension.php @@ -18,7 +18,7 @@ if ( !class_exists('Puc_v4p3_DebugBar_PluginExtension', false) ): if ( $_POST['uid'] !== $this->updateChecker->getUniqueName('uid') ) { return; } - $this->preAjaxReqest(); + $this->preAjaxRequest(); $info = $this->updateChecker->requestInfo(); if ( $info !== null ) { echo 'Successfully retrieved plugin info from the metadata URL:';