Minor: Fix a spelling error in method name
This commit is contained in:
parent
92763829c6
commit
1a7d95a017
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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:';
|
||||
|
|
|
|||
Loading…
Reference in New Issue