• What title says. If WP_CONTENT_DIR is outside ABSPATH file_exists($file_path) (line 63) conditional fails as ABSPATH . $_src['path'] will never be the actual file location.

    More error-proof approach would be to replace WP_CONTENT_URL with WP_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.