Skip to content

Commit

Permalink
remove escapes for caption and margin shortcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
frnsys committed Apr 19, 2017
1 parent df90bbd commit 86aeca5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/class-tni-core-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function caption_shortcode( $attr, $content = null ) {

ob_start(); ?>

<figcaption class="wp-caption-text"><?php echo esc_attr( $content ); ?></figcaption>
<figcaption class="wp-caption-text"><?php echo $content; ?></figcaption>

<?php
return ob_get_clean();
Expand All @@ -183,7 +183,7 @@ public function margin_left_shortcode( $attr, $content = null ) {

ob_start(); ?>

<div class="margin-left"><?php echo esc_attr( $content ); ?></div>
<div class="margin-left"><?php echo $content; ?></div>

<?php
return ob_get_clean();
Expand All @@ -202,7 +202,7 @@ public function margin_right_shortcode( $attr, $content = null ) {

ob_start(); ?>

<div class="margin-right"><?php echo esc_attr( $content ); ?></div>
<div class="margin-right"><?php echo $content; ?></div>

<?php
return ob_get_clean();
Expand Down

0 comments on commit 86aeca5

Please sign in to comment.