Skip to content

Commit

Permalink
Merge pull request #174 from 10up/fix/92-update-php-message
Browse files Browse the repository at this point in the history
update: PHP version error message
  • Loading branch information
jeffpaul committed Feb 19, 2020
2 parents baccd42 + d2cd9a4 commit 014549b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion classifai.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,16 @@
function() {
if ( version_compare( PHP_VERSION, '7.0.0', '<' ) ) {
wp_die(
esc_html__( 'ClassifAI requires PHP version 7.', 'classifai' ),
sprintf(
wp_kses(
/* translators: PHP Update guide URL */
__( 'ClassifAI requires PHP version 7. <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' )
);
}
Expand Down

0 comments on commit 014549b

Please sign in to comment.