: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Utility functions for checking conditions.
* To be included in this file a function must:
* * Have a name that asks a yes or no question (where the first word after
* the et_ prefix is a word like: is, can, has, should, was, had, must, or will)
if ( ! function_exists( '' ) ):
// Note: Functions in this file are sorted alphabetically.
if ( ! function_exists( 'et_builder_is_loading_data' ) ):
function et_builder_is_loading_data( $type = 'vb' ) {
return 'et_pb_get_backbone_templates' === et_()->array_get( $_POST, 'action' );
'et_fb_retrieve_builder_data',
'et_fb_update_builder_assets',
return isset( $_POST['action'] ) && in_array( $_POST['action'], $data_actions );
if ( ! function_exists( 'et_builder_should_load_all_data' ) ):
function et_builder_should_load_all_data() {
$needs_cached_definitions = et_core_is_fb_enabled() && ! et_fb_dynamic_asset_exists( 'definitions' );
return $needs_cached_definitions || ( ET_Builder_ELement::is_saving_cache() || et_builder_is_loading_data() );
// Note: Functions in this file are sorted alphabetically.