|
@@ 250-257 (lines=8) @@
|
| 247 |
|
/** |
| 248 |
|
* @return void |
| 249 |
|
*/ |
| 250 |
|
protected function addInvalidPHPVersionNotice() |
| 251 |
|
{ |
| 252 |
|
$this->notice->addError([ |
| 253 |
|
$this->notice->title( __( 'The Pollux plugin was deactivated.', 'pollux' )), |
| 254 |
|
sprintf( __( 'Sorry, Pollux requires PHP %s or greater in order to work properly (your server is running PHP %s).', 'pollux' ), self::MIN_PHP_VERSION, PHP_VERSION ), |
| 255 |
|
__( 'Please contact your hosting provider or server administrator to upgrade the version of PHP running on your server, or find an alternate plugin.', 'pollux' ), |
| 256 |
|
]); |
| 257 |
|
} |
| 258 |
|
|
| 259 |
|
/** |
| 260 |
|
* @return void |
|
@@ 262-269 (lines=8) @@
|
| 259 |
|
/** |
| 260 |
|
* @return void |
| 261 |
|
*/ |
| 262 |
|
protected function addInvalidWPVersionNotice() |
| 263 |
|
{ |
| 264 |
|
$this->notice->addError([ |
| 265 |
|
$this->notice->title( __( 'The Pollux plugin was deactivated.', 'pollux' )), |
| 266 |
|
sprintf( __( 'Sorry, Pollux requires WordPress %s or greater in order to work properly.', 'pollux' ), self::MIN_WORDPRESS_VERSION ), |
| 267 |
|
$this->notice->button( __( 'Update WordPress', 'pollux' ), self_admin_url( 'update-core.php' )), |
| 268 |
|
]); |
| 269 |
|
} |
| 270 |
|
|
| 271 |
|
/** |
| 272 |
|
* @param string $plugin |