Skip to content

Bug fix: Prevent fatal if class does not exist on Beta Features.#200

Merged
cbravobernal merged 2 commits intotrunkfrom
fix/prevent-fatals-if-beta-features-files-are-not-loaded
Jul 31, 2025
Merged

Bug fix: Prevent fatal if class does not exist on Beta Features.#200
cbravobernal merged 2 commits intotrunkfrom
fix/prevent-fatals-if-beta-features-files-are-not-loaded

Conversation

@cbravobernal
Copy link
Copy Markdown
Contributor

Closes #198 and prevents from happening again due to a beta feature trying to load a non existent class.

@cbravobernal cbravobernal added this to the 6.5.5 milestone Jul 31, 2025
@cbravobernal cbravobernal self-assigned this Jul 31, 2025
@cbravobernal cbravobernal added the [Type] Bug Something isn't working label Jul 31, 2025
@cbravobernal cbravobernal merged commit 17c6d04 into trunk Jul 31, 2025
5 checks passed
@cbravobernal cbravobernal deleted the fix/prevent-fatals-if-beta-features-files-are-not-loaded branch July 31, 2025 11:29
@cbravobernal cbravobernal changed the title Bug fix: Prevent fatal if class does not exist Bug fix: Prevent fatal if class does not exist on Beta Features. Jul 31, 2025
* @return void
*/
public function register_beta_feature( $beta_feature ) {
if ( ! class_exists( $beta_feature ) ) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this safety check 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6.5.2 Uncaught Error: Class "SCF_Admin_Beta_Feature_Connect_Fields" not found

2 participants