function rfi_guard($new_status, $old_status, $post)
{
    if ($new_status === 'publish' && !rfi_should_let_post_publish($post)) {
        $warning_message = rfi_check_size_is_set();
        wp_die(__($warning_message, 'require-featured-image'));
    }
}
function rfi_guard($new_status, $old_status, $post)
{
    if ($new_status === 'publish' && !rfi_should_let_post_publish($post)) {
        wp_die(__('You cannot publish without a featured image.', 'require-featured-image'));
    }
}
function rfi_guard($new_status, $old_status, $post)
{
    if ($new_status === 'publish' && !rfi_should_let_post_publish($post)) {
        wp_die(rfi_get_warning_message());
    }
}