Minor: Fix a spelling error in method name

This commit is contained in:
Yahnis Elsts 2017-11-03 13:23:53 +02:00
parent 92763829c6
commit 1a7d95a017
2 changed files with 3 additions and 3 deletions

View File

@ -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');
}

View File

@ -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:';