Changeset 1787671
- Timestamp:
- 12/15/2017 03:29:03 PM (8 years ago)
- Location:
- osd-subscribe
- Files:
-
- 15 added
- 3 edited
-
tags/1.2.3 (added)
-
tags/1.2.3/images (added)
-
tags/1.2.3/images/icon.png (added)
-
tags/1.2.3/includes (added)
-
tags/1.2.3/includes/osd_subscribe_ajax.php (added)
-
tags/1.2.3/includes/osd_subscribe_core.php (added)
-
tags/1.2.3/includes/osd_subscribe_post.php (added)
-
tags/1.2.3/includes/osd_subscribe_widget.php (added)
-
tags/1.2.3/options (added)
-
tags/1.2.3/options/osd_subscribe_options_howto.php (added)
-
tags/1.2.3/options/osd_subscribe_options_main.php (added)
-
tags/1.2.3/options/osd_subscribe_options_subscribers.php (added)
-
tags/1.2.3/osd-subscribe.php (added)
-
tags/1.2.3/readme.txt (added)
-
tags/1.2.3/uninstall.php (added)
-
trunk/includes/osd_subscribe_core.php (modified) (2 diffs)
-
trunk/osd-subscribe.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
osd-subscribe/trunk/includes/osd_subscribe_core.php
r1012824 r1787671 59 59 60 60 // Add hooks for publishing 61 if (is_admin() && !defined('DOING_AJAX')) { 62 $statuses = apply_filters('osd_subscribe_email_statuses', array('new', 'draft', 'auto-draft', 'pending', 'private', 'future')); 63 foreach ($statuses as $status) { 64 add_action("{$status}_to_publish", array(&$this, "publish")); 65 } 66 } 61 add_action("transition_post_status", array(&$this, "handle_post_status_transition"), 10, 3); 62 67 63 68 64 // Add hooks for frontend users … … 81 77 add_action('init', array($this, 'categories_for_pages')); 82 78 } 79 } 80 81 82 function handle_post_status_transition($new_status, $old_status, $post) { 83 $statuses = apply_filters("osd_subscribe_email_statuses", array('new', 'draft', 'auto-draft', 'pending', 'private', 'future')); 84 85 if (!in_array($old_status, $statuses) || $post->post_type !== "post" || $new_status === $old_status || $new_status !== "publish") { 86 return; 87 } 88 89 $this->publish($post); 83 90 } 84 91 -
osd-subscribe/trunk/osd-subscribe.php
r1029400 r1787671 4 4 Plugin URI: http://outsidesource.com 5 5 Description: A plugin that adds a customizable and filterable email subscription widget and shortcode for posts. 6 Version: 1.2. 26 Version: 1.2.3 7 7 Author: OSD Web Development Team 8 8 Author URI: http://outsidesource.com -
osd-subscribe/trunk/readme.txt
r1076235 r1787671 4 4 Requires at least: 3.4 5 5 Tested up to: 4.1 6 Stable tag: 1.2. 26 Stable tag: 1.2.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 40 40 41 41 == Changelog == 42 43 = 1.2.3 = 44 * Fixed issue where scheduled posts wouldn't send emails correctly 42 45 43 46 = 1.2.2 =
Note: See TracChangeset
for help on using the changeset viewer.