Skip to content

fix: add block theme check before switching templates to prevent warnings#4412

Open
laurelfulford wants to merge 1 commit intotrunkfrom
fix/add-block-theme-check
Open

fix: add block theme check before switching templates to prevent warnings#4412
laurelfulford wants to merge 1 commit intotrunkfrom
fix/add-block-theme-check

Conversation

@laurelfulford
Copy link
Contributor

All Submissions:

Changes proposed in this Pull Request:

This change just gets rid of some annoying notices when you're using the Block theme:

[21-Jan-2026 21:15:22 UTC] PHP Warning: include(): Failed opening '/var/www/additional-sites-html/blocktheme2/wp-content/themes/newspack-block-theme/single-wide.php' for inclusion (include_path='.:/usr/share/php') in /var/www/additional-sites-html/blocktheme2/wp-includes/template-loader.php on line 125

How to test the changes in this Pull Request:

  1. Apply the PR.
  2. Using the Classic Theme, edit your /cart page and make sure it's set to use the Default or One-Column (not wide) template.
  3. Ensure it's still using the One-Column wide template on the front-end.

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@laurelfulford laurelfulford requested a review from a team as a code owner January 21, 2026 21:50
@laurelfulford laurelfulford added the [Status] Needs Review The issue or pull request needs to be reviewed label Jan 21, 2026
@laurelfulford laurelfulford changed the title fix: add bock theme check before switching templates to prevent warnings fix: add block theme check before switching templates to prevent warnings Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Status] Needs Review The issue or pull request needs to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant