Created
October 15, 2025 11:11
-
-
Save dieppon/b1068117badc810465670fa7ab1d43f3 to your computer and use it in GitHub Desktop.
Broken join for W3TC (WTCPM) from https://wordpress.org/support/topic/broken-join-for-w3tc-wtcpm/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/includes/folders.class.php b/includes/folders.class.php | |
| index ff6fc72..a3d23ad 100644 | |
| --- a/includes/folders.class.php | |
| +++ b/includes/folders.class.php | |
| @@ -4979,7 +4979,7 @@ class WCP_Folders | |
| AND ELPM.meta_key = '_elementor_is_screenshot') "; | |
| } | |
| if(defined("W3TC")) { | |
| - $join .= "LEFT JOIN ".$wpdb->postmeta." AS WTCPM | |
| + $join .= " LEFT JOIN ".$wpdb->postmeta." AS WTCPM | |
| ON ( P.ID = WTCPM.post_id | |
| AND WTCPM.meta_key = 'w3tc_imageservice_file' )"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment