: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
self::INITIAL_FAKE_VERSION
* Determine if it is the core plugin (Lite or Pro).
* @return bool True if it is the core plugin.
protected function is_core_plugin(): bool {
// phpcs:ignore WPForms.Formatting.EmptyLineBeforeReturn.RemoveEmptyLineBeforeReturnStatement
return strpos( static::MIGRATED_OPTION_NAME, 'wpforms_versions' ) === 0;
* @param bool $migrated Migration status.
* @param string $plugin_name Plugin name.
* @param string $upgrade_version Upgrade version.
private function log_migration_message( bool $migrated, string $plugin_name, string $upgrade_version ) {
sprintf( 'Migration of %1$s to %2$s completed.', $plugin_name, $upgrade_version ) :
sprintf( 'Migration of %1$s to %2$s failed.', $plugin_name, $upgrade_version );