Changeset 3146503
- Timestamp:
- 09/04/2024 02:12:16 PM (18 months ago)
- Location:
- dashamail
- Files:
-
- 21 added
- 3 edited
-
tags/1.0.8 (added)
-
tags/1.0.8/README.txt (added)
-
tags/1.0.8/assets (added)
-
tags/1.0.8/assets/css (added)
-
tags/1.0.8/assets/css/style.css (added)
-
tags/1.0.8/assets/img (added)
-
tags/1.0.8/assets/img/logo.png (added)
-
tags/1.0.8/assets/img/logo_big.png (added)
-
tags/1.0.8/assets/img/logo_dasha.png (added)
-
tags/1.0.8/assets/js (added)
-
tags/1.0.8/assets/js/script.js (added)
-
tags/1.0.8/assets/screenshot-1.png (added)
-
tags/1.0.8/assets/screenshot-2.png (added)
-
tags/1.0.8/assets/screenshot-3.png (added)
-
tags/1.0.8/dashamail.php (added)
-
tags/1.0.8/dshm_app (added)
-
tags/1.0.8/dshm_app/Infrastructure (added)
-
tags/1.0.8/dshm_app/Infrastructure/dshm_DashaMailAPI.php (added)
-
tags/1.0.8/dshm_app/Infrastructure/dshm_PluginActivator.php (added)
-
tags/1.0.8/dshm_app/Infrastructure/dshm_SettingsPage.php (added)
-
tags/1.0.8/dshm_app/Infrastructure/dshm_WordPressFacade.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/dashamail.php (modified) (1 diff)
-
trunk/dshm_app/Infrastructure/dshm_SettingsPage.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dashamail/trunk/README.txt
r3146093 r3146503 7 7 Tested up to: 6.6.1 8 8 Requires PHP: 7.4 9 Stable tag: 1.0. 79 Stable tag: 1.0.8 10 10 License: GPLv2 or later 11 11 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 46 46 47 47 == Changelog == 48 = 1.0.8 - 2024-09-04 = 49 FIX Оптимизированы запросы к API Dashamail 50 51 = 1.0.7 - 2024-09-03 = 52 YANKED v.1.0.6 53 48 54 = 1.0.6 - 2024-09-03 = 49 Оптимизированы запросы к API Dashamail55 FIX Оптимизированы запросы к API Dashamail 50 56 51 57 = 1.0.5 - 2024-06-14 = 52 Исправлена проблема подключения дополнительных скриптов58 FIX Исправлена проблема подключения дополнительных скриптов 53 59 54 60 = 1.0.4 - 2024-02-19 = 55 F ixcorner case bug: использование защитных проверочных ключей61 FIX corner case bug: использование защитных проверочных ключей 56 62 57 63 = 1.0.3 - 2024-01-31 = 58 Исправлена ошибка отсутствия ответа от API DashaMail64 FIX Исправлена ошибка отсутствия ответа от API DashaMail 59 65 60 66 = 1.0.2 - 2023-12-21 = 61 Добавлены дополнительные теги для сохранения кода произвольных HTML-форм67 FIX Добавлены дополнительные теги для сохранения кода произвольных HTML-форм 62 68 63 69 = 1.0.1 - 2023-07-20 = 64 Добавлены настройки автоматического и массового экспорта70 FEATURE Добавлены настройки автоматического и массового экспорта 65 71 66 72 = 1.0.0 - 2023-06-20 = 67 Интеграция Форм подписки на сайт73 FEATURE Интеграция Форм подписки на сайт -
dashamail/trunk/dashamail.php
r3146093 r3146503 3 3 * Plugin Name: DashaMail 4 4 * Description: Плагин интеграции с DashaMail 5 * Version: 1.0. 75 * Version: 1.0.8 6 6 * Requires at least: 6.2.2 7 7 * Requires PHP: 7.4 -
dashamail/trunk/dshm_app/Infrastructure/dshm_SettingsPage.php
r3146091 r3146503 60 60 public function __construct() { 61 61 $apiKey = \get_option('dashamail_api_key'); 62 63 $url = $_POST['_wp_http_referer'] ?? $_SERVER['REQUEST_URI']; 64 if (!stripos($url, strval(self::$DSHM_PAGE_SLUG))) return; 65 62 66 $this->isApiKeyCorrect = dshm_DashaMailAPI::dshm_isApiKeyCorrect($apiKey); 63 67 } … … 157 161 function dshm_TemplateApiKey( $args ){ 158 162 $value = \get_option( $args[ 'name' ] ); 159 $this->isApiKeyCorrect = dshm_DashaMailAPI::dshm_isApiKeyCorrect($value); 163 if (!$this->isApiKeyCorrect) { 164 $this->isApiKeyCorrect = dshm_DashaMailAPI::dshm_isApiKeyCorrect($value); 165 } 160 166 $isApiKeyCorrect = $this->isApiKeyCorrect?'valid':'invalid'; 161 167 … … 188 194 189 195 $apiKey = \get_option('dashamail_api_key'); 190 $this->isApiKeyCorrect = dshm_DashaMailAPI::dshm_isApiKeyCorrect($apiKey); 196 if (!$this->isApiKeyCorrect) { 197 $this->isApiKeyCorrect = dshm_DashaMailAPI::dshm_isApiKeyCorrect($apiKey); 198 } 191 199 192 200 $lists[] = ['name' => '-', 'id' => '0'];
Note: See TracChangeset
for help on using the changeset viewer.