From 6df059ed931ab788f9e48bc9bb75b172e609b687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Bouc=CC=8Cek?= Date: Mon, 3 Sep 2018 03:58:22 +0200 Subject: [PATCH] Fix obvious errors --- includes/class.ssc_cron.php | 2 -- includes/class.ssc_rest.php | 6 ++---- includes/class.ssc_settings.php | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/includes/class.ssc_cron.php b/includes/class.ssc_cron.php index 6af8e23..57edd05 100644 --- a/includes/class.ssc_cron.php +++ b/includes/class.ssc_cron.php @@ -2,8 +2,6 @@ namespace SSC; -use DreamROI\Access; - class SSC_Cron { function __construct() diff --git a/includes/class.ssc_rest.php b/includes/class.ssc_rest.php index 2a98d57..2c3c4b2 100644 --- a/includes/class.ssc_rest.php +++ b/includes/class.ssc_rest.php @@ -167,13 +167,11 @@ public function create_item($request){ } $replaceArray = array(// pole ktera je mozne nahradit - '{pages}' => $pages, - '{mail}' => $email, + '{pages}' => $pages,// zpetna kompatibilita s v1.1 + '{mail}' => $email,// zpetna kompatibilita s v1.1 '{login}' => $_login, '{password}' => $_password, '{login_url}' => wp_login_url(), - '{pages}' => $pages,// zpetna kompatibilita s v1.1 - '{mail}' => $email,// zpetna kompatibilita s v1.1 // '{login}' => $_login, // '{password}' => $_password, ); diff --git a/includes/class.ssc_settings.php b/includes/class.ssc_settings.php index 26397f3..7eef11f 100644 --- a/includes/class.ssc_settings.php +++ b/includes/class.ssc_settings.php @@ -161,7 +161,7 @@ function add_options_page_metabox(){ $cmb->add_field(array( 'name' => __('Text emailu','ssc'), 'desc' => __('Povolené zástupné znaky:
' - .'
{login} = login
' + .'
{login} = login
' .'{password} = heslo
' .'{login_url} = adresa, na které je možné se přihlásit
' .'{pages} = seznam stránek, do kterých má uživatel zakoupený přístup
'