HEX
Server: LiteSpeed
System: Linux vps338 6.12.0-211.34.1.el10_2.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 15 07:56:02 EDT 2026 x86_64
User: ondernemer (1054)
PHP: 8.3.32
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/ondernemer/public_html/wp-content/themes/dt-the7/inc/admin/notices/theme-updating.php
<?php

namespace The7\Admin\Notices;

use The7_Install;

defined( 'ABSPATH' ) || exit;

class Theme_Updating extends Abstract_Notice {

	public function render() {
		$force_update_url = wp_nonce_url( add_query_arg( 'force_update_the7', 'true', admin_url( 'admin.php?page=the7-dashboard' ) ), 'force_update_the7_nonce' );
		?>

		<p role="heading"><?php echo esc_html_x( 'The7 database update', 'admin', 'the7mk2' ); ?></p>
		<p>
			<?php esc_html_e( 'Your database is being updated in the background.', 'the7mk2' ); ?>

		</p>
		<p>
			<?php
			echo wp_kses_post(
				sprintf(
					// translators: %s: link to run update now.
					_x( 'Taking a while? %s', 'admin', 'the7mk2' ),
					'<a href="' . esc_url( $force_update_url ) . '">' . esc_html_x( 'Click here to run it now', 'admin', 'the7mk2' ) . '</a>'
				)
			);
			?>
		</p>

		<?php
	}

	public function is_visible() {
		if ( ! current_user_can( 'switch_themes' ) ) {
			return false;
		}

		return The7_Install::db_update_is_needed() && The7_Install::db_is_updating();
	}

	public function get_code() {
		return 'the7_updating';
	}

	public function get_wrapper_class() {
		return 'the7-dashboard-notice notice-info';
	}
}