Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Update php requirement message
Browse files Browse the repository at this point in the history
  • Loading branch information
tangrufus committed May 6, 2017
1 parent df0c426 commit 8676a72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/wpupdatephp/wp-update-php/src/WPUpdatePhp.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ public function get_admin_notice( $level = 'minimum' ) {
if ( ! empty( $this->plugin_name ) ) {
$message = '<p>Unfortunately, <code>' . $this->plugin_name . '</code> cannot run on PHP versions older than ' . $this->minimum_version . '. Read more information about <a href="http://www.wpupdatephp.com/update/">how you can update</a>.<br/>';
$message .= '<code>' . $this->plugin_name . '</code> has <strong>deactivated</strong> itself to prevent fatal errors.</p>';
$message .= '<p>Don\'t know how to update PHP?<br/>';
$message .= '* Contact you hosting company</li>';
$message .= '* Switch to a better hosting such as <a href="https://www.typist.tech/go/wp-engine-isnt-business-worth-29-month/">WP Engine</a> or <a href="https://www.typist.tech/go/kinsta-staging-environment/">Kinsta</a><br/>';
$message .= '* Hire me <a href="https://www.typist.tech/contact">https://www.typist.tech/contact</a></p>';

return $message;
} else {
return '<p>Unfortunately, this plugin cannot run on PHP versions older than ' . $this->minimum_version . '. Read more information about <a href="http://www.wpupdatephp.com/update/">how you can update</a>.</p>';
Expand Down

0 comments on commit 8676a72

Please sign in to comment.