getProjectPost(); if ( ! $projectPost ) { return; } $projectStorage = Brizy_Editor_Storage_Project::instance( $projectPost->ID ); $pluginVersion = $projectStorage->get( 'pluginVersion', false ); if ( ! $pluginVersion ) { // this is going to fix the plugin and editor version $projectStorage->set( 'pluginVersion', BRIZY_VERSION ); $projectStorage->set( 'editorVersion', BRIZY_EDITOR_VERSION ); $projectStorage->delete( 'version' ); } } catch ( Exception $e ) { return; } } }