';
if ( ! $compatible_php && ! $compatible_wp ) {
echo esc_html__( 'This plugin doesn’t work with your versions of WordPress and PHP.', 'ninjateam-whatsapp' );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
printf(
/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
' ' . esc_html__( 'Please update WordPress, and then learn more about updating PHP.', 'ninjateam-whatsapp' ),
esc_url( self_admin_url( 'update-core.php' ) ),
esc_url( wp_get_update_php_url() )
);
wp_update_php_annotation( '
', '' );
} elseif ( current_user_can( 'update_core' ) ) {
printf(
/* translators: %s: URL to WordPress Updates screen. */
' ' . esc_html__( 'Please update WordPress.', 'ninjateam-whatsapp' ),
esc_url( self_admin_url( 'update-core.php' ) )
);
} elseif ( current_user_can( 'update_php' ) ) {
printf(
/* translators: %s: URL to Update PHP page. */
' ' . esc_html__( 'Learn more about updating PHP.', 'ninjateam-whatsapp' ),
esc_url( wp_get_update_php_url() )
);
wp_update_php_annotation( '
', '' );
}
} elseif ( ! $compatible_wp ) {
echo esc_html__( 'This plugin doesn’t work with your version of WordPress.', 'ninjateam-whatsapp' );
if ( current_user_can( 'update_core' ) ) {
printf(
/* translators: %s: URL to WordPress Updates screen. */
' ' . esc_html__( 'Please update WordPress.', 'ninjateam-whatsapp' ),
esc_url( self_admin_url( 'update-core.php' ) )
);
}
} elseif ( ! $compatible_php ) {
echo esc_html__( 'This plugin doesn’t work with your version of PHP.', 'ninjateam-whatsapp' );
if ( current_user_can( 'update_php' ) ) {
printf(
/* translators: %s: URL to Update PHP page. */
' ' . esc_html__( 'Learn more about updating PHP.', 'ninjateam-whatsapp' ),
esc_url( wp_get_update_php_url() )
);
wp_update_php_annotation( '
', '' );
}
}
echo '
';
}
?>
%s: %s', esc_html( 'Status' ), wp_kses_post( $pluginStatus ) ); ?>
' . wp_kses_post( implode( '', $actionLinks ) ) . '';
}
?>