You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Refactor: Simplify wpcd_get_the_title() by directly using WordPress native get_the_title() function.
Refactor: Replace verbose conditionals in wpcd_data_sync_allowed() and wpcd_email_notifications_allowed() with compact boolean expressions.
Refactor: Clean up wpcd_is_woocommerce_activated() by removing unnecessary else block and returning result directly.
Refactor: Use direct class_exists() returns in wpcd_is_git_enabled(), wpcd_is_mt_enabled() and similar checks.
Fix: Remove unused $allow variables in data sync and email notification check functions.
Fix: Eliminate redundant else statements for cleaner and more efficient logic.
Fix: Correct mismatched curly brace in wpcd_is_woocommerce_activated() function.
Tweak: Improve overall readability and adherence to modern PHP best practices.
Tweak: Apply early return patterns across all helper functions to reduce nesting and enhance maintainability.
Refactor: Simplified get_app_id_by_domain_name() by removing redundant checks, using reset() for first result, and ensuring consistent return type (false instead of empty string).
Fix: Add check to ensure decoded marketplace data is an array before returning, preventing potential errors from invalid API responses in getData() method.