kadence-blocks icon indicating copy to clipboard operation
kadence-blocks copied to clipboard

Don't perform an authorization check on Kadence Home if AI is disabled

Open defunctl opened this issue 7 months ago • 0 comments

🎫 https://ithemeshelp.zendesk.com/agent/tickets/607623

Slack thread

This disables the remote auth license checks on the Kadence home page if the user has defined define( 'KADENCE_BLOCKS_AI_DISABLED', true ); in their wp-config.php.

:warning: As this forces Authorization to false for the frontend, I am not sure if that used outside of AI at all, but if it is, it could potentially lead to some regressions. However, given this same logic applies in the block editor assets, it should be fine.

Before

image

After

image

defunctl avatar Jul 12 '24 16:07 defunctl