Commit 19ae153
authored
Use Plugins API rather than the global variable
WordPress 4.6 moves wp-includes/plugins.php inclusion before the loading of advanced-cache.php which means the Plugins API is available to use. To keep backwards compatibility we check for the existence of add_filter(). Props @aaronjorbin @danielbachhuber1 parent 9bb9090 commit 19ae153
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
540 | | - | |
541 | | - | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
542 | 549 | | |
543 | 550 | | |
544 | 551 | | |
| |||
0 commit comments