Add compatibility for WP Cloud hosts
WP Cloud (https://wp.cloud) provides hosting infrastructure for a growing list of hosts. This includes WordPress.com, Pressable.com, Bluehost Cloud, Newspack, InstaWP Live, Porkbun, and more.
The WP Cloud platform leverages symlinked core file paths that can conflict with the default Imagify pathing.
Host-specific patches have been added.
- https://github.com/wp-media/imagify-plugin/issues/393
- https://github.com/wp-media/imagify-plugin/issues/314
Rather than creating individual compatibility additions for each WP Cloud host, we offer some platform-wide constants that will work with any supported host.
The primary is IS_ATOMIC -- which will work with if ( defined( 'IS_ATOMIC ) ) :
If wanting to check for multiple, ATOMIC_CLIENT_ID is also available.
Once added, the WordPress.com and Pressable.com-specific compat files may be removed.