Skip to content

Commit 59bdb85

Browse files
committed
fix(deps): Bumped jetpack-constants version
1 parent ff156d8 commit 59bdb85

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"require": {
1212
"php": ">=8.0",
13-
"automattic/jetpack-constants": "^2.0",
13+
"automattic/jetpack-constants": "^2 | ^3",
1414
"x-wp/helper-functions": "^1.18",
1515
"x-wp/helper-traits": "^1.9"
1616
},

src/Resources/Font.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ class Font extends File {
1515
/**
1616
* Add the preload tag to the head for the font.
1717
*
18+
* @param int|null $priority Priority of the action. Defaults to the bundle priority.
1819
* @return bool
1920
*/
20-
public function preload(): bool {
21+
public function preload( ?int $priority = null ): bool {
2122
if ( \did_action( 'wp_head' ) ) {
2223
return false;
2324
}
@@ -31,7 +32,7 @@ function () {
3132
\esc_attr( $this->ext() ),
3233
);
3334
},
34-
$this->bundle->priority(),
35+
$priority ?? $this->bundle->priority(),
3536
);
3637

3738
return true;

0 commit comments

Comments
 (0)