Commit Graph

13768 Commits

Author SHA1 Message Date
Jan Lysý
f140875062 Add missing property annotations used in tests
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Jan Lysý
88c884b2c9 Delete phpstan-baseline files for tests and remove them from config
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Jan Lysý
4390a1932d Remove phpstan errors from the rest of the code
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Jan Lysý
479f2cf198 Remove phpstan error from DynamicSegments
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Jan Lysý
7950804216 Remove phpstan error from Models
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Jan Lysý
b0e53b38a1 Delete phpstan-baseline.neon and remove them from config
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Rodrigo Primo
e64ba70561 Remove minimum required PHP version
This commit removes a reference to the minimum required PHP version (which is presumably outdated as it mentions PHP 5.6) from the MailPoet API documentation.

I'm assuming that the minimum required version to use the API is the same as the one to run MailPoet. If that is the case, I don't see a reason to mention it in the API documentation, and removing it has the benefit of reducing the maintenance burden when the minimum required version is updated.
2021-01-18 12:28:50 +01:00
Rodrigo Primo
68d6099eb3 Fix a syntax issue in .env.sample
The .env.sample file contained a few comments using `//`. The problem is
that `//` is not supported by vlucas/phpdotenv and this was resulting in
the following fatal error when following the dev environment setup
instructions and running `./do install`:

```
ERROR: Uncaught Dotenv\Exception\InvalidFileException: Failed to parse dotenv file due to unexpected whitespace. Failed at ["" // URL of your site (used for multisite env and equals to DOMAIN_CURRENT_SITE from wp-config.php)]. in /srv/www/mailpoet/public_html/wp-content/plugins/mailpoet/vendor/vlucas/phpdotenv/src/Parser.php:148
```

To fix this problem, this commit replaces all instances of `//` in
.env.sample with the `#` (see
https://github.com/vlucas/phpdotenv#comments).

Quick test show that `//` doesn't work and `#` does:

```
>>> Dotenv\Dotenv::parse("FOO=Bar // some comment")
Dotenv\Exception\InvalidFileException with message 'Failed to parse dotenv file. Encountered unexpected whitespace at [Bar // some comment].'
>>> Dotenv\Dotenv::parse("FOO=Bar # some comment")
=> [
     "FOO" => "Bar",
   ]
```
2021-01-18 12:24:25 +01:00
Rostislav Wolny
878940fc42 Update form editor area paddings to new values in post editor
[MAILPOET-3253]
2021-01-18 11:10:30 +01:00
Rostislav Wolny
ac45808d6d Fix fixed bar appearance in from editor
[MAILPOET-3253]
2021-01-18 11:10:30 +01:00
Rostislav Wolny
812e0e5e5b Fix form block editor max width for wide forms with width in pixels
[MAILPOET-3253]
2021-01-18 11:10:30 +01:00
Rostislav Wolny
1d662c5e79 Update form with columns acceptance test
[MAILPOET-3253]
2021-01-18 11:10:30 +01:00
Rostislav Wolny
87fcde66ed Fix custom textarea block rendering in form editor
[MAILPOET-3253]
2021-01-18 11:10:30 +01:00
Rostislav Wolny
baf39e1303 Cleanup unused properties from form settings in form store
[MAILPOET-3253]
2021-01-18 11:10:30 +01:00
Rostislav Wolny
f8179107be Remove css fixes for form editor that are no longer needed
[MAILPOET-3253]
2021-01-18 11:10:30 +01:00
Rostislav Wolny
8de00aedc5 Unify padding for text blocks with background in editor and on FE
[MAILPOET-3253]
2021-01-18 11:10:30 +01:00
Rostislav Wolny
7fa36ad59e Unify padding for columns in form editor and on front end
[MAILPOET-3253]
2021-01-18 11:10:30 +01:00
Rostislav Wolny
4a40a1c4e1 Fix custom fields settings form appearance
[MAILPOET-3253]
2021-01-18 11:10:30 +01:00
Rostislav Wolny
b48ff353a7 Fix form style font size settings input in form editor
[MAILPOET-3253]
2021-01-18 11:10:30 +01:00
Rostislav Wolny
19ad765487 Fix displaying input blocks settings in form editor
[MAILPOET-3253]
2021-01-18 11:10:30 +01:00
Rostislav Wolny
64f13ccc29 Fix spacing of buttons in top bar
[MAILPOET-3253]
2021-01-18 11:10:30 +01:00
Rostislav Wolny
2bce818d6c Fix more options popup rendering in form editor
[MAILPOET-3253]
2021-01-18 11:10:30 +01:00
Rostislav Wolny
ef93af2061 Fix Gutenberg styles loading order
We need load styles from @wordpress/edit-post after common styles for components etc.
[MAILPOET-3253]
2021-01-18 11:10:30 +01:00
Rostislav Wolny
c1f5173522 Fix form editor layout rendering
[MAILPOET-3253]
2021-01-18 11:10:30 +01:00
Rostislav Wolny
e25c20aecb Update Gutenberg packages
[MAILPOET-3253]
2021-01-18 11:10:30 +01:00
Jan Lysý
84f2d5de0b Add test on nextRunDate in KeyCheckWorker
[MAILPOET-3271]
2021-01-18 10:26:59 +01:00
Jan Lysý
3a7beb6e3f Check API key cron jobs more randomly in time
[MAILPOET-3271]
2021-01-18 10:26:59 +01:00
Rodrigo Primo
096a8a8a06 Remove composer.phar from the root directory
Commit d143cd20d1 added composer.phar to the root directory of the plugin apparently by mistake as nothing about composer is mentioned in the commit message or the related issue. We use a copy of composer.phar that lives in `tools/vendor/composer.phar`, so I'm assuming there is no reason to have another copy on the root directory.
2021-01-18 09:07:04 +01:00
Rodrigo Primo
66bed164b8 Bump the PHP version requirement
This commit updates the README.md file and bumps the PHP version required to run the development environment to PHP >= 7.3 and add a note informing that the requirements to just run the plugin are different.
2021-01-15 16:01:22 +01:00
Rodrigo Primo
4cb35b9f66 Add note saying that the instructions assume a working WP dev env 2021-01-15 16:01:22 +01:00
Rodrigo Primo
00ab9214ca Remove docker and docker compose from requirements list
This commit removes docker and docker compose as requirements to run Mailpoet. They are only required to run the acceptance tests and not the plugin itself.
2021-01-15 16:01:22 +01:00
Jan Lysý
21cb4f83c9 Add Circle.CI notifications to Slack
[MAILPOET-3357]
2021-01-14 19:15:36 +01:00
Veljko
4d45d21f90 Update test to cover recent bug of form's placement 2021-01-13 23:01:59 +01:00
Lunar
aa450a2ebe Source reCAPTCHA API only when needed
When using a subscription form as an iframe, our CSP catched up that the reCAPTCHA API was included despite MailPoet being configured to use its internal CAPTCHA. The following change will only output the relevant <script> tag when MailPoet uses reCAPTCHA.
2021-01-13 12:08:41 +01:00
Rostislav Wolny
be7c3bf0af Fix flaky ManagemeSegmentsCest
Test was flaky because by default sorting is done using created_at and all users have the same.
Fixed by reordering subscribers by email.
[MAILPOET-3365]
2021-01-13 12:08:16 +01:00
Tautvidas Sipavicius
9e93935a3a Release 3.57.1 2021-01-13 12:56:27 +02:00
Rostislav Wolny
bcd90775e7 Fix full path disclosure script for files with return on firs line
[MAILPOET-3364]
2021-01-12 13:59:03 +01:00
Rostislav Wolny
952accc9d6 Mark Subscriber::getTotalSubscribers as deprecated
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
bdb6477b4b Replace usages of Subscriber::getTotalCount by Subscribers service
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
8a066e7ac7 Replace window usage in subscribers notice with MailPoet
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
2c3f6488c2 Remove no longer needed fetching of WP user count
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
9af2aa4257 Remove duplicate subcribers count variable
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
7c8f29a90d Get rid of premium_subscriber_count and load count using doctrine
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
0abb08bdac Replace some window usage with MailPoet in subscribers notice
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
e576002d70 Append subscribers limit notice with info about WP users segment
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
0eb60a4880 Move notices out of listing tabs content on segments page
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
a1c6c6f8bd Replace direct window access with MaiPoet properties
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
6f426d4154 Simplify subscribers count info on subscribers page
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
86add53c30 Always count WP user list towards the limit
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Pavel Dohnal
8de40ffb99 Fix flakey test 2021-01-11 14:53:24 +01:00