Skip to content
This repository was archived by the owner on Apr 10, 2026. It is now read-only.
This repository was archived by the owner on Apr 10, 2026. It is now read-only.

Replace all trigger_error() with wp_trigger_error() #243

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions