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
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.
Fixes #153. The Theme Check results are
echo
d 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
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.