HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //var/www/html/triad-infosec/wp-content/plugins/simple-history/inc/oldversions.php
<?php
/**
 * Show an admin message if old PHP version.
 */
function simple_history_old_version_admin_notice() {
	$ok_wp_version = version_compare( $GLOBALS['wp_version'], '5.4', '>=' );
	$ok_php_version = version_compare( phpversion(), '7.4', '>=' );
	?>
	<div class="updated error">
		<?php
		if ( ! $ok_php_version ) {
			echo '<p>';
			printf(
				esc_html(
					/* translators: 1: PHP version */
					__(
						'Simple History is a great plugin, but to use it your server must have at least PHP 7.4 installed (you have version %s).',
						'simple-history'
					)
				),
				esc_html( phpversion() ) // 1
			);
			echo '</p>';
		}

		if ( ! $ok_wp_version ) {
			echo '<p>';
			printf(
				esc_html(
					/* translators: 1: WordPress version */
					__(
						'Simple History requires WordPress version 6.1 or higher (you have version %s).',
						'simple-history'
					)
				),
				esc_html( $GLOBALS['wp_version'] ) // 1
			);
			echo '</p>';
		}
		?>
	</div>
	<?php
}