Upgarded to 4.17.4

This commit is contained in:
2022-06-23 13:17:18 +01:00
parent 80f1e87db9
commit a04fb0c7af
404 changed files with 54683 additions and 4417 deletions

View File

@ -38,10 +38,11 @@ if ( ! function_exists( 'et_builder_is_frontend' ) ) :
*/
function et_builder_is_frontend() {
// phpcs:disable WordPress.Security.NonceVerification.Recommended -- Only used to disable some FE optmizations.
$is_builder = isset( $_GET['et_fb'] ) || isset( $_GET['et_bfb'] );
$is_builder = isset( $_GET['et_fb'] ) || isset( $_GET['et_bfb'] );
$is_block_layout_preview = isset( $_GET['et_block_layout_preview'] );
// phpcs:enable
return $is_builder || is_admin() || wp_doing_ajax() || wp_doing_cron() ? false : true;
return $is_builder || is_admin() || wp_doing_ajax() || wp_doing_cron() || $is_block_layout_preview ? false : true;
}
endif;