Commit Graph

41 Commits

Author SHA1 Message Date
677ae370ed Handle special case for selected Posts page
MAILPOET-4897
2023-07-12 10:14:52 +02:00
481f5585a0 Add form placement options for homepage, archives
MAILPOET-4897
2023-07-12 10:14:52 +02:00
30a3bde940 Unify add menu/submenu parameters with WP
[MAILPOET-5383]
2023-06-16 17:14:34 +02:00
bb979cd1ba Add menu page function types to analyze them statically
[MAILPOET-5383]
2023-06-16 17:14:34 +02:00
e62a3ee5b5 Add escaping for known shortcodes when rendered in form textarea's value
[MAILPOET-5243]
2023-04-27 10:42:34 +02:00
ef7f2ebade Define method to disable theme templates settings
[MAILPOET-5194]
2023-04-26 10:57:23 +02:00
1603378d7d Skip upgrader->install() as false positve
[MAILPOET-5230]
2023-04-26 10:01:51 +02:00
930ff18785 Skip add_query_arg() finding as false positive
[MAILPOET-5230]
2023-04-26 10:01:51 +02:00
8028bd3e95 Use discouraged function directly
We need to add a warning so that we know for sure
that this piece of risky code gets reviewed by a human and consciously ignore the warning

[MAILPOET-5245]
2023-04-20 12:00:29 +02:00
0f4ffd7849 Use get_plugin_data from WPFunctions
[MAILPOET-5085]
2023-03-27 11:35:48 +02:00
cf88a3fab2 Display warning for unsupported WooCommerce version
[MAILPOET-5085]
2023-03-27 11:35:48 +02:00
bf234cdd6e Update removeAction definition to match original WP function
[MAILPOET-5057]
2023-03-06 11:22:58 +01:00
847132b433 Create new component for existing coupons
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
d9eca55189 Redirect to Landing page after plugin activation
MAILPOET-4795
2023-01-06 18:29:46 +01:00
926620e8f8 Ignore strict types rule in all existing files that don't have it
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
5a378b3c5f Add replacePrivacyLinkTags method for Form Template
MAILPOET-4651
2022-11-16 16:51:12 +01:00
99198e5c2d Fix MailPoet\WP\Functions newly added method name
[MAILPOET-4703]
2022-11-11 09:21:30 +01:00
6e8c9731d8 Define new isSiteUsingHttps method for WP_Functions
[MAILPOET-4703]
2022-11-11 09:21:30 +01:00
b6e7e39fb0 Rename method and move wcGetPageId to Woo helper class
MAILPOET-4663
2022-11-01 14:58:47 +01:00
8c24d59f43 Add tests for form display on Woo Shop listing page
MAILPOET-4663
2022-11-01 14:58:47 +01:00
5ed0c3fb2d Allow form display on Woo Shop listing page
The WooCommerce Shop page is a special kind of page. It’s basically a post archive.

The Shop page is a placeholder for a post type archive for products. It may render differently than other pages in your install.
https://woocommerce.com/document/woocommerce-pages/#section-4

It doesn’t have any content and WooCommerce core team is also removing the the-content filter from the Shop listing page hence why we are unable to hook into the the-content filter we use for other parts of the codebase

MAILPOET-4663
2022-11-01 14:58:47 +01:00
ba35ddf6e6 Extract automation API to MailPoet REST API
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
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
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
8c7097df85 Add / when generating the Iframe URL
[MAILPOET-4337]
2022-05-16 11:31:39 +02:00
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
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
cb55cae1b2 Escape SQL queries following wp org sniffs
[MAILPOET-4129]
2022-04-04 17:12:33 +02:00
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
a8d88beec9 Escape output according to WP sniffs
[MAILPOET-4129]
2022-04-04 17:12:33 +02:00
6293809b1e Add strict validator service (wrapping WP REST validator)
[MAILPOET-4195]
2022-03-30 11:29:58 +02:00
84b7ec709a Fetch .com language packs info during plugin activation
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
f86f4e3f79 Add wordpress functions
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
ec0f490397 Restrict automation API only for admins
[MAILPOET-4135]
2022-02-21 09:56:26 +01:00
164a6880bf Revert "Add wordpress functions"
This reverts commit 2aa83da2c7.
2022-02-16 12:49:35 +01:00
2aa83da2c7 Add wordpress functions
[MAILPOET-3808]
2022-02-14 11:53:32 +01:00
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
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
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
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00