Commit Graph

48 Commits

Author SHA1 Message Date
Pavel Dohnal
63f126c7c7 Use better function to check url parametter
On some nginx installations we got null as
an array value and isset returned false

[MAILPOET-2393]
2019-09-26 13:52:38 +01:00
Jan Jakeš
01a0fe96c4 Remove no longer necessary checks
[MAILPOET-1948]
2019-09-12 13:59:32 +02:00
Pavel Dohnal
5da7110eb6 Use short array syntax
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
Pavel Dohnal
3e66e9e1dd Fix phpstan level 6
[MAILPOET-1969]
2019-04-10 09:55:13 -04:00
Amine Ben hammou
0a436087e1 Replace all WP function calls 2019-03-07 08:30:14 -05:00
Ján Mikláš
3ee58aea10 Add space between if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Tautvidas Sipavičius
9f13f68e39 Fix "Access to undefined property" rule violations 2019-01-23 11:33:47 +02:00
Rostislav Wolny
b5bc4b2609 Replace symfony container types by PSR interface
[PREMIUM-99]
2018-12-12 08:52:11 +01:00
Jan Jakeš
bf7e6a601e Move prefixed dependencies from lib/Dependencies to vendor-prefixed
[MAILPOET-1642]
2018-11-20 14:11:33 +01:00
Rostislav Wolny
fff8176a49 Refactor lib/Router to use with container for endpoints
[MAILPOET-1605]
2018-10-31 17:26:47 +01:00
stoletniy
6e5fc6ad6b Fix array_key_exists() error if no data is passed to subscription management page [MAILPOET-1122] 2017-12-05 19:22:28 +03:00
Vlad
af58814fe7 Moves AccessControl intialization outside of Router to Initializer 2017-08-24 13:56:17 -04:00
Vlad
78429d8f91 Validates global permission at the AccessControl level
Changes error response code on invalid permission
2017-08-23 11:27:54 -04:00
Vlad
1b756ef0b2 Adds access management to router and updates endpoints accordingly 2017-08-22 09:06:20 -04:00
Tautvidas Sipavičius
9f7ae122e3 Add missing periods to translation strings 2017-01-30 21:33:59 +02:00
Vlad
5800883416 - Updates action names 2017-01-11 21:18:37 -05:00
Vlad
4196d35e35 - Adds new ConflictResolver class
- Executes URL query parameter conflict resolver action in Router class
- Adds unit tests
2017-01-11 20:52:03 -05:00
Vlad
a6b00e1ba7 - Adds new "ping" cron daemon router endpoint
- Removes the requirement to have data payload for router requests
2017-01-08 22:25:39 -05:00
Vlad
5e9e53ec41 - Updates router to use json_encode() instead of serialize() for publicly modified data payload
- Updates unit tests
- Fixes #634
2016-10-17 22:39:36 -04:00
Jonathan Labreuille
7fbf84db1f converted text domain to string instead of constant 2016-09-30 09:58:26 +02:00
Jonathan Labreuille
42202f676a updated Env::plugin_name to constant for text domain 2016-09-27 14:54:23 +02:00
Jonathan Labreuille
ba6198f956 added textdomain to __() calls 2016-09-27 14:53:44 +02:00
Vlad
59d30cc139 - Renames router URL query parameter and router class
- Updates other classes to use the new name
- Updates unit tests
2016-08-25 09:57:14 -04:00
Jonathan Labreuille
354d249e1d Moved current Router files to API
- updated Unit tests to reflect the change
2016-08-01 17:00:32 +02:00
Jonathan Labreuille
9979261cb6 fixed a few more warnings 2016-06-30 15:42:58 +02:00
Tautvidas Sipavičius
c7fd7b8a32 Change line endings from DOS CRLF to Unix LF 2016-06-30 14:39:28 +03:00
Tautvidas Sipavičius
9595e9629f Fix spacing between control structure and opening parenthesis 2016-06-29 18:54:01 +03:00
Jonathan Labreuille
d2dbf86a9c fixed Router when data represents a single variable (not an array) 2016-04-22 16:59:28 +02:00
Jonathan Labreuille
42d586610e form subscription only using Router now 2016-04-20 16:59:18 +02:00
Jonathan Labreuille
82ed7e51c5 Replaced "contains" by "indexOf" (chrome issue)
- added public ajax routing (not checking permissions)
- exception handling in form subscription
2016-03-01 13:18:36 +01:00
Jonathan Labreuille
c721843c12 extracted subscription pages code from router 2016-02-29 13:34:17 +01:00
Jonathan Labreuille
d2be407ccb rendering of edit subscription form 2016-02-29 13:34:17 +01:00
Jonathan Labreuille
e6337216cf improved demo view of subscription pages 2016-02-29 13:34:17 +01:00
Jonathan Labreuille
f1c396f0b0 basic implementation of confirm/edit/unsubscribe pages 2016-02-29 13:34:17 +01:00
Jonathan Labreuille
14fe333678 Send confirmation email + page 2016-02-29 13:34:17 +01:00
Vlad
0d894a6fef - Fixes namespace issue when catching exceptions 2016-02-12 11:20:43 -05:00
Jonathan Labreuille
894a9e8c90 Router\Router is now taking care of outputting JSON
- converted Subscribers Router to return array instead of wp_send_json()
- added unit test for Subscribers Router
2016-01-27 17:23:30 +01:00
Jonathan Labreuille
239e2583d2 refactored bulk actions & implemented bulk trash for all listings 2015-09-18 17:39:25 +02:00
Jonathan Labreuille
7370d19be3 Segment listing
- fixed duplicate entry in Robofile for editor styles
- added Segment menu
- added Segment listing
- added listing methods to Segment model
- fixed syntax in both Segment & Subscriber models (MAX LINE 80!!!)
2015-09-04 13:02:23 +02:00
Jonathan Labreuille
5ffba00937 fixing syntax 2015-08-21 15:03:13 +02:00
Jonathan Labreuille
c473338d19 fixed issue with setToken injecting a /n 2015-08-21 15:02:24 +02:00
Jonathan Labreuille
bf5d7f273b Settings JSX
- fixed issue with token in MailPoet Ajax / JSX
- added settings form with get/set
- reformated some code in subscribers.jsx
2015-08-21 13:12:14 +02:00
Jonathan Labreuille
1ff7e3f4be Form Subscription
- improved MailPoet ajax to fix token issue
- added js validation and ajax submit in public.js
- add util security to generate tokens
- updated router to use new util security
- added jquery-validation module
- update public config in webpack config
- added error messages in form
2015-08-20 21:02:04 +02:00
Jonathan Labreuille
58d83f5fbe fixed MPAjax to behave with router 2015-08-18 15:29:00 +02:00
Vlad
a26cbd6f41 - Renamed Model to BaseModel (make it clear)
- Updated RoboFile to compile assets or else tests break
2015-08-17 15:54:48 +00:00
marco
9db0db83b1 There's no need to encode json in the Router. 2015-08-17 12:44:53 +02:00
marco
60919e6171 Router works for POST requests. 2015-08-16 20:21:34 +02:00
marco
60f63ccfe6 Router skeleton. 2015-08-13 21:57:05 +02:00