Skip to content

Replace constant() with defined() #8

@pippinsplugins

Description

@pippinsplugins

While I really don't think there's anything wrong with using the constant() function, it's a bit cleaner and more standard to use defined().

if (@constant('BRACKETPRESS_DEBUG')) {

becomes

if ( defined('BRACKETPRESS_DEBUG')) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions