-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ReaderThemeSupportFeatures::theme_has_theme_json()
with latest changes
#7583
Conversation
* | ||
* @todo Replace `WP_DEBUG` once an "in development mode" check is available in Core. | ||
*/ | ||
! ( defined( 'WP_DEBUG' ) && WP_DEBUG ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@westonruter wp_get_development_mode()
is recently introduced. So should we keep WP_DEBUG
instead? Or we can add this function to this file and then use it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Yes, this should keep using WP_DEBUG
. For sites with wp_get_development_mode()
, they'll also have wp_theme_has_theme_json()
.
Plugin builds for 95a0202 are ready 🛎️!
|
Co-authored-by: Weston Ruter <westonruter@google.com>
Summary
Fixes #7582
Checklist