Add a null check to avoid deprecated message when previewing#1742
Conversation
WalkthroughThe update introduces a new private static function to the Changes
Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
Out of diff range and nitpick comments (2)
classes/controllers/FrmFormsController.php (2)
Line range hint
347-355: Consider refactoring the methodmaybe_load_cssto avoid direct manipulation of global variables, which can lead to maintainability issues. Encapsulating the state management within a class or using getter/setter methods could enhance robustness.
Line range hint
357-365: The methodfooter_jsuses global variables to manage script loading state. Consider refactoring to improve clarity and encapsulate state management, possibly by moving state-related logic to a dedicated class or method.
This is more of a WP/Theme issue, but this update helps make sure that Formidable isn't triggering a deprecated message.