Skip to content

Commit

Permalink
Do not use WP_DEBUG to check whether testing script needs to be loa…
Browse files Browse the repository at this point in the history
…ded or not

Fixes #87
  • Loading branch information
imath authored Dec 15, 2023
1 parent b271da0 commit d8e4cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-statuses.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ private function inc() {
* @param bool $value True to have a demo of the custom status.
* False otherwise.
*/
if ( apply_filters( 'wp_statuses_use_custom_status', WP_DEBUG ) ) {
if ( apply_filters( 'wp_statuses_use_custom_status', false ) ) {
require $this->inc_dir . 'core/custom.php';
}
}
Expand Down

0 comments on commit d8e4cc3

Please sign in to comment.