PluginProbe
SweepPress: Website Cleanup and Optimization / trunk
SweepPress: Website Cleanup and Optimization vtrunk
trunk 1.1 1.2 1.3 1.4 1.4.1 1.5 1.6 1.7 1.8 2.0 2.1 2.1.1 2.2 2.3 2.3.1 2.4 2.4.1 2.4.2 2.5 2.6 3.0 3.1 3.1.1 3.2 All 39 releases
sweeppress / forms / content-update.php

content-update.php in SweepPress: Website Cleanup and Optimization trunk, at forms/content-update.php

46 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use Dev4Press\Plugin\SweepPress\Basic\Database;
4 use Dev4Press\Plugin\SweepPress\Meta\Tracker;
5 use function Dev4Press\v55\Functions\panel;
6
7 if ( ! defined( 'ABSPATH' ) ) {
8 exit;
9 }
10
11 ?>
12 <div class="d4p-content d4p-setup-wrapper">
13 <div class="d4p-update-info">
14 <?php
15
16 include SWEEPPRESS_PATH . 'forms/setup-cache.php';
17
18 sweeppress_settings()->set( 'scan_plugins', array(), 'storage' );
19 sweeppress_settings()->set( 'scan_themes', array(), 'storage', true );
20
21 Tracker::i()->prepare_plugins( true );
22 Tracker::i()->prepare_themes( true );
23
24 sweeppress_settings()->set( 'install', false, 'info' );
25 sweeppress_settings()->set( 'update', false, 'info', true );
26
27 sweeppress_settings()->set( 'database', Database::i()->total_wp( 'estimate' ), 'statistics', true );
28
29 ?>
30
31 <div class="d4p-install-block">
32 <h4>
33 <?php esc_html_e( 'All Done', 'sweeppress' ); ?>
34 </h4>
35 <div>
36 <?php esc_html_e( 'Update completed.', 'sweeppress' ); ?>
37 </div>
38 </div>
39
40 <div class="d4p-install-confirm">
41 <a class="button-primary" href="<?php echo esc_url( panel()->a()->panel_url( 'about' ) ); ?>&update"><?php esc_html_e( 'Click here to continue', 'sweeppress' ); ?></a>
42 </div>
43 </div>
44 <?php echo sweeppress()->recommend(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
45 </div>
46