newMinVersion, true ); if ( '1' === $dismissed ) { return; } // Show to users that interact with our pluign. if ( ! current_user_can( 'publish_posts' ) ) { return; } // Show if WordPress version is deprecated. global $wp_version; // phpcs:ignore Squiz.NamingConventions.ValidVariableName if ( ! version_compare( $wp_version, $this->newMinVersion, '<' ) ) { // phpcs:ignore Squiz.NamingConventions.ValidVariableName return; } $this->showNotice(); // Print the script to the footer. add_action( 'admin_footer', [ $this, 'printScript' ] ); } /** * Actually show the review plugin. * * @since 4.1.2 * * @return void */ public function showNotice() { $medium = false !== strpos( AIOSEO_PHP_VERSION_DIR, 'pro' ) ? 'proplugin' : 'liteplugin'; ?>
',
''
),
[
'strong' => [],
]
);
?>
',
'',
'AIOSEO',
$this->newMinVersion,
gmdate( 'Y' ),
'', // phpcs:ignore Generic.Files.LineLength.MaxExceeded
''
),
[
'a' => [
'href' => [],
'target' => [],
'rel' => [],
],
'strong' => [],
]
);
?>