candystress

Ошибка при переходе с Php 5.6 на 7.4

Помогите исправить ошибку
275 | ERROR   | “$this” can no longer be used as a parameter since PHP 7.1.

Хочу перейти с Php 5.6 на 7.4


}
add_filter('wp_nav_menu_objects', 'add_menu_start_depth_option', 10, 2);


/* FORCE EMPTY CACHE OF WIDGETS */
function wh_purge_cache_on_save( $instance, $new_instance, $old_instance, $this ) {
	/*
    // if WP Super Cache is being used, clear the cache
    global $file_prefix;
    if ( function_exists( 'wp_cache_clean_cache' ) ) wp_cache_clean_cache( $file_prefix );
    */
// if W3 Total Cache is being used, clear the cache
	if (function_exists('w3tc_pgcache_flush')) { w3tc_pgcache_flush(); }

	return $instance;
}r code here
?>
Anonymous
Отправить
Ответ на: