Skip to content

Commit 2224b9e

Browse files
authored
Update emogrifier (#2809)
1 parent 8684205 commit 2224b9e

10 files changed

+368
-1950
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Build Plugin
4141
run: npm run build
4242
- name: Decompress plugin
43-
run: unzip wp-job-manager.zip -d wp-job-manager
43+
run: unzip build/wp-job-manager.zip -d wp-job-manager
4444
- name: Store Artifact
4545
uses: actions/upload-artifact@v2
4646
with:

.psalm/psalm-baseline.xml

-15
Original file line numberDiff line numberDiff line change
@@ -402,21 +402,6 @@
402402
<code><![CDATA[! defined( 'ABSPATH' )]]></code>
403403
</ParadoxicalCondition>
404404
</file>
405-
<file src="lib/emogrifier/class-emogrifier.php">
406-
<InvalidArgument>
407-
<code><![CDATA[function ($matches) use (&$media) {
408-
$media .= $matches[0];
409-
}]]></code>
410-
<code><![CDATA[usort($cssRules, [$this, 'sortBySelectorPrecedence'])]]></code>
411-
</InvalidArgument>
412-
<InvalidReturnStatement>
413-
<code><![CDATA[$this->caches[self::CACHE_KEY_CSS][$cssKey]]]></code>
414-
<code><![CDATA[$this->caches[self::CACHE_KEY_SELECTOR][$selectorKey]]]></code>
415-
</InvalidReturnStatement>
416-
<RedundantCondition>
417-
<code><![CDATA[$node->parentNode && is_callable([$node->parentNode, 'removeChild'])]]></code>
418-
</RedundantCondition>
419-
</file>
420405
<file src="lib/usage-tracking/class-wp-job-manager-usage-tracking-base.php">
421406
<FalsableReturnStatement>
422407
<code>false</code>

composer.json

+3-26
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,15 @@
1717
"vimeo/psalm": "^5.13",
1818
"php-stubs/wordpress-stubs": "^6.4"
1919
},
20-
"archive": {
21-
"exclude": [
22-
"/*",
23-
"!/assets/dist",
24-
"!/assets/images",
25-
"!/assets/lib",
26-
"/assets/dist/css/*.js",
27-
"!/includes",
28-
"!/languages",
29-
"!/lib",
30-
"!/templates",
31-
"!/changelog.txt",
32-
"!/LICENSE",
33-
"!/readme.txt",
34-
"!/uninstall.php",
35-
"!/wp-job-manager.php",
36-
"!/wp-job-manager-autoload.php",
37-
"!/wp-job-manager-deprecated.php",
38-
"!/wp-job-manager-functions.php",
39-
"!/wp-job-manager-template.php",
40-
"!/wpml-config.xml",
41-
".DS_Store",
42-
".*",
43-
"*.test.js"
44-
]
45-
},
4620
"config": {
4721
"allow-plugins": {
4822
"dealerdirect/phpcodesniffer-composer-installer": true
4923
},
5024
"platform": {
5125
"php": "7.4"
5226
}
27+
},
28+
"require": {
29+
"pelago/emogrifier": "^7.2"
5330
}
5431
}

0 commit comments

Comments
 (0)