8000 Replace all trigger_error() with wp_trigger_error() · Issue #243 · PurpleTurtleCreative/completionist · GitHub
[go: up one dir, main page]

Skip to content

Replace all trigger_error() with wp_trigger_error() #243

@MichelleBlanchette

Description

@MichelleBlanchette

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcleanupImproves code organization and usabilityminorAn easy or less important task

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0