Changeset 2981212
- Timestamp:
- 10/19/2023 01:47:23 PM (2 years ago)
- Location:
- printfriendly
- Files:
-
- 6 edited
- 1 copied
-
tags/5.5.3 (copied) (copied from printfriendly/trunk)
-
tags/5.5.3/assets/js/admin.js (modified) (1 diff)
-
tags/5.5.3/pf.php (modified) (4 diffs)
-
tags/5.5.3/readme.txt (modified) (1 diff)
-
trunk/assets/js/admin.js (modified) (1 diff)
-
trunk/pf.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
printfriendly/tags/5.5.3/assets/js/admin.js
r2858862 r2981212 261 261 262 262 function custom_text_change(){ 263 $('#buttongroup3 span:not(.printandpdf)').text( $('#custom_text').val() ); 264 var newText = $('#custom-text-no').prop('checked') ? '' : $('#custom_text').val(); 263 // remove html tags 264 var text = $('#custom_text').val().replace(/(<([^>]+)>)/gi, ""); 265 $('#buttongroup3 span:not(.printandpdf)').text( text ); 266 var newText = $('#custom-text-no').prop('checked') ? '' : text; 265 267 $('#printfriendly-text2').html( newText ); 266 268 $('#printfriendly-text2').css('color','#' + $('#text_color').val()); -
printfriendly/tags/5.5.3/pf.php
r2951152 r2981212 6 6 Description: PrintFriendly & PDF button for your website. Optimizes your pages and brand for print, pdf, and email. 7 7 Name and URL are included to ensure repeat visitors and new visitors when printed versions are shared. 8 Version: 5.5. 18 Version: 5.5.2 9 9 Author: Print, PDF, & Email by PrintFriendly 10 10 Author URI: https://www.printfriendly.com … … 41 41 * @var string 42 42 */ 43 var $plugin_version = '5.5. 1';43 var $plugin_version = '5.5.2'; 44 44 /** 45 45 * The hook, used for text domain as well as hooks on pages and in get requests for admin. … … 733 733 if (! isset($input['custom_text'])) { 734 734 $valid_input['custom_text'] = 'Print Friendly'; 735 } else { 736 $valid_input['custom_text'] = $this->esc_html_if_needed($valid_input['custom_text']); 735 737 } 736 738 … … 1607 1609 } 1608 1610 1611 /** 1612 * Previously, users with capability unfiltered_html were allowed to use raw HTML. 1613 * But now, the input for all users is sanitized. 1614 */ 1609 1615 function esc_html_if_needed($input) 1610 1616 { 1611 if (current_user_can('unfiltered_html')) { 1612 return $input; 1613 } else { 1614 return esc_html($input); 1615 } 1617 $final = esc_html(strip_tags($input)); 1618 return $final; 1616 1619 } 1617 1620 -
printfriendly/tags/5.5.3/readme.txt
r2951152 r2981212 145 145 == Changelog == 146 146 147 = 5.5.2 = 148 * Fixed custom button input 149 147 150 = 5.5.1 = 148 151 * Tested against 6.3 -
printfriendly/trunk/assets/js/admin.js
r2858862 r2981212 261 261 262 262 function custom_text_change(){ 263 $('#buttongroup3 span:not(.printandpdf)').text( $('#custom_text').val() ); 264 var newText = $('#custom-text-no').prop('checked') ? '' : $('#custom_text').val(); 263 // remove html tags 264 var text = $('#custom_text').val().replace(/(<([^>]+)>)/gi, ""); 265 $('#buttongroup3 span:not(.printandpdf)').text( text ); 266 var newText = $('#custom-text-no').prop('checked') ? '' : text; 265 267 $('#printfriendly-text2').html( newText ); 266 268 $('#printfriendly-text2').css('color','#' + $('#text_color').val()); -
printfriendly/trunk/pf.php
r2951152 r2981212 6 6 Description: PrintFriendly & PDF button for your website. Optimizes your pages and brand for print, pdf, and email. 7 7 Name and URL are included to ensure repeat visitors and new visitors when printed versions are shared. 8 Version: 5.5. 18 Version: 5.5.2 9 9 Author: Print, PDF, & Email by PrintFriendly 10 10 Author URI: https://www.printfriendly.com … … 41 41 * @var string 42 42 */ 43 var $plugin_version = '5.5. 1';43 var $plugin_version = '5.5.2'; 44 44 /** 45 45 * The hook, used for text domain as well as hooks on pages and in get requests for admin. … … 733 733 if (! isset($input['custom_text'])) { 734 734 $valid_input['custom_text'] = 'Print Friendly'; 735 } else { 736 $valid_input['custom_text'] = $this->esc_html_if_needed($valid_input['custom_text']); 735 737 } 736 738 … … 1607 1609 } 1608 1610 1611 /** 1612 * Previously, users with capability unfiltered_html were allowed to use raw HTML. 1613 * But now, the input for all users is sanitized. 1614 */ 1609 1615 function esc_html_if_needed($input) 1610 1616 { 1611 if (current_user_can('unfiltered_html')) { 1612 return $input; 1613 } else { 1614 return esc_html($input); 1615 } 1617 $final = esc_html(strip_tags($input)); 1618 return $final; 1616 1619 } 1617 1620 -
printfriendly/trunk/readme.txt
r2951152 r2981212 145 145 == Changelog == 146 146 147 = 5.5.2 = 148 * Fixed custom button input 149 147 150 = 5.5.1 = 148 151 * Tested against 6.3
Note: See TracChangeset
for help on using the changeset viewer.