Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../themes/Divi/core/componen...
File: init.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if ( ! function_exists( 'et_core_init' ) ):
[2] Fix | Delete
/**
[3] Fix | Delete
* {@see 'plugins_loaded' (9999999) Must run after cache plugins have been loaded.}
[4] Fix | Delete
*/
[5] Fix | Delete
function et_core_init() {
[6] Fix | Delete
ET_Core_API_Spam_Providers::instance();
[7] Fix | Delete
ET_Core_Cache_Directory::instance();
[8] Fix | Delete
ET_Core_PageResource::startup();
[9] Fix | Delete
[10] Fix | Delete
if ( defined( 'ET_CORE_UPDATED' ) ) {
[11] Fix | Delete
global $wp_rewrite;
[12] Fix | Delete
add_action( 'shutdown', array( $wp_rewrite, 'flush_rules' ) );
[13] Fix | Delete
[14] Fix | Delete
update_option( 'et_core_page_resource_remove_all', true );
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
$cache_dir = ET_Core_PageResource::get_cache_directory();
[18] Fix | Delete
[19] Fix | Delete
if ( file_exists( $cache_dir . '/DONOTCACHEPAGE' ) ) {
[20] Fix | Delete
! defined( 'DONOTCACHEPAGE' ) ? define( 'DONOTCACHEPAGE', true ) : '';
[21] Fix | Delete
@unlink( $cache_dir . '/DONOTCACHEPAGE' );
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
if ( get_option( 'et_core_page_resource_remove_all' ) ) {
[25] Fix | Delete
ET_Core_PageResource::remove_static_resources( 'all', 'all', true );
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
if ( ! wp_next_scheduled( 'et_core_page_resource_auto_clear' ) ) {
[29] Fix | Delete
wp_schedule_event( time() + MONTH_IN_SECONDS, 'monthly', 'et_core_page_resource_auto_clear' );
[30] Fix | Delete
}
[31] Fix | Delete
}
[32] Fix | Delete
endif;
[33] Fix | Delete
[34] Fix | Delete
if ( ! function_exists( 'et_core_site_has_builder' ) ):
[35] Fix | Delete
/**
[36] Fix | Delete
* Check is `et_core_site_has_builder` allowed.
[37] Fix | Delete
* We can clear cache managed by 3rd party plugins only
[38] Fix | Delete
* if Divi, Extra, or the Divi Builder plugin
[39] Fix | Delete
* is active when the core was called.
[40] Fix | Delete
*
[41] Fix | Delete
* @return boolean
[42] Fix | Delete
*/
[43] Fix | Delete
function et_core_site_has_builder() {
[44] Fix | Delete
global $shortname;
[45] Fix | Delete
$core_path = get_transient( 'et_core_path' );
[46] Fix | Delete
$is_divi_builder_plugin_active = false;
[47] Fix | Delete
if ( ! empty( $core_path ) && false !== strpos( $core_path, '/divi-builder/' ) && function_exists('is_plugin_active') ) {
[48] Fix | Delete
$is_divi_builder_plugin_active = is_plugin_active( 'divi-builder/divi-builder.php' );
[49] Fix | Delete
}
[50] Fix | Delete
if( $is_divi_builder_plugin_active || in_array( $shortname, array( 'divi', 'extra' ) ) ) {
[51] Fix | Delete
return true;
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
return false;
[55] Fix | Delete
}
[56] Fix | Delete
endif;
[57] Fix | Delete
[58] Fix | Delete
if ( ! function_exists( 'et_core_clear_wp_cache' ) ):
[59] Fix | Delete
function et_core_clear_wp_cache( $post_id = '' ) {
[60] Fix | Delete
if ( ( ! wp_doing_cron() && ! et_core_security_check_passed( 'edit_posts' ) ) || ! et_core_site_has_builder() ) {
[61] Fix | Delete
return;
[62] Fix | Delete
}
[63] Fix | Delete
[64] Fix | Delete
try {
[65] Fix | Delete
// Cache Plugins
[66] Fix | Delete
// Comet Cache
[67] Fix | Delete
if ( is_callable( 'comet_cache::clear' ) ) {
[68] Fix | Delete
comet_cache::clear();
[69] Fix | Delete
}
[70] Fix | Delete
[71] Fix | Delete
// WP Rocket
[72] Fix | Delete
if ( function_exists( 'rocket_clean_post' ) ) {
[73] Fix | Delete
if ( '' !== $post_id ) {
[74] Fix | Delete
rocket_clean_post( $post_id );
[75] Fix | Delete
} else if ( function_exists( 'rocket_clean_domain' ) ) {
[76] Fix | Delete
rocket_clean_domain();
[77] Fix | Delete
}
[78] Fix | Delete
}
[79] Fix | Delete
[80] Fix | Delete
// W3 Total Cache
[81] Fix | Delete
if ( has_action( 'w3tc_flush_post' ) ) {
[82] Fix | Delete
'' !== $post_id ? do_action( 'w3tc_flush_post', $post_id ) : do_action( 'w3tc_flush_posts' );
[83] Fix | Delete
}
[84] Fix | Delete
[85] Fix | Delete
// WP Super Cache
[86] Fix | Delete
if ( function_exists( 'wp_cache_debug' ) && defined( 'WPCACHEHOME' ) ) {
[87] Fix | Delete
include_once WPCACHEHOME . 'wp-cache-phase1.php';
[88] Fix | Delete
include_once WPCACHEHOME . 'wp-cache-phase2.php';
[89] Fix | Delete
[90] Fix | Delete
if ( '' !== $post_id && function_exists( 'clear_post_supercache' ) ) {
[91] Fix | Delete
clear_post_supercache( $post_id );
[92] Fix | Delete
} else if ( '' === $post_id && function_exists( 'wp_cache_clear_cache_on_menu' ) ) {
[93] Fix | Delete
wp_cache_clear_cache_on_menu();
[94] Fix | Delete
}
[95] Fix | Delete
}
[96] Fix | Delete
[97] Fix | Delete
// WP Fastest Cache
[98] Fix | Delete
if ( isset( $GLOBALS['wp_fastest_cache'] ) ) {
[99] Fix | Delete
if ( '' !== $post_id && method_exists( $GLOBALS['wp_fastest_cache'], 'singleDeleteCache' ) ) {
[100] Fix | Delete
$GLOBALS['wp_fastest_cache']->singleDeleteCache( $post_id );
[101] Fix | Delete
} else if ( '' === $post_id && method_exists( $GLOBALS['wp_fastest_cache'], 'deleteCache' ) ) {
[102] Fix | Delete
$GLOBALS['wp_fastest_cache']->deleteCache();
[103] Fix | Delete
}
[104] Fix | Delete
}
[105] Fix | Delete
[106] Fix | Delete
// Hummingbird
[107] Fix | Delete
if ( has_action( 'wphb_clear_page_cache' ) ) {
[108] Fix | Delete
'' !== $post_id ? do_action( 'wphb_clear_page_cache', $post_id ) : do_action( 'wphb_clear_page_cache' );
[109] Fix | Delete
}
[110] Fix | Delete
[111] Fix | Delete
// WordPress Cache Enabler
[112] Fix | Delete
if ( has_action( 'ce_clear_cache' ) ) {
[113] Fix | Delete
'' !== $post_id ? do_action( 'ce_clear_post_cache', $post_id ) : do_action( 'ce_clear_cache' );
[114] Fix | Delete
}
[115] Fix | Delete
[116] Fix | Delete
// LiteSpeed Cache
[117] Fix | Delete
if ( is_callable( 'LiteSpeed_Cache::get_instance' ) ) {
[118] Fix | Delete
$litespeed = LiteSpeed_Cache::get_instance();
[119] Fix | Delete
[120] Fix | Delete
if ( '' !== $post_id && method_exists( $litespeed, 'purge_post' ) ) {
[121] Fix | Delete
$litespeed->purge_post( $post_id );
[122] Fix | Delete
} else if ( '' === $post_id && method_exists( $litespeed, 'purge_all' ) ) {
[123] Fix | Delete
$litespeed->purge_all();
[124] Fix | Delete
}
[125] Fix | Delete
}
[126] Fix | Delete
[127] Fix | Delete
// LiteSpeed Cache v1.1.3+
[128] Fix | Delete
if ( '' !== $post_id && function_exists( 'litespeed_purge_single_post' ) ) {
[129] Fix | Delete
litespeed_purge_single_post( $post_id );
[130] Fix | Delete
} else if ( '' === $post_id && is_callable( 'LiteSpeed_Cache_API::purge_all' ) ) {
[131] Fix | Delete
LiteSpeed_Cache_API::purge_all();
[132] Fix | Delete
}
[133] Fix | Delete
[134] Fix | Delete
// Hyper Cache
[135] Fix | Delete
if ( class_exists( 'HyperCache' ) && isset( HyperCache::$instance ) ) {
[136] Fix | Delete
if ( '' !== $post_id && method_exists( HyperCache::$instance, 'clean_post' ) ) {
[137] Fix | Delete
HyperCache::$instance->clean_post( $post_id );
[138] Fix | Delete
} else if ( '' === $post_id && method_exists( HyperCache::$instance, 'clean' ) ) {
[139] Fix | Delete
HyperCache::$instance->clean_post( $post_id );
[140] Fix | Delete
}
[141] Fix | Delete
}
[142] Fix | Delete
[143] Fix | Delete
// Hosting Provider Caching
[144] Fix | Delete
// Pantheon Advanced Page Cache
[145] Fix | Delete
$pantheon_clear = 'pantheon_wp_clear_edge_keys';
[146] Fix | Delete
$pantheon_clear_all = 'pantheon_wp_clear_edge_all';
[147] Fix | Delete
if ( function_exists( $pantheon_clear ) || function_exists( $pantheon_clear_all ) ) {
[148] Fix | Delete
if ( '' !== $post_id && function_exists( $pantheon_clear ) ) {
[149] Fix | Delete
pantheon_wp_clear_edge_keys( array( "post-{$post_id}" ) );
[150] Fix | Delete
} else if ( '' === $post_id && function_exists( $pantheon_clear_all ) ) {
[151] Fix | Delete
pantheon_wp_clear_edge_all();
[152] Fix | Delete
}
[153] Fix | Delete
}
[154] Fix | Delete
[155] Fix | Delete
// Siteground
[156] Fix | Delete
if ( isset( $GLOBALS['sg_cachepress_supercacher'] ) ) {
[157] Fix | Delete
global $sg_cachepress_supercacher;
[158] Fix | Delete
[159] Fix | Delete
if ( is_object( $sg_cachepress_supercacher ) && method_exists( $sg_cachepress_supercacher, 'purge_cache' ) ) {
[160] Fix | Delete
$sg_cachepress_supercacher->purge_cache( true );
[161] Fix | Delete
}
[162] Fix | Delete
[163] Fix | Delete
} else if ( function_exists( 'sg_cachepress_purge_cache' ) ) {
[164] Fix | Delete
sg_cachepress_purge_cache();
[165] Fix | Delete
}
[166] Fix | Delete
[167] Fix | Delete
// WP Engine
[168] Fix | Delete
if ( class_exists( 'WpeCommon' ) ) {
[169] Fix | Delete
is_callable( 'WpeCommon::purge_memcached' ) ? WpeCommon::purge_memcached() : '';
[170] Fix | Delete
is_callable( 'WpeCommon::clear_maxcdn_cache' ) ? WpeCommon::clear_maxcdn_cache() : '';
[171] Fix | Delete
is_callable( 'WpeCommon::purge_varnish_cache' ) ? WpeCommon::purge_varnish_cache() : '';
[172] Fix | Delete
[173] Fix | Delete
if ( is_callable( 'WpeCommon::instance' ) && $instance = WpeCommon::instance() ) {
[174] Fix | Delete
method_exists( $instance, 'purge_object_cache' ) ? $instance->purge_object_cache() : '';
[175] Fix | Delete
}
[176] Fix | Delete
}
[177] Fix | Delete
[178] Fix | Delete
// Bluehost
[179] Fix | Delete
if ( class_exists( 'Endurance_Page_Cache' ) ) {
[180] Fix | Delete
wp_doing_ajax() ? ET_Core_LIB_BluehostCache::get_instance()->clear( $post_id ) : do_action( 'epc_purge' );
[181] Fix | Delete
}
[182] Fix | Delete
[183] Fix | Delete
// Complimentary Performance Plugins
[184] Fix | Delete
// Autoptimize
[185] Fix | Delete
if ( is_callable( 'autoptimizeCache::clearall' ) ) {
[186] Fix | Delete
autoptimizeCache::clearall();
[187] Fix | Delete
}
[188] Fix | Delete
[189] Fix | Delete
} catch( Exception $err ) {
[190] Fix | Delete
ET_Core_Logger::error( 'An exception occurred while attempting to clear site cache.' );
[191] Fix | Delete
}
[192] Fix | Delete
}
[193] Fix | Delete
endif;
[194] Fix | Delete
[195] Fix | Delete
[196] Fix | Delete
if ( ! function_exists( 'et_core_get_nonces' ) ):
[197] Fix | Delete
/**
[198] Fix | Delete
* Returns the nonces for this component group.
[199] Fix | Delete
*
[200] Fix | Delete
* @return string[]
[201] Fix | Delete
*/
[202] Fix | Delete
function et_core_get_nonces() {
[203] Fix | Delete
static $nonces = null;
[204] Fix | Delete
[205] Fix | Delete
return $nonces ? $nonces : $nonces = array(
[206] Fix | Delete
'clear_page_resources_nonce' => wp_create_nonce( 'clear_page_resources' ),
[207] Fix | Delete
);
[208] Fix | Delete
}
[209] Fix | Delete
endif;
[210] Fix | Delete
[211] Fix | Delete
[212] Fix | Delete
if ( ! function_exists( 'et_core_page_resource_auto_clear' ) ):
[213] Fix | Delete
function et_core_page_resource_auto_clear() {
[214] Fix | Delete
ET_Core_PageResource::remove_static_resources( 'all', 'all' );
[215] Fix | Delete
}
[216] Fix | Delete
add_action( 'switch_theme', 'et_core_page_resource_auto_clear' );
[217] Fix | Delete
add_action( 'activated_plugin', 'et_core_page_resource_auto_clear', 10, 0 );
[218] Fix | Delete
add_action( 'deactivated_plugin', 'et_core_page_resource_auto_clear', 10, 0 );
[219] Fix | Delete
add_action( 'et_core_page_resource_auto_clear', 'et_core_page_resource_auto_clear' );
[220] Fix | Delete
endif;
[221] Fix | Delete
[222] Fix | Delete
[223] Fix | Delete
if ( ! function_exists( 'et_core_page_resource_clear' ) ):
[224] Fix | Delete
/**
[225] Fix | Delete
* Ajax handler for clearing cached page resources.
[226] Fix | Delete
*/
[227] Fix | Delete
function et_core_page_resource_clear() {
[228] Fix | Delete
et_core_security_check( 'manage_options', 'clear_page_resources' );
[229] Fix | Delete
[230] Fix | Delete
if ( empty( $_POST['et_post_id'] ) ) {
[231] Fix | Delete
et_core_die();
[232] Fix | Delete
}
[233] Fix | Delete
[234] Fix | Delete
$post_id = sanitize_key( $_POST['et_post_id'] );
[235] Fix | Delete
$owner = sanitize_key( $_POST['et_owner'] );
[236] Fix | Delete
[237] Fix | Delete
ET_Core_PageResource::remove_static_resources( $post_id, $owner );
[238] Fix | Delete
}
[239] Fix | Delete
add_action( 'wp_ajax_et_core_page_resource_clear', 'et_core_page_resource_clear' );
[240] Fix | Delete
endif;
[241] Fix | Delete
[242] Fix | Delete
[243] Fix | Delete
if ( ! function_exists( 'et_core_page_resource_fallback' ) ):
[244] Fix | Delete
/**
[245] Fix | Delete
* Handles page resource fallback requests.
[246] Fix | Delete
*/
[247] Fix | Delete
function et_core_page_resource_fallback() {
[248] Fix | Delete
// phpcs:disable WordPress.Security.NonceVerification.NoNonceVerification
[249] Fix | Delete
if ( ! isset( $_GET['et_core_page_resource'] ) ) {
[250] Fix | Delete
return;
[251] Fix | Delete
}
[252] Fix | Delete
[253] Fix | Delete
if ( is_admin() && ! is_customize_preview() ) {
[254] Fix | Delete
return;
[255] Fix | Delete
}
[256] Fix | Delete
[257] Fix | Delete
/** @see ET_Core_SupportCenter::toggle_safe_mode */
[258] Fix | Delete
if ( et_core_is_safe_mode_active() ) {
[259] Fix | Delete
return;
[260] Fix | Delete
}
[261] Fix | Delete
[262] Fix | Delete
$resource_id = sanitize_text_field( $_GET['et_core_page_resource'] );
[263] Fix | Delete
$pattern = '/et-(\w+)-([\w-]+)-cached-inline-(?>styles|scripts)(global|\d+)/';
[264] Fix | Delete
$has_matches = preg_match( $pattern, $resource_id, $matches );
[265] Fix | Delete
[266] Fix | Delete
if ( $has_matches ) {
[267] Fix | Delete
$resource = et_core_page_resource_get( $matches[1], $matches[2], $matches[3] );
[268] Fix | Delete
[269] Fix | Delete
if ( $resource->has_file() ) {
[270] Fix | Delete
wp_redirect( $resource->URL );
[271] Fix | Delete
die();
[272] Fix | Delete
}
[273] Fix | Delete
}
[274] Fix | Delete
[275] Fix | Delete
status_header( 404 );
[276] Fix | Delete
nocache_headers();
[277] Fix | Delete
die();
[278] Fix | Delete
// phpcs:enable
[279] Fix | Delete
}
[280] Fix | Delete
add_action( 'init', 'et_core_page_resource_fallback', 0 );
[281] Fix | Delete
endif;
[282] Fix | Delete
[283] Fix | Delete
[284] Fix | Delete
if ( ! function_exists( 'et_core_page_resource_get' ) ):
[285] Fix | Delete
/**
[286] Fix | Delete
* Get a page resource instance.
[287] Fix | Delete
*
[288] Fix | Delete
* @param string $owner The owner of the instance (core|divi|builder|bloom|monarch|custom).
[289] Fix | Delete
* @param string $slug A string that uniquely identifies the resource.
[290] Fix | Delete
* @param string|int $post_id The post id that the resource is associated with or `global`.
[291] Fix | Delete
* If `null`, the return value of {@link get_the_ID()} will be used.
[292] Fix | Delete
* @param string $type The resource type (style|script). Default: `style`.
[293] Fix | Delete
* @param string $location Where the resource should be output (head|footer). Default: `head-late`.
[294] Fix | Delete
*
[295] Fix | Delete
* @return ET_Core_PageResource
[296] Fix | Delete
*/
[297] Fix | Delete
function et_core_page_resource_get( $owner, $slug, $post_id = null, $priority = 10, $location = 'head-late', $type = 'style' ) {
[298] Fix | Delete
$post_id = $post_id ? $post_id : et_core_page_resource_get_the_ID();
[299] Fix | Delete
$_slug = "et-{$owner}-{$slug}-{$post_id}-cached-inline-{$type}s";
[300] Fix | Delete
[301] Fix | Delete
$all_resources = ET_Core_PageResource::get_resources();
[302] Fix | Delete
[303] Fix | Delete
return isset( $all_resources[ $_slug ] )
[304] Fix | Delete
? $all_resources[ $_slug ]
[305] Fix | Delete
: new ET_Core_PageResource( $owner, $slug, $post_id, $priority, $location, $type );
[306] Fix | Delete
}
[307] Fix | Delete
endif;
[308] Fix | Delete
[309] Fix | Delete
[310] Fix | Delete
if ( ! function_exists( 'et_core_page_resource_maybe_output_fallback_script' ) ):
[311] Fix | Delete
function et_core_page_resource_maybe_output_fallback_script() {
[312] Fix | Delete
if ( is_admin() && ! is_customize_preview() ) {
[313] Fix | Delete
return;
[314] Fix | Delete
}
[315] Fix | Delete
[316] Fix | Delete
if ( function_exists( 'et_get_option' ) && 'off' === et_get_option( 'et_pb_static_css_file', 'on' ) ) {
[317] Fix | Delete
return;
[318] Fix | Delete
}
[319] Fix | Delete
[320] Fix | Delete
/** @see ET_Core_SupportCenter::toggle_safe_mode */
[321] Fix | Delete
if ( et_core_is_safe_mode_active() ) {
[322] Fix | Delete
return;
[323] Fix | Delete
}
[324] Fix | Delete
[325] Fix | Delete
$IS_SINGULAR = et_core_page_resource_is_singular();
[326] Fix | Delete
$POST_ID = $IS_SINGULAR ? et_core_page_resource_get_the_ID() : 'global';
[327] Fix | Delete
[328] Fix | Delete
if ( $IS_SINGULAR && 'off' === get_post_meta( $POST_ID, '_et_pb_static_css_file', true ) ) {
[329] Fix | Delete
return;
[330] Fix | Delete
}
[331] Fix | Delete
[332] Fix | Delete
$SITE_URL = get_site_url();
[333] Fix | Delete
$SCRIPT = et_()->WPFS()->get_contents( ET_CORE_PATH . 'admin/js/page-resource-fallback.min.js' );
[334] Fix | Delete
[335] Fix | Delete
printf( "<script>var et_site_url='%s';var et_post_id='%d';%s</script>",
[336] Fix | Delete
et_core_esc_previously( $SITE_URL ),
[337] Fix | Delete
et_core_esc_previously( $POST_ID ),
[338] Fix | Delete
et_core_esc_previously( $SCRIPT )
[339] Fix | Delete
);
[340] Fix | Delete
}
[341] Fix | Delete
add_action( 'wp_head', 'et_core_page_resource_maybe_output_fallback_script', 0 );
[342] Fix | Delete
endif;
[343] Fix | Delete
[344] Fix | Delete
[345] Fix | Delete
if ( ! function_exists( 'et_core_page_resource_get_the_ID' ) ):
[346] Fix | Delete
function et_core_page_resource_get_the_ID() {
[347] Fix | Delete
static $post_id = null;
[348] Fix | Delete
[349] Fix | Delete
if ( is_int( $post_id ) ) {
[350] Fix | Delete
return $post_id;
[351] Fix | Delete
}
[352] Fix | Delete
[353] Fix | Delete
return $post_id = apply_filters( 'et_core_page_resource_current_post_id', get_the_ID() );
[354] Fix | Delete
}
[355] Fix | Delete
endif;
[356] Fix | Delete
[357] Fix | Delete
[358] Fix | Delete
if ( ! function_exists( 'et_core_page_resource_is_singular' ) ):
[359] Fix | Delete
function et_core_page_resource_is_singular() {
[360] Fix | Delete
return apply_filters( 'et_core_page_resource_is_singular', is_singular() );
[361] Fix | Delete
}
[362] Fix | Delete
endif;
[363] Fix | Delete
[364] Fix | Delete
[365] Fix | Delete
if ( ! function_exists( 'et_core_page_resource_register_fallback_query' ) ):
[366] Fix | Delete
function et_core_page_resource_register_fallback_query() {
[367] Fix | Delete
add_rewrite_tag( '%et_core_page_resource%', '([\w\d-]+)' );
[368] Fix | Delete
}
[369] Fix | Delete
add_action( 'init', 'et_core_page_resource_register_fallback_query', 11 );
[370] Fix | Delete
endif;
[371] Fix | Delete
[372] Fix | Delete
[373] Fix | Delete
if ( ! function_exists( 'et_debug' ) ):
[374] Fix | Delete
function et_debug( $msg, $bt_index = 4, $log_ajax = true ) {
[375] Fix | Delete
ET_Core_Logger::debug( $msg, $bt_index, $log_ajax );
[376] Fix | Delete
}
[377] Fix | Delete
endif;
[378] Fix | Delete
[379] Fix | Delete
[380] Fix | Delete
if ( ! function_exists( 'et_wrong' ) ):
[381] Fix | Delete
function et_wrong( $msg, $error = false ) {
[382] Fix | Delete
$msg = "You're Doing It Wrong! {$msg}";
[383] Fix | Delete
[384] Fix | Delete
if ( $error ) {
[385] Fix | Delete
et_error( $msg );
[386] Fix | Delete
} else {
[387] Fix | Delete
et_debug( $msg );
[388] Fix | Delete
}
[389] Fix | Delete
}
[390] Fix | Delete
endif;
[391] Fix | Delete
[392] Fix | Delete
[393] Fix | Delete
if ( ! function_exists( 'et_error' ) ):
[394] Fix | Delete
function et_error( $msg, $bt_index = 4 ) {
[395] Fix | Delete
ET_Core_Logger::error( "[ERROR]: {$msg}", $bt_index );
[396] Fix | Delete
}
[397] Fix | Delete
endif;
[398] Fix | Delete
[399] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function