function hmbkp_get_site_size_text(HM\BackUpWordPress\Scheduled_Backup $schedule) { if ('database' === $schedule->get_type() || $schedule->is_site_size_cached()) { return sprintf('(<code title="' . __('Backups will be compressed and should be smaller than this.', 'mainwp-backupwordpress-extension') . '">%s</code>)', esc_attr($schedule->get_formatted_site_size())); } else { return sprintf('(<code class="calculating" title="' . __('this shouldn\'t take long…', 'mainwp-backupwordpress-extension') . '">' . __('calculating the size of your backup…', 'mainwp-backupwordpress-extension') . '</code>)'); } }