Changeset 2044373
- Timestamp:
- 03/05/2019 07:59:30 AM (7 years ago)
- Location:
- quotes-collection/trunk
- Files:
-
- 4 edited
-
inc/class-quotes-collection.php (modified) (2 diffs)
-
js/quotes-collection.js (modified) (2 diffs)
-
quotes-collection.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quotes-collection/trunk/inc/class-quotes-collection.php
r2037758 r2044373 10 10 11 11 /** Plugin version **/ 12 const PLUGIN_VERSION = '2.5 ';12 const PLUGIN_VERSION = '2.5.1'; 13 13 14 14 public $refresh_link_text; … … 302 302 .'"autoRefresh":'.$auto_refresh.', ' 303 303 .'"dynamicFetch":'.$dynamic_fetch.', ' 304 .'"before":"'. addslashes($before).'", '305 .'"after":"'. addslashes($after).'", '306 .'"beforeAttribution":"'. addslashes($before_attribution).'", '307 .'"afterAttribution":"'. addslashes($after_attribution).'", '304 .'"before":"'.htmlentities(addslashes($before)).'", ' 305 .'"after":"'.htmlentities(addslashes($after)).'", ' 306 .'"beforeAttribution":"'.htmlentities(addslashes($before_attribution)).'", ' 307 .'"afterAttribution":"'.htmlentities(addslashes($after_attribution)).'", ' 308 308 .'};'; 309 309 -
quotes-collection/trunk/js/quotes-collection.js
r2037758 r2044373 52 52 } 53 53 if(attribution) { 54 display += args.beforeAttribution + attribution + args.afterAttribution;54 display += quotescollectionHtmlDecode(args.beforeAttribution) + attribution + quotescollectionHtmlDecode(args.afterAttribution); 55 55 } 56 display = args.before + display + args.after;56 display = quotescollectionHtmlDecode(args.before) + display + quotescollectionHtmlDecode(args.after); 57 57 if(args.ajaxRefresh && !args.autoRefresh) 58 58 display += '<div class=\"navigation\"><div class=\"nav-next\"><a class=\"next-quote-link\" style=\"cursor:pointer;\" onclick=\"quotescollectionRefreshInstance(\''+args.instanceID+'\')\">'+quotescollectionAjax.nextQuote+'</a></div></div>'; … … 74 74 quotescollectionAjax.autoRefreshCount = ++autoRefreshCount; 75 75 } 76 } 76 77 78 /* Thanks https://stackoverflow.com/a/34064434 */ 79 function quotescollectionHtmlDecode(input) { 80 var doc = new DOMParser().parseFromString(input, "text/html"); 81 return doc.documentElement.textContent; 77 82 } -
quotes-collection/trunk/quotes-collection.php
r2038021 r2044373 4 4 * Plugin URI: http://srinig.com/wordpress/plugins/quotes-collection/ 5 5 * Description: Quotes Collection plugin with Ajax powered Random Quote sidebar widget helps you collect and display your favourite quotes in your WordPress blog/website. 6 * Version: 2.5 6 * Version: 2.5.1 7 7 * Author: Srini G 8 8 * Author URI: http://srinig.com/ -
quotes-collection/trunk/readme.txt
r2038500 r2044373 74 74 ==Changelog== 75 75 76 * **2019-03-05: Version 2.5.1** 77 * Fix for an issue where JS arguments break HTML loop when widget is used inside certain page builders. 78 76 79 * **2019-02-23: Version 2.5** 77 80 * Gutenberg blocks included. *Note: to make use of these blocks, you should have WP 5.0 or above, or have the [Gutenberg plugin](https://wordpress.org/plugins/gutenberg/) installed and activated.* … … 326 329 == Upgrade Notice == 327 330 331 = 2.5.1 = 332 Comes with a fix for an issue where widget breaks HTML loop in some cases. Upgrade recommended. 333 328 334 = 2.5 = 329 335 Major update. Gutenberg blocks included, refresh options for shortcode added, other improvements and fixes.
Note: See TracChangeset
for help on using the changeset viewer.