Skip to content

Commit

Permalink
Fix issue #731 - RSS text strings on options page being double escaped
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Mar 12, 2014
1 parent 54082f1 commit deac166
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 2 additions & 4 deletions admin/pages/rss.php
Expand Up @@ -16,20 +16,18 @@

$content = '<p>' . __( "This feature is used to automatically add content to your RSS, more specifically, it's meant to add links back to your blog and your blog posts, so dumb scrapers will automatically add these links too, helping search engines identify you as the original source of the content.", 'wordpress-seo' ) . '</p>';
$rows = array();
$rssbefore = esc_textarea( $options[ 'rssbefore' ] );
$rssafter = esc_textarea( $options[ 'rssafter' ] );

$rows[] = array(
'id' => 'rssbefore',
'label' => __( 'Content to put before each post in the feed', 'wordpress-seo' ),
'desc' => __( '(HTML allowed)', 'wordpress-seo' ),
'content' => '<textarea cols="50" rows="5" id="rssbefore" name="wpseo_rss[rssbefore]">' . esc_textarea( $rssbefore ) . '</textarea>',
'content' => '<textarea cols="50" rows="5" id="rssbefore" name="wpseo_rss[rssbefore]">' . esc_textarea( $options['rssbefore'] ) . '</textarea>',
);
$rows[] = array(
'id' => 'rssafter',
'label' => __( 'Content to put after each post', 'wordpress-seo' ),
'desc' => __( '(HTML allowed)', 'wordpress-seo' ),
'content' => '<textarea cols="50" rows="5" id="rssafter" name="wpseo_rss[rssafter]">' . esc_textarea( $rssafter ) . '</textarea>',
'content' => '<textarea cols="50" rows="5" id="rssafter" name="wpseo_rss[rssafter]">' . esc_textarea( $options['rssafter'] ) . '</textarea>',
);
$rows[] = array(
'label' => __( 'Explanation', 'wordpress-seo' ),
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Expand Up @@ -108,6 +108,9 @@ You'll find the [FAQ on Yoast.com](https://yoast.com/wordpress/plugins/seo/faq/)

= Trunk =

* Bugfixes
* Fix RSS text strings on options page being double escaped, [issue #731](https://github.com/Yoast/wordpress-seo/issues/731) as reported by [namaserajesh](https://github.com/namaserajesh) - props [Jrf](http://profiles.wordpress.org/jrf).

* i18n Updates
* Updated nl_NL, id_ID, it_IT, fr_FR and de_DE
* Added ko
Expand Down

0 comments on commit deac166

Please sign in to comment.