kadence-blocks
kadence-blocks copied to clipboard
Don't perform an authorization check on Kadence Home if AI is disabled
🎫 https://ithemeshelp.zendesk.com/agent/tickets/607623
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
After