Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
5 | class ScriptLoader |
||
6 | { |
||
7 | /** |
||
8 | * Adds async/defer attributes to enqueued / registered scripts. |
||
9 | * |
||
10 | * If #12009 lands in WordPress, this function can no-op since it would be handled in core. |
||
11 | * |
||
12 | * @link https://core.trac.wordpress.org/ticket/12009 |
||
13 | * |
||
14 | * @param string $tag The script tag. |
||
15 | * @param string $handle The script handle. |
||
16 | * @return string Script HTML string. |
||
17 | */ |
||
18 | public function filterScriptLoaderTag($tag, $handle) |
||
34 |