mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
Merge pull request #2403 from woocommerce/PCP-3346-type-error-with-w-3-total-cache-plugin
W3 Total Cache: Remove type from file parameter as sometimes null gets passed causing errors (3346)
This commit is contained in:
commit
36a13f6500
1 changed files with 10 additions and 1 deletions
|
@ -368,7 +368,16 @@ class CompatModule implements ModuleInterface {
|
|||
// W3 Total Cache.
|
||||
add_filter(
|
||||
'w3tc_minify_js_do_tag_minification',
|
||||
function( bool $do_tag_minification, string $script_tag, string $file ) {
|
||||
/**
|
||||
* Filter callback for 'w3tc_minify_js_do_tag_minification'.
|
||||
*
|
||||
* @param bool $do_tag_minification Whether to do tag minification.
|
||||
* @param string $script_tag The script tag.
|
||||
* @param string|null $file The file path.
|
||||
* @return bool Whether to do tag minification.
|
||||
* @psalm-suppress MissingClosureParamType
|
||||
*/
|
||||
function( bool $do_tag_minification, string $script_tag, $file ) {
|
||||
if ( $file && strpos( $file, 'ppcp' ) !== false ) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue