Changeset 2179618
- Timestamp:
- 10/24/2019 08:17:10 PM (6 years ago)
- Location:
- wp-lemme-know/trunk
- Files:
-
- 7 edited
-
assets/js/lemme-know.js (modified) (2 diffs)
-
plugin.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/dashboard.php (modified) (1 diff)
-
src/settings.php (modified) (1 diff)
-
src/widget.php (modified) (1 diff)
-
templates/widget.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-lemme-know/trunk/assets/js/lemme-know.js
r1566665 r2179618 16 16 clash82.LemmeKnow = function (config) { 17 17 this.emailRegexPattern = /^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i; 18 19 this.adminAjaxUrl = config.adminAjaxUrl || '//'+ window.location.hostname+'/wp-admin/admin-ajax.php'; 18 20 19 21 // default CSS classes … … 95 97 } 96 98 97 xmlHttp.open('POST', '//'+ window.location.hostname+'/wp-admin/admin-ajax.php', true);99 xmlHttp.open('POST', this.adminAjaxUrl, true); 98 100 xmlHttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); 99 101 -
wp-lemme-know/trunk/plugin.php
r1740284 r2179618 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. 4.07 Version: 0.5.0 8 8 Author: Rafał Toborek 9 9 Author URI: https://toborek.info/about/ -
wp-lemme-know/trunk/readme.txt
r1740284 r2179618 4 4 Tags: notifications, email, newsletter, subscribe2, mailing, smtp 5 5 Requires at least: 4.6 6 Tested up to: 4.8.26 Tested up to: 5.2.4 7 7 Requires PHP: 5.4 8 8 Stable tag: trunk … … 46 46 == Changelog == 47 47 48 = v0.5.0= 49 * fixed: issue related to incorrect admin-ajax.php file path when WP is installed in subdirectory 50 48 51 = v0.4.0 = 49 52 * fixed: send notifications only when `post` type content is published, -
wp-lemme-know/trunk/src/dashboard.php
r1534536 r2179618 11 11 add_action( 12 12 'wp_dashboard_setup', 13 create_function('', 'return wp_add_dashboard_widget( 14 "wp-lemme-know", 15 "Lemme Know", 16 "wp_lemme_know_dashboard_callback" 17 );') 13 function() { 14 wp_add_dashboard_widget( 15 'wp-lemme-know', 16 'Lemme Know', 17 'wp_lemme_know_dashboard_callback' 18 ); 19 } 18 20 ); 19 21 -
wp-lemme-know/trunk/src/settings.php
r1740284 r2179618 37 37 add_action( 38 38 'admin_menu', 39 create_function('', 'return add_options_page( 40 "Lemme Know", 41 "Lemme Know", 42 "manage_options", 43 "wp-lemme-know", 44 "wp_lemme_know_options_page" 45 );') 39 function() { 40 return add_options_page( 41 'Lemme Know', 42 'Lemme Know', 43 'manage_options', 44 'wp-lemme-know', 45 'wp_lemme_know_options_page' 46 ); 47 } 46 48 ); 47 49 -
wp-lemme-know/trunk/src/widget.php
r1534536 r2179618 126 126 add_action( 127 127 'widgets_init', 128 create_function('', 'return register_widget(129 "WP_LemmeKnowWidget"130 );')128 function() { 129 register_widget('WP_LemmeKnowWidget'); 130 } 131 131 ); -
wp-lemme-know/trunk/templates/widget.php
r1566665 r2179618 22 22 (function() { 23 23 new clash82.LemmeKnow({ 24 adminAjaxUrl: '<?= sprintf('%sadmin-ajax.php', get_admin_url()); ?>', 24 25 widgetId: '<?= $fieldSettings['widget_id']; ?>', 25 26 errorMsg: '<?= $fieldSettings['error_msg']; ?>',
Note: See TracChangeset
for help on using the changeset viewer.