WordPress / wporg-theme-directory

15 stars 6 forks source link

Theme upload: Catch the theme check output, style results #155

Closed ryelle closed 1 month ago

ryelle commented 1 month ago

Fixes #153. The Theme Check results are echod directly when run, which now happens when the block is rendered. This change catches that output using output buffering, and styles the theme check results.

Screenshots

Before After - theme failed checks After - theme passed checks
CleanShot 2024-07-11 at 13 05 58@2x theme-check-fail theme-check-pass

Note: this does expect a heading change in the theme-directory plugin, so that the "Results of Automated Theme Scanning…" becomes an h2 to match the page's heading hierarchy.