Commit Graph

20 Commits

Author SHA1 Message Date
Jan Jakes
ba35ddf6e6 Extract automation API to MailPoet REST API
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
David Remer
b05e6d414c Remove WP\Functions::__ and other translate functions
Under the new sniffer rules, those functions produce errors and, when those methods
are used, the sniffer can not properly be applied.

[MAILPOET-4524]
2022-08-09 13:23:16 +02:00
Rostislav Wolny
272e875643 Deactivate action scheduler recurring actions on plugin deactivation
We need to cleanup these recurring actions otherwise they would be rescheduled indefinitely.
[MAILPOET-4274]
2022-08-03 10:36:57 +02:00
David Remer
8c7097df85 Add / when generating the Iframe URL
[MAILPOET-4337]
2022-05-16 11:31:39 +02:00
Rodrigo Primo
e00d71b781 Remove WP < 4.5.0 compatibility code
This commit removes the method Posts::getTerms() as it existed to add a
compatibility layer for sites running WP < 4.5.0 and we don't support
this version anymore. The signature of the WP get_terms() function was
changed in version 4.5.0 and that is why this compatibility layer was
needed.

The integration test class for this method was also removed. The only
place where this method was used, AutomatedLatestContent::getTerms(),
now call WPFunctions->getTerms() directly. A very basic integration test
was added to cover the happy path of AutomatedLatestContent::getTerms().

[MAILPOET-4225]
2022-04-11 09:20:21 +02:00
David Remer
53fc49d1eb Simplify phpcs:disable comments
Additionally this commit contains a conversion from %d to %s in a query

[MAILPOET-4219]
2022-04-04 17:12:33 +02:00
David Remer
cb55cae1b2 Escape SQL queries following wp org sniffs
[MAILPOET-4129]
2022-04-04 17:12:33 +02:00
David Remer
f4b040d8ff Fix two minor sniff warnings
WordPress.NamingConventions.PrefixAllGlobals.DeprecatedWhitelistCommentFound
WordPress.WP.DeprecatedParameters.Load_plugin_textdomainParam2Found
[MAILPOET-4219]
2022-04-04 17:12:33 +02:00
David Remer
a8d88beec9 Escape output according to WP sniffs
[MAILPOET-4129]
2022-04-04 17:12:33 +02:00
Jan Jakes
6293809b1e Add strict validator service (wrapping WP REST validator)
[MAILPOET-4195]
2022-03-30 11:29:58 +02:00
Rostislav Wolny
84b7ec709a Fetch .com language packs info during plugin activation
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Jan Lysý
f86f4e3f79 Add wordpress functions
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Jakes
ec0f490397 Restrict automation API only for admins
[MAILPOET-4135]
2022-02-21 09:56:26 +01:00
Rostislav Wolný
164a6880bf Revert "Add wordpress functions"
This reverts commit 2aa83da2c7.
2022-02-16 12:49:35 +01:00
Jan Lysý
2aa83da2c7 Add wordpress functions
[MAILPOET-3808]
2022-02-14 11:53:32 +01:00
Sam Najian
a3c9128f04 Update MailPoet\WP\DateTime methods and Docblocks
- The Docblocks for MailPoet\WP\DateTime::getCurrentTime, getCurrentDate
needed improvement
- Add MailPoet\WP\DateTime::getCurrentDateTime

[MAILPOET-4023]
2022-02-09 16:32:26 +01:00
Sam NAjian
897c9bbd8c Add tests for MailPoetDate.isInFuture and fix test eslint issues
- Convert date.js to typescript and define types
- Fix test script to include ts tests as well
- Make eslint for ts tests work correct and recognize mocha

[MAILPOET-4023]
2022-02-09 16:32:26 +01:00
Sam NAjian
b9432d3f3a Default scheduling date to tomorrow at 08 am
[MAILPOET-4023]
2022-02-09 16:32:26 +01:00
wxa
5772dc086c Add Woo membership segment backend
[MAILPOET-3880]
2022-01-27 16:14:14 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00