Skip to content

Compose-editor ships 55 lines of editor CSS via PHP heredoc instead of a stylesheet #85

Description

@chubes4

Summary

The studio compose-editor ships ~55 lines of editor CSS as a PHP heredoc via wp_add_inline_style instead of a proper stylesheet — bypassing the canonical editor-style delivery, lint, and filemtime cache-busting.

Evidence (verified)

extrachill-studio/inc/compose-editor.php:71-131 enqueue_editor_inline_styles() — a heredoc styling .editor-styles-wrapper, toolbar, footer, blockquote, placeholder, etc., shipped via wp_add_inline_style('extrachill-root', $css). It DOES use theme variables (var(--accent), var(--background-color)) so it's not a token violation — it's a delivery-mechanism issue. Comment L51-54 acknowledges it's a workaround for inline-IBE quirks.

Why it's debt

Editor-style content belongs in add_editor_style() / enqueue_block_assets-delivered stylesheets (per MEMORY's editor-styles architecture). In a PHP heredoc it's not lintable, not filemtime cache-busted, and not in the token build pipeline.

Fix

Move the CSS to a real stylesheet file delivered via the canonical editor-style path (add_editor_style or enqueue_block_assets with the is_admin/BE guard MEMORY documents). filemtime cache-bust it.

Acceptance criteria

  • Editor CSS lives in a stylesheet, not a PHP heredoc
  • Delivered via the canonical editor-style path, filemtime cache-busted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions