fix refs to core

This commit is contained in:
Leon 2020-04-18 10:18:48 +09:30
parent 08f8fe701a
commit 8b58f1b515
3 changed files with 3 additions and 3 deletions

View file

@ -219,7 +219,7 @@ class Controller {

$personal_access_token =
$_POST['accessToken'] ?
\WP2Static\Controller::encrypt_decrypt(
\WP2Static\CoreOptions::encrypt_decrypt(
'encrypt',
sanitize_text_field( $_POST['accessToken'] )
) : '';

View file

@ -59,7 +59,7 @@ class Deployer {

// Send digest to Netlify to confirm which files have changed
$site_id = Controller::getValue( 'siteID' );
$access_token = \WP2Static\Controller::encrypt_decrypt(
$access_token = \WP2Static\CoreOptions::encrypt_decrypt(
'decrypt',
Controller::getValue( 'accessToken' )
);

View file

@ -41,7 +41,7 @@
name="<?php echo $view['options']['accessToken']->name; ?>"
type="password"
value="<?php echo $view['options']['accessToken']->value !== '' ?
\WP2Static\Controller::encrypt_decrypt('decrypt', $view['options']['accessToken']->value) :
\WP2Static\CoreOptions::encrypt_decrypt('decrypt', $view['options']['accessToken']->value) :
''; ?>"
/>
</td>