[wp-trac] [WordPress Trac] #41217: WP_Community_Events Disable Event Logs
WordPress Trac
noreply at wordpress.org
Thu Sep 14 12:35:38 UTC 2017
#41217: WP_Community_Events Disable Event Logs
----------------------------+----------------------
Reporter: Howdy_McGee | Owner: iandunn
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.9
Component: Administration | Version: 4.8
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
----------------------------+----------------------
Comment (by charlestonsw):
> > if ( ! WP_COMMUNITY_EVENTS_LOG ) {
>
> I think it'd need to be `if ( ! defined( 'WP_COMMUNITY_EVENTS_LOG' ) ||
! WP_COMMUNITY_EVENTS_LOG )`, since PHP evaluates undefined constants as
a string with the name as the value (i.e., `'WP_COMMUNITY_EVENTS_LOG'`),
which then evaluates to `true`.
Yes, that is true... I was giving a short non-functional concept. :)
Glad to see this is likely to get baked into core soon.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41217#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list