Skip to content
Snippets Groups Projects
Select Git revision
  • 4dd401dcb974f87d6c239c9ac892c9d6641d2884
  • main default protected
  • v0.10
  • 0.10.6
  • 0.10.5
  • 0.10.4
  • 0.10.3
  • 0.10.2
  • 0.10.1
  • 0.10.0
  • 0.9.1
  • 0.9.0
12 results

platform_check.php

Blame
  • platform_check.php 334 B
    <?php
    if ( ! ( PHP_VERSION_ID >= 70200 ) ) {
    	add_action(
    		'admin_notices',
    		function () {
    			printf(
    				'<div class="notice notice-error"><p>%s</p></div>',
    				__( 'The plugin cannot run on PHP versions older than 7.2. Please, contact your host and ask them to upgrade.', 'wp-init' )
    			);
    		}
    	);
    
    	return false;
    }
    
    return true;