src/Model.php
protected function original_is_numerically_equivalent( $key ) {

		$current = $this->get_raw_attribute( $key );

		$original = $this->_original[ $key ];

		return is_numeric( $current ) && is_numeric( $original ) &&
		       strcmp( (string) $current, (string) $original ) === 0;
	}
protected function original_is_numerically_equivalent( $key ) {

		$current = $this->get_raw_attribute( $key );

		$original = $this->_original[ $key ];

		return is_numeric( $current ) && is_numeric( $original ) &&
		       strcmp( (string) $current, (string) $original ) === 0;
	}
Determine if the new and old values for a given key are numerically equivalent.

{@internal Helper method used for determining which attributes are dirty.}

@since 2.0

@param string $key

@return bool