Skip to content

Commit

Permalink
update: PHP version error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhtungdu committed Jan 22, 2020
1 parent d65f083 commit 253d005
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 253d005

Please sign in to comment.