c3481dd4b7
Refactor subscription links to work with subscriber entity
...
[MAILPOET-1495]
2018-10-12 11:33:15 +02:00
dbdf432c1d
Merge pull request #1347 from mailpoet/queue_rendered_subject_improvement
...
Uses queue's rendered subject when sending newsletter [MAILPOET-1373]
2018-05-17 08:35:25 -04:00
1c6c275295
Passes single array with shortcode details
2018-05-14 19:16:24 -04:00
5912004c10
Fix: CPU usage and sending issue on slow host
...
On some slow host, the `newsletter` table get filled with
duplicated `notification_history` marked as `sending` that
never get sent.
To prevent this we've made the two following changes:
* We prevent firing `publis_*` hooks on post_type which
are excluded from search.
* We do not schedule a new post notification email if one
has an `notification_history` entry marked as `sending`.
[MAILPOET-1371]
2018-05-10 15:25:23 +02:00
b57c8b7533
Returns shortcode when subscriber object is null
2018-05-07 19:07:58 -04:00
ee4aefb6e3
Passes full shortcode object as function argument
2018-05-07 19:07:53 -04:00
467cf350e9
Abstract WP's current_time() function in the code base
2018-03-20 16:34:50 -04:00
0217e21753
Restore a default argument value [MAILPOET-1121]
2017-10-19 19:43:39 +03:00
8c8c01aa75
shows links when previewing sent newsletters
2017-10-17 14:14:08 +00:00
19e67ea2b0
Enabling links on header and footer on preview
2017-10-11 12:45:07 +00:00
7e0c500e4f
Uses WP's date_i18n() to localize date shortcode
2017-08-10 12:46:27 -04:00
40cbefd1f4
Uses WP time vs. system time
2017-08-09 18:59:55 -04:00
fb5d43e975
Adds helper method to translate shortcodes
...
Adds translations to Date shortcode
2017-08-09 18:56:33 -04:00
7c30192a03
Adds option to replace shortcodes in one string using contents from
...
another string
Adds unit tests
2017-08-01 09:32:42 +02:00
334c3ff420
Returns false when data-post-id tag is not found
...
Uses all post types, including custom, when querying posts
2017-08-01 09:32:42 +02:00
0cebcd3965
Add missing brackets to custom field shortcodes [MAILPOET-1013]
2017-07-21 14:40:56 +03:00
213d0e8627
Distinguishes between link TYPE and link CATEGORY NAME
...
Uses $replacement_link variable for clarity
2017-07-17 09:14:11 -04:00
abfebc8643
Merge pull request #880 from mailpoet/subscriber_shortcode_fix
...
Returns shortcode's default value when subscriber's first/last name is blank [MAILPOET-899]
2017-05-01 11:28:54 +03:00
40a3487d3d
Remove a redundant condition, fix a typo in a test name [MAILPOET-880]
2017-05-01 11:20:33 +03:00
4e76286b44
Returns shortcode's default value when subscriber's first or last name is empty
2017-04-28 09:49:00 -04:00
2f1b31aeb2
Adds missing anchor closing tag
2017-04-27 08:41:05 -04:00
b02e9f5ab3
Depreciates and removes server-side rendering of subscription_unsubscribe,
...
subscription_manage and newsletter_view_in_browser
2017-04-26 17:47:52 -04:00
44a223eba1
Fix post_title shortcode breaking sending if the post is trashed in the process [MAILPOET-831]
2017-02-23 16:33:18 +03:00
a3f2c32a6d
- Adds custom date format as a shortcode action's argument
...
- Updates shortcodes logic to allow action arguments other than
"default"
2017-01-09 09:05:24 -05:00
497c2fb595
- Introduces shortcode to custom format dates
2017-01-06 21:29:05 -05:00
e4166cecba
- Updates date:dtext shortcode to display full day name
2017-01-04 13:06:29 -05:00
9698cf2d2e
- Optimizes ViewInBrowser router endpoint
...
- Optimizes ViewInBrowser class
- Optimizes and updates shortcode link category to use the refactored
getViewInBrowserUrl() method
- Updates Shortcodes to use the refactored getViewInBrowserUrl() method
2016-12-18 23:24:57 -05:00
eee22227b3
- Removes unused class import
...
- Fixes newsletter URL generation in archive shortcode
- Disables generation of subscription management/unsubscribe/view in
browser shortcodes when newsletter is previewed
2016-12-18 23:08:07 -05:00
43b23994a9
- Updates function arguments
2016-12-05 12:15:24 -05:00
9708019ab6
- Returns false when subscriber is defined but not an object
...
- Updates unit tests
2016-12-05 11:48:20 -05:00
b36d13a087
Merge pull request #699 from mailpoet/php53-fix
...
Fixes various errors on PHP 5.3.x
2016-11-07 16:48:18 +01:00
1db8626e35
- Fixes 'Cannot access self:: when no class scope is active' error in PHP 5.3
2016-11-06 18:55:20 -05:00
61c255564f
- Fixes 'Using $this when not in object context' error in PHP 5.3
2016-11-06 18:55:12 -05:00
0d32c09df3
- Replaces model arrays with model objects
2016-11-03 20:45:53 -04:00
9f288ae11a
- Removes unused classes
...
- Fixes [newsletter:number] shortcode not working
2016-11-03 20:38:20 -04:00
4402f826c3
fixed issue with namespace AND fixed issue #649
2016-10-06 12:54:04 +02:00
b9745b555a
make sure ABSPATH is defined before using it - fixes issue #648
2016-10-06 12:52:53 +02:00
7fbf84db1f
converted text domain to string instead of constant
2016-09-30 09:58:26 +02:00
42202f676a
updated Env::plugin_name to constant for text domain
2016-09-27 14:54:23 +02:00
ba6198f956
added textdomain to __() calls
2016-09-27 14:53:44 +02:00
ec09fbcb78
- Converts static classes to dynamic
2016-08-22 16:22:33 -04:00
ed352bb1d3
- Passes wp_user_preview parameter to custom link shortcode filter
2016-08-22 09:26:25 -04:00
69f8daac95
- Updates wp user & preview check condition
2016-08-22 09:26:25 -04:00
8e4d07c658
- Updates regex to not match http/ftp links as shortcodes
...
- Updates regex to properly replace links in text version of newsletter
2016-07-27 21:57:55 -04:00
0ac701eb20
Change line endings from DOS CRLF to Unix LF
2016-06-30 18:52:07 +03:00
55d48df8a4
Fix indentation issues
2016-06-30 18:50:48 +03:00
9ddc1ef555
Remove statements that cannot be executed
2016-06-30 18:49:50 +03:00
24e108bce7
Remove spaces after type casts
2016-06-30 18:49:50 +03:00
d414313749
- Fixes const definition for PHP 5.5
2016-06-22 13:35:48 -04:00
999a0b3ede
- Refactors sending queue worker by breaking it into smaller tasks
...
- Adds arrayUnique method to Helpers for multidimensional arrays
2016-06-17 14:52:56 -04:00