Skip to content

fix: define theme version to prevent fatal errors - #5

Merged
selul merged 1 commit into
masterfrom
bugfix/neve/4543
Jul 21, 2026
Merged

fix: define theme version to prevent fatal errors#5
selul merged 1 commit into
masterfrom
bugfix/neve/4543

Conversation

@girishpanchal30

Copy link
Copy Markdown
Contributor

@girishpanchal30
girishpanchal30 requested a review from Copilot July 21, 2026 10:19
@selul
selul merged commit 6ae611b into master Jul 21, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a fallback for the Neve parent theme version to prevent undefined-constant errors.

Changes:

  • Defines NEVE_VERSION before enqueueing the child stylesheet.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread functions.php
Comment on lines +7 to +9
if ( ! defined( 'NEVE_VERSION' ) ) {
define( 'NEVE_VERSION', wp_get_theme( get_template() )->get( 'Version' ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve child theme boilerplate to prevent PHP 8.2 fatal errors with NEVE_VERSION

3 participants