$file_path is wrong when WP_CONTENT_DIR is outside ABSPATH
-
What title says. If
WP_CONTENT_DIR
is outsideABSPATH
file_exists($file_path) (line 63) conditional fails asABSPATH . $_src['path']
will never be the actual file location.More error-proof approach would be to replace
WP_CONTENT_URL
withWP_CONTENT_DIR
in original url to get an accurate file path.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘$file_path is wrong when WP_CONTENT_DIR is outside ABSPATH’ is closed to new replies.