$apwc_row Row facts (Module::row_facts()). * @var \SmartWP\AdminPowerups\Modules\DatabaseCleanup\Module $this Module. */ use SmartWP\AdminPowerups\Admin\AdminPage; use SmartWP\AdminPowerups\Admin\Components; use SmartWP\AdminPowerups\Admin\Icons; use SmartWP\AdminPowerups\Modules\DatabaseCleanup\Module; use SmartWP\AdminPowerups\Support\DevGuard; defined( 'ABSPATH' ) || exit; /** * The check shown. * * @var \SmartWP\AdminPowerups\Modules\DatabaseCleanup\Check $apwc_check */ $apwc_check = $apwc_row['check']; $apwc_id = (string) $apwc_row['id']; $apwc_entry = $apwc_row['entry']; $apwc_run = $apwc_row['run']; $apwc_count = is_array( $apwc_entry ) && $apwc_entry['done'] ? (int) $apwc_entry['count'] : null; $apwc_fresh = '' === $apwc_row['unavailable'] && '' === $apwc_row['stale']; $apwc_ready = $apwc_fresh && null !== $apwc_count && 0 !== $apwc_count && ! $apwc_run && ! $apwc_row['other_run']; $apwc_days = Module::threshold_text( $apwc_row['threshold'] ); $apwc_dom = 'apwc-dbc-' . $apwc_id; // Examples only for users at the check's level with its capability, and when there are rows. $apwc_sample = '' === $apwc_row['unavailable'] && $apwc_row['can'] && null !== $apwc_count && 0 !== $apwc_count; ?>
  • label() ); ?> slow() ) : ?>

    description() ); ?>

    consequence() ) : ?> consequence() ); ?>

    ' . esc_html__( 'Unavailable', 'admin-powerups-for-woocommerce' ) . ''; } elseif ( $apwc_row['hidden'] ) { echo '' . esc_html__( 'Network admins only', 'admin-powerups-for-woocommerce' ) . ''; } elseif ( null === $apwc_count ) { echo '' . esc_html__( 'Not scanned', 'admin-powerups-for-woocommerce' ) . ''; } elseif ( $apwc_count < 0 ) { echo '' . esc_html__( 'Log files', 'admin-powerups-for-woocommerce' ) . ' ' . esc_html__( 'not counted', 'admin-powerups-for-woocommerce' ) . ''; } else { /* translators: %s: number of rows. */ echo '' . esc_html( sprintf( _n( '%s row', '%s rows', $apwc_count, 'admin-powerups-for-woocommerce' ), number_format_i18n( $apwc_count ) ) ) . ''; if ( $apwc_count > 0 && ! empty( $apwc_entry['bytes'] ) ) { /* translators: %s: size, e.g. "12 MB". */ echo ' ' . esc_html( sprintf( __( 'about %s', 'admin-powerups-for-woocommerce' ), (string) size_format( (int) $apwc_entry['bytes'], 1 ) ) ) . ''; } } ?>

    'delete', 'consequence' => $apwc_check->consequence(), 'button' => $apwc_run ? __( 'Continue', 'admin-powerups-for-woocommerce' ) : __( 'Clean', 'admin-powerups-for-woocommerce' ), 'action' => 'dbc-clean', ) ); ?>
    >