Skip to content

Commit

Permalink
Remove php version check on plugin activation.
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulsprajapati committed Jul 28, 2023
1 parent a8d37b4 commit cd3975a
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions classifai.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,6 @@
* Domain Path: /languages
*/

/**
* Require PHP version 7.4+ - throw an error if the plugin is activated on an older version.
*
* Note that this itself is only PHP5.3+ compatible because of the anonymous callback.
*/
register_activation_hook(
__FILE__,
function() {
if ( version_compare( PHP_VERSION, '7.4.0', '<' ) ) {
wp_die(
sprintf(
wp_kses(
/* translators: PHP Update guide URL */
__( 'ClassifAI requires PHP version 7.4. <a href="%s">Click here</a> to learn how to update your PHP version.', 'classifai' ),
array(
'a' => array( 'href' => array() ),
)
),
esc_url( 'https://wordpress.org/support/update-php/' )
),
esc_html__( 'Error Activating', 'classifai' )
);
}
}
);

/**
* Small wrapper around PHP's define function. The defined constant is
* ignored if it has already been defined. This allows the
Expand Down

0 comments on commit cd3975a

Please sign in to comment.