Skip to content

Instantly share code, notes, and snippets.

@DmitriyLyalyuev
Created November 20, 2015 09:12
Show Gist options
  • Save DmitriyLyalyuev/9fd64536f4bab4c02f83 to your computer and use it in GitHub Desktop.
Save DmitriyLyalyuev/9fd64536f4bab4c02f83 to your computer and use it in GitHub Desktop.
Patch W3 Total Cache plugin for PHP7 support
--- wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php 2015-11-20 11:19:10.595861000 +0300
+++ wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php 2015-11-20 11:18:09.859861000 +0300
@@ -509,7 +509,7 @@
* @param string $buffer
* @return string
*/
- function ob_callback(&$buffer) {
+ function ob_callback($buffer) {
global $wpdb;
if ($buffer != '') {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment