Changeset 2248825
- Timestamp:
- 02/22/2020 10:00:56 PM (6 years ago)
- Location:
- wp-lemme-know/trunk
- Files:
-
- 6 edited
-
LICENSE (modified) (1 diff)
-
assets/js/lemme-know-admin.js (modified) (2 diffs)
-
plugin.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/ajax.php (modified) (4 diffs)
-
src/settings.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-lemme-know/trunk/LICENSE
r1566665 r2248825 1 Copyright (C) 2016-20 17Rafał Toborek. All rights reserved.1 Copyright (C) 2016-2020 Rafał Toborek. All rights reserved. 2 2 This source code is provided under the following license: 3 3 -
wp-lemme-know/trunk/assets/js/lemme-know-admin.js
r1740287 r2248825 15 15 clash82.LemmeKnowAdmin = function (config) { 16 16 this.emailRegexPattern = /^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i; 17 18 this.adminAjaxUrl = config.adminAjaxUrl || '//'+ window.location.hostname+'/wp-admin/admin-ajax.php'; 17 19 18 20 // custom form elements … … 116 118 } 117 119 118 xmlHttp.open('POST', '//'+ window.location.hostname+'/wp-admin/admin-ajax.php', true);120 xmlHttp.open('POST', this.adminAjaxUrl, true); 119 121 xmlHttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); 120 122 -
wp-lemme-know/trunk/plugin.php
r2179618 r2248825 5 5 Plugin URI: https://github.com/clash82/wp-lemme-know 6 6 Description: Sends e-mail notification for subscribers when a new post is published. 7 Version: 0. 5.07 Version: 0.6.0 8 8 Author: Rafał Toborek 9 9 Author URI: https://toborek.info/about/ -
wp-lemme-know/trunk/readme.txt
r2179624 r2248825 2 2 3 3 Contributors: clash82 4 Tags: notifications, email, newsletter, subscribe2, mailing, smtp 4 Tags: notifications, email, newsletter, subscribe2, mailing, smtp, mailing 5 5 Requires at least: 4.6 6 Tested up to: 5. 2.46 Tested up to: 5.3.2 7 7 Requires PHP: 5.4 8 8 Stable tag: trunk … … 46 46 == Changelog == 47 47 48 = v0.6.0 = 49 * fixed: issue related to incorrect admin-ajax.php file path when WP is installed in subdirectory (wp-admin), 50 * added: validation if `e-mail from` value is specified when sending test message. 51 48 52 = v0.5.0 = 49 53 * fixed: issue related to incorrect admin-ajax.php file path when WP is installed in subdirectory. -
wp-lemme-know/trunk/src/ajax.php
r1740284 r2248825 15 15 function wp_lemme_know_ajax_test_email_callback() 16 16 { 17 if (empty($_POST['mailFrom'])) { 18 die (json_encode([ 19 'status' => 1, // e-mail from address is missing 20 'results' => __('Please provide E-mail from address'), 21 ])); 22 } 23 17 24 $sender = new WP_LemmeKnowNotificationSender( 18 25 $_POST['mailerType'] === 'default' ? false : true, … … 36 43 if ($sender->send() === true) { 37 44 die (json_encode([ 38 'status' => 0 // e-mail was successfully sent45 'status' => 0, // e-mail was successfully sent 39 46 ])); 40 47 } … … 42 49 die (json_encode([ 43 50 'status' => 1, // there were some issues when sending e-mail 44 'results' => $sender->getDebugDetails() 51 'results' => $sender->getDebugDetails(), 45 52 ])); 46 53 } … … 98 105 99 106 die (json_encode([ 100 'status' => 0 // e-mail was successfully added107 'status' => 0, // e-mail was successfully added 101 108 ])); 102 109 } -
wp-lemme-know/trunk/src/settings.php
r2179618 r2248825 380 380 (function() { 381 381 new clash82.LemmeKnowAdmin({ 382 adminAjaxUrl: "%sadmin-ajax.php", 382 383 sendingMsg: "%s", 383 384 successMsg: "%s", … … 389 390 __('email@example.com'), 390 391 __('Send e-mail notification now'), 392 get_admin_url(), 391 393 __('Sending test message, please wait...'), 392 394 __('Congratulations! test e-mail was sent, configuration is correct'),
Note: See TracChangeset
for help on using the changeset viewer.