-
Notifications
You must be signed in to change notification settings - Fork 0
Replace all trigger_error() with wp_trigger_error() #243
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingcleanupImproves code organization and usabilityImproves code organization and usabilityminorAn easy or less important taskAn easy or less important task
Description
See https://developer.wordpress.org/reference/functions/wp_trigger_error/
PHPCS linting warnings never mentioned this function as the recommended alternative, but I just now happened upon it.
trigger_error() found. Debug code should not normally be used in production.
(WordPress.PHP.DevelopmentFunctions.error_log_trigger_error) phpcs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcleanupImproves code organization and usabilityImproves code organization and usabilityminorAn easy or less important taskAn easy or less important task