Skip to content

Commit

Permalink
fixing CSS escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
norcross committed Jul 12, 2017
1 parent 25766a3 commit 1ebfb15
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions debug-quick-look.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,6 @@ public function process_debug_type() {
// Set my empty.
$build = '';

// If we have CSS values, return them.
if ( ! empty( $style ) ) {
$build .= '<style>' . $style . '</style>';
}

// Include a "back to admin" link.
$build .= '<p class="returnlink"><a href="' . admin_url( '/' ) . '">' . esc_html__( 'Return To Admin Dashboard', 'debug-quick-look' ) . '</a></p>';

Expand Down Expand Up @@ -193,6 +188,11 @@ public function process_debug_type() {
}
}

// If we have CSS values, echo them.
if ( ! empty( $style ) ) {
echo '<style>' . esc_attr( $style ) . '</style>';
}

// Echo out the build.
echo wp_kses_post( $build );

Expand Down

0 comments on commit 1ebfb15

Please sign in to comment.