: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* WPML_Whip_Requirements class file.
* Class WPML_Whip_Requirements
class WPML_Whip_Requirements {
public function add_hooks() {
add_action( 'plugins_loaded', array( $this, 'load_whip' ) );
* Get host name for message about PHP.
public function whip_name_of_host() {
* Get WPML message about PHP.
public function whip_message_from_host_about_php() {
__( 'This will be the last version of WPML which works with the currently installed PHP version', 'sitepress' ) .
__( 'This version of WPML will only receive security fixes for the next 12 months', 'sitepress' ) .
public function load_whip() {
if ( ! ( 'index.php' === $GLOBALS['pagenow'] && current_user_can( 'manage_options' ) ) ) {
add_filter( 'whip_hosting_page_url_wordpress', '__return_true' );
add_filter( 'whip_name_of_host', array( $this, 'whip_name_of_host' ) );
add_filter( 'whip_message_from_host_about_php', array( $this, 'whip_message_from_host_about_php' ) );
whip_wp_check_versions( array( 'php' => '>=5.6' ) );