function debug_string( $notice, $theme ) { if ( 'Genesis' === $theme->name ) { return __( 'Enable update checks at Appearance → Customize → Theme Settings → Updates.', 'genesis' ); } if ( 'genesis' === $theme->template ) { return __( 'Auto-updates are not available for this theme.', 'genesis' ); } return $notice; }