Ok, I fix this issue in this way:
if (is_home()){
if ( isset( $e['medium'] ) && $e['medium'] != '' ) {
$e['image_url'] = strip_tags( $e['medium'] );
$e['image'] = $e['medium'];
} else {
$image_size = apply_filters( 'mc_default_image_size', 'thumbnail' );
$e['image_url'] = strip_tags( $e[$image_size] );
$e['image'] = $e[$image_size];
}
}
else{
if ( isset( $e['large'] ) && $e['large'] != '' ) {
$e['image_url'] = strip_tags( $e['large'] );
$e['image'] = $e['large'];
} else {
$image_size = apply_filters( 'mc_default_image_size', 'thumbnail' );
$e['image_url'] = strip_tags( $e[$image_size] );
$e['image'] = $e[$image_size];
}
}
Yes, I know, it’s a bad solution but I don’t know how to fix it in other way.
Now my fear is next MyCalendar upgrade. Surely I lose my changes.
Joe, can you help me?