: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
public static function has_turned_off_tips() {
return true === pum_get_option( 'disable_tips', false ) || 1 === intval( pum_get_option( 'disable_tips', false ) );
* Get the datetime string for when PM was installed.
public static function get_installed_on() {
$installed_on = get_option( 'pum_installed_on', false );
$installed_on = current_time( 'mysql' );
* Ensures pointer is set up correctly.
* @param array $pointer The pointer.
private static function is_pointer_valid( $pointer ) {
return ! empty( $pointer ) && ! empty( $pointer['pointer_id'] ) && ! empty( $pointer['target'] ) && ! empty( $pointer['options'] );