Instant Articles for WP - Version 3.0.1

Version Description

  • Fix overzealous escaping
Download this release

Release Info

Developer philipjohn
Plugin Icon 128x128 Instant Articles for WP
Version 3.0.1
Comparing to
See all releases

Code changes from version 3.0 to 3.0.1

facebook-instant-articles.php CHANGED
@@ -4,7 +4,7 @@
4
  * Description: Add support for Instant Articles for Facebook to your WordPress site.
5
  * Author: Automattic, Dekode, Facebook
6
  * Author URI: https://vip.wordpress.com/plugins/instant-articles/
7
- * Version: 3.0
8
  * Text Domain: instant-articles
9
  * License: GPLv2
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
4
  * Description: Add support for Instant Articles for Facebook to your WordPress site.
5
  * Author: Automattic, Dekode, Facebook
6
  * Author URI: https://vip.wordpress.com/plugins/instant-articles/
7
+ * Version: 3.0.1
8
  * Text Domain: instant-articles
9
  * License: GPLv2
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: trrine, olethomas, bjornjohansen, dekode, automattic, facebook
3
  Tags: instant articles, facebook, mobile
4
  Requires at least: 4.3
5
- Tested up to: 4.5.3
6
- Stable tag: 3.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -85,6 +85,10 @@ Usually simply visiting the permalinks settings page in the WordPress dashboard
85
 
86
  == Changelog ==
87
 
 
 
 
 
88
  = 3.0 =
89
 
90
  * Fix versioning - use WP style
2
  Contributors: trrine, olethomas, bjornjohansen, dekode, automattic, facebook
3
  Tags: instant articles, facebook, mobile
4
  Requires at least: 4.3
5
+ Tested up to: 4.6
6
+ Stable tag: 3.0.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
85
 
86
  == Changelog ==
87
 
88
+ = 3.0.1 =
89
+
90
+ * Fix overzealous escaping
91
+
92
  = 3.0 =
93
 
94
  * Fix versioning - use WP style
settings/class-instant-articles-option-ads.php CHANGED
@@ -134,7 +134,7 @@ class Instant_Articles_Option_Ads extends Instant_Articles_Option {
134
 
135
  ?>
136
  </select>
137
- <?php echo esc_html( $description ); ?>
138
  <?php
139
  }
140
 
134
 
135
  ?>
136
  </select>
137
+ <?php echo wp_kses_post( $description ); ?>
138
  <?php
139
  }
140
 
settings/class-instant-articles-option.php CHANGED
@@ -189,7 +189,7 @@ class Instant_Articles_Option {
189
  $this->key,
190
  esc_html( $title ),
191
  function () use ( $description ) {
192
- echo esc_html( $description );
193
  },
194
  $this->key
195
  );
@@ -314,7 +314,7 @@ class Instant_Articles_Option {
314
  />
315
  <?php if ( $field_description ) : ?>
316
  <p class="description">
317
- <?php echo esc_html( $field_description ); ?>
318
  </p>
319
  <?php endif; ?>
320
  <?php
@@ -336,7 +336,7 @@ class Instant_Articles_Option {
336
  </label>
337
  <?php if ( $field_description ) : ?>
338
  <p class="description">
339
- <?php echo esc_html( $field_description ); ?>
340
  </p>
341
  <?php endif; ?>
342
  <?php
@@ -366,7 +366,7 @@ class Instant_Articles_Option {
366
  </select>
367
  <?php if ( $field_description ) : ?>
368
  <p class="description">
369
- <?php echo esc_html( $field_description ); ?>
370
  </p>
371
  <?php endif; ?>
372
  <?php
@@ -386,7 +386,7 @@ class Instant_Articles_Option {
386
  ><?php echo $args[ 'double_encode' ] ? htmlspecialchars( $option_value ) : esc_html( $option_value ); ?></textarea>
387
  <?php if ( $field_description ) : ?>
388
  <p class="description">
389
- <?php echo esc_html( $field_description ); ?>
390
  </p>
391
  <?php endif; ?>
392
  <?php
@@ -409,7 +409,7 @@ class Instant_Articles_Option {
409
  />
410
  <?php if ( $field_description ) : ?>
411
  <p class="description">
412
- <?php echo esc_html( $field_description ); ?>
413
  </p>
414
  <?php endif; ?>
415
  <?php
189
  $this->key,
190
  esc_html( $title ),
191
  function () use ( $description ) {
192
+ echo wp_kses_post( $description );
193
  },
194
  $this->key
195
  );
314
  />
315
  <?php if ( $field_description ) : ?>
316
  <p class="description">
317
+ <?php echo wp_kses_post( $field_description ); ?>
318
  </p>
319
  <?php endif; ?>
320
  <?php
336
  </label>
337
  <?php if ( $field_description ) : ?>
338
  <p class="description">
339
+ <?php echo wp_kses_post( $field_description ); ?>
340
  </p>
341
  <?php endif; ?>
342
  <?php
366
  </select>
367
  <?php if ( $field_description ) : ?>
368
  <p class="description">
369
+ <?php echo wp_kses_post( $field_description ); ?>
370
  </p>
371
  <?php endif; ?>
372
  <?php
386
  ><?php echo $args[ 'double_encode' ] ? htmlspecialchars( $option_value ) : esc_html( $option_value ); ?></textarea>
387
  <?php if ( $field_description ) : ?>
388
  <p class="description">
389
+ <?php echo wp_kses_post( $field_description); ?>
390
  </p>
391
  <?php endif; ?>
392
  <?php
409
  />
410
  <?php if ( $field_description ) : ?>
411
  <p class="description">
412
+ <?php echo wp_kses_post( $field_description ); ?>
413
  </p>
414
  <?php endif; ?>
415
  <?php