Skip to content

Commit

Permalink
Merge pull request #14 from sendsmaily/hotfix/rss-feed-specialchars
Browse files Browse the repository at this point in the history
Rss feed description field changed to support htmlentities.
  • Loading branch information
sinukaarel authored Feb 3, 2019
2 parents 92c7d2f + 167d18c commit 229b63f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
6 changes: 4 additions & 2 deletions inc/Base/DataHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,15 @@ public static function generate_rss_feed( $category, $limit = 50 ) {
<smly:old_price>' . esc_attr( $price ) . '</smly:old_price>
<smly:discount>-' . esc_attr( $discount ) . '%</smly:discount>';
}
// Parse image to form element.
$description = do_shortcode( $prod->get_description());

$items[] = '<item>
<title>' . esc_attr( $prod->get_title() ) . '</title>
<title><![CDATA[' . $prod->get_title() . ']]></title>
<link>' . esc_url( $url ) . '</link>
<guid isPermaLink="True">' . esc_url( $url ) . '</guid>
<pubDate>' . date( 'D, d M Y H:i:s', $create_time ) . '</pubDate>
<description>' . htmlentities( $prod->get_description() ) . '</description>
<description><![CDATA[' . $description . ']]></description>
<enclosure url="' . esc_url( $image ) . '" />
<smly:price>' . esc_attr( $splc_price ) . '</smly:price>' . $price_fields . '
</item>
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ Up to 10 products can be received in Smaily templating engine. You can refrence

## Changelog

### 1.2.1

- Bugfix. Rss-feed now displays special characters.

### 1.2.0

- New feature. Rss-feed now supports category and limit parameters from url.
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Requires PHP: 5.6
Requires at least: 4.0
Tested up to: 5.0.2
WC tested up to: 3.5.3
Stable tag: 1.2.0
Stable tag: 1.2.1
License: GPLv3

Simple and flexible Smaily newsletter and rss-feed integration for WooCommerce.
Expand Down Expand Up @@ -131,6 +131,10 @@ Up to 10 products can be received in Smaily templating engine. You can refrence

== Changelog ==

### 1.2.1

- Bugfix. Rss-feed now displays special characters.

### 1.2.0

- New feature. Rss-feed now supports category and limit parameters from url.
Expand Down
2 changes: 1 addition & 1 deletion smaily-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Plugin Name: Smaily for WooCommerce
* Plugin URI: https://github.com/sendsmaily/smaily-woocommerce-plugin
* Description: Smaily email marketing and automation extension plugin for WooCommerce (set up opt-in form, client sync and output RSS-feed) for easy product import into template.
* Version: 1.2.0
* Version: 1.2.1
* License: GPL3
* Author: Smaily
* Author URI: https://smaily.com/
Expand Down

0 comments on commit 229b63f

Please sign in to comment.