Commit ea83e75
committed
WP Super Cache: Fix fatal error when getmypid() is unavailable in debug logging
Add function_exists check before calling getmypid() to prevent fatal errors in environments where the function is disabled (e.g., via disable_functions in php.ini by hosting providers).1 parent f89f528 commit ea83e75
File tree
2 files changed
+9
-1
lines changed- projects/plugins/super-cache
- changelog
2 files changed
+9
-1
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
757 | | - | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
758 | 762 | | |
759 | 763 | | |
760 | 764 | | |
| |||
0 commit comments