Commit graph

51 commits

Author SHA1 Message Date
Niklas Gutberlet
4a985fcb2c
Merge pull request #3505 from woocommerce/PCP-4970-add-defensive-code-for-realpath-failures-in-module-service-files
Create a centralized service for a path to the main plugin file (4970)
2025-08-04 19:42:12 +02:00
Alex P.
53d5c35a81
Fix security warnings 2025-07-15 10:57:25 +03:00
Narek Zakarian
943a0d197c
Use the 'ppcp.path-to-plugin-main-file' config 2025-07-04 19:27:13 +04:00
Narek Zakarian
0caa74c021
Refactor the code to use the new service 2025-07-04 17:10:37 +04:00
Emili Castells Guasch
77fcf75aee
Extract html from translation strings 2025-05-22 16:58:10 +02:00
Emili Castells Guasch
12f26e230e
Remove unused import 2025-05-22 16:26:09 +02:00
Emili Castells Guasch
a9e5943ada
Fix psalm 2025-05-22 15:46:47 +02:00
Emili Castells Guasch
2b549586ac
Add installments section in classic ux 2025-05-22 15:37:49 +02:00
Emili Castells Guasch
f3e3b1aa93
Adds mexico installments inbox note 2025-05-22 12:57:34 +02:00
Alex P.
b67265ac15
Update js deps 2024-11-04 17:15:27 +02:00
Philipp Stracker
2cb026604c
Merge branch 'PCP-1773-php74'
# Conflicts:
#	composer.lock
2024-09-04 15:47:37 +02:00
Alex P.
f538ea2ef2
Require PHP 7.4+ 2024-09-03 09:07:12 +03:00
Philipp Stracker
7509f914ab
Merge branch 'trunk'
# Conflicts:
#	modules/ppcp-admin-notices/src/AdminNotices.php
#	modules/ppcp-local-alternative-payment-methods/src/LocalAlternativePaymentMethodsModule.php
#	modules/ppcp-paylater-configurator/src/PayLaterConfiguratorModule.php
#	modules/ppcp-wc-gateway/src/WCGatewayModule.php
2024-08-30 15:16:20 +02:00
Philipp Stracker
dff9acbd06
🔥 Simplify JS code 2024-08-26 14:43:12 +02:00
Philipp Stracker
f43bfe891f
🔥 Remove unused code 2024-08-26 12:40:06 +02:00
Philipp Stracker
ce9a3e284d
🐛 Fix JS problems 2024-08-26 12:39:41 +02:00
Philipp Stracker
53a5d2c8df
🚨 Address failed unit tests 2024-08-26 12:39:01 +02:00
Philipp Stracker
c2b23358eb
♻️ Improve code structure and rename items
Remove all “nag” references, change “MutableMessage” to “PersistentMessage”, etc.
2024-08-26 11:58:45 +02:00
Philipp Stracker
03c6609c42
Remove muted-flags from user meta on uninstall 2024-08-23 20:04:58 +02:00
Philipp Stracker
9c11e65be3
♻️ Extract mutable-logic into new child class 2024-08-23 19:10:58 +02:00
Philipp Stracker
d1a5e02288
🐛 Fix error caused by typo 2024-08-23 18:19:11 +02:00
Philipp Stracker
13e3f75c6b
🐛 Register Pay Later notice in ajax requests
Required to mute the admin notice via ajax
2024-08-23 18:14:48 +02:00
Philipp Stracker
a5a981fac6
Front-end logic for dismissible admin notices 2024-08-23 18:11:58 +02:00
Philipp Stracker
cf67c00b44
🎨 Fix phpcs issues and typos 2024-08-23 18:11:15 +02:00
Philipp Stracker
63e91b22b4
Allow permanent muting of admin messages 2024-08-23 18:09:02 +02:00
Philipp Stracker
52200e3452
Add new MuteMessageEndpoint for admin-notices 2024-08-23 17:58:20 +02:00
Philipp Stracker
d9a96ddb7a
🔧 Add webpack to the admin-notices module 2024-08-23 17:52:07 +02:00
Pedro Silva
392d27f08b
Merge remote-tracking branch 'origin/trunk' into modularity-module-migration
# Conflicts:
#	modules/ppcp-admin-notices/src/AdminNotices.php
#	modules/ppcp-save-payment-methods/src/SavePaymentMethodsModule.php
#	modules/ppcp-wc-gateway/src/WCGatewayModule.php
#	modules/ppcp-wc-subscriptions/src/WcSubscriptionsModule.php
#	tests/PHPUnit/WcSubscriptions/RenewalHandlerTest.php
2024-03-27 18:42:21 +00:00
Pedro Silva
59b5af65bd
Fix lint. 2024-02-28 11:22:44 +00:00
Pedro Silva
562a9eed4c
Add admin notice persistence. 2024-02-28 11:14:59 +00:00
Pedro Silva
144474169b
Refactor some modules to native modularity support. 2023-12-15 14:16:53 +00:00
Pedro Silva
0a873eb2a1
Fix lint 2023-08-11 10:57:08 +01:00
Pedro Silva
1b87257fdb
Refactor unsupported currency notice to show only on payment pages and under the PayPal plugin. 2023-08-11 10:35:50 +01:00
Alex P
d8f972343d
Merge branch 'trunk' into pcp-918-php-72 2022-11-15 12:36:20 +02:00
Alex P
17d3cc152e Require PHP 7.2 2022-11-09 16:00:15 +02:00
Alex P
818dbcf107 Add isolated container and dhii modularity deps 2022-11-09 10:13:03 +02:00
Alex P
fc89021df4 Add hook docs
phpcs rules updated
2022-02-17 18:28:59 +02:00
Anton Ukhanev
df185157bd Update parameter name
Fixes PHPCS
2021-08-30 08:10:43 +02:00
Anton Ukhanev
3a72a73ae3 Auto-fix PHPCS 2021-08-30 08:08:41 +02:00
Anton Ukhanev
69d9631a73 Now using modularity standard v0.3
This is the newest release, and is the first one that is compatible
with PHP 8. Other changes are BC-breaking, but very very minor.
2021-08-26 11:11:49 +02:00
Anton Ukhanev
cabcb7d9e4 Add Container typehint to all service definitions 2021-08-26 11:10:16 +02:00
Anton Ukhanev
b8cc98e9cd Remove unused dependency
The WP containers don't seem to be used anywhere. There were
imports, but they are not actually used it seems.
2021-08-26 11:01:42 +02:00
Anton Ukhanev
d4c8282518 Use Composer modules and convert modules to PSR-4
PSR-4 is much more robust and predictable. But to do this,
a source root dir must be specified for every module.
This could be done in the root file, but this is not very modular.
Instead, now every module declares its own source root by using
the amazing Composer Merge Plugin. This approach allows each module
to also declare its own dependencies. Together, these changes allow
modules to be easily extractable to separate pacakges when the need
arises, and in general improves modularity significantly.
2021-08-26 11:01:20 +02:00
dinamiko
119543ae2d Update dhii/module-interface to version 0.3 2021-07-14 14:58:23 +02:00
dinamiko
d8817134a9 Update dhii\module-interface 2021-07-06 09:41:30 -05:00
David Remer
d865b4f8fc remove unused files 2020-10-08 07:22:43 +03:00
David Remer
324ff49496 fix namespace on admin notices services.php 2020-09-30 08:51:51 +03:00
David Remer
ddd4f5ba09 downgrade dhii/module-interface to 0.1 2020-09-16 10:18:45 +03:00
David Remer
c788341887 change namespace vendor to WooCommerce 2020-09-11 14:11:10 +03:00
David Remer
c5899d915c downgrade plugin to php 7.0 2020-09-11 13:38:02 +03:00