|
@@ 265-272 (lines=8) @@
|
| 262 |
|
/** |
| 263 |
|
* @return void |
| 264 |
|
*/ |
| 265 |
|
protected function addInvalidPHPVersionNotice() |
| 266 |
|
{ |
| 267 |
|
$this->notice->addError([ |
| 268 |
|
$this->notice->title( __( 'The Pollux plugin was deactivated.', 'pollux' )), |
| 269 |
|
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 ), |
| 270 |
|
__( 'Please contact your hosting provider or server administrator to upgrade the version of PHP running on your server, or find an alternate plugin.', 'pollux' ), |
| 271 |
|
]); |
| 272 |
|
} |
| 273 |
|
|
| 274 |
|
/** |
| 275 |
|
* @return void |
|
@@ 277-284 (lines=8) @@
|
| 274 |
|
/** |
| 275 |
|
* @return void |
| 276 |
|
*/ |
| 277 |
|
protected function addInvalidWPVersionNotice() |
| 278 |
|
{ |
| 279 |
|
$this->notice->addError([ |
| 280 |
|
$this->notice->title( __( 'The Pollux plugin was deactivated.', 'pollux' )), |
| 281 |
|
sprintf( __( 'Sorry, Pollux requires WordPress %s or greater in order to work properly.', 'pollux' ), self::MIN_WORDPRESS_VERSION ), |
| 282 |
|
$this->notice->button( __( 'Update WordPress', 'pollux' ), self_admin_url( 'update-core.php' )), |
| 283 |
|
]); |
| 284 |
|
} |
| 285 |
|
|
| 286 |
|
/** |
| 287 |
|
* @param string $plugin |