dont force “wp-content” in code
-
Hi, i just discovered little bug with “wp-content” folder is hardcoded in your plugin.
In functions
- add_webp_rewrite_rules
- replace_image_urls_with_webp
- convert_image_path_to_webp_path
You should use constants for this
- WP_CONTENT_DIR // no trailing slash, full paths only
- WP_CONTENT_URL or content_url( $path = ” )
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘dont force “wp-content” in code’ is closed to new replies.