Skip to content

Pattern Creator: Deregister parent print stylesheet - #799

Open
elphizu wants to merge 1 commit into
WordPress:trunkfrom
elphizu:fix/creator-print-styles
Open

elphizu wants to merge 1 commit into
WordPress:trunkfrom
elphizu:fix/creator-print-styles

Conversation

@elphizu

@elphizu elphizu commented Oct 22, 2026

Copy link
Copy Markdown

Problem

The pattern creator deregisters the parent theme’s main stylesheet but leaves its dependent print stylesheet registered, causing a PHP notice about an unregistered dependency.

Deregisters wporg-parent-2021-print alongside the main stylesheet.

Fixes #798.

How to test

  1. Enable WP_DEBUG and WP_DEBUG_DISPLAY.
  2. Log in and visit /new-pattern/.
  3. Confirm the stylesheet dependency notice no longer appears.
  4. Confirm the editor still loads correctly.

Validation

  • PHP syntax and PHPCS checks pass.
  • Runtime check confirms both parent stylesheets are deregistered in the creator.

Use of AI Tools

AI assistance: Yes
Tool: OpenAI Codex
Used for: Investigation, implementation, and running validation.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 36 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1a5039fa-036f-49e8-ae7c-a4aa3cac7723
📥 Commits

Reviewing files that changed from the base of the PR and between 03bb4c6 and 2f06b66.

📒 Files selected for processing: 1
  • public_html/wp-content/plugins/pattern-creator/pattern-creator.php
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@elphizu
elphizu marked this pull request as ready for review October 22, 2026 13:04
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.

Pattern Creator: Print stylesheet depends on a deregistered parent stylesheet

1 participant