Print, PDF, Email by PrintFriendly - Version 3.3.1

Version Description

  • SSL Support bug fixes.
Download this release

Release Info

Developer printfriendly
Plugin Icon 128x128 Print, PDF, Email by PrintFriendly
Version 3.3.1
Comparing to
See all releases

Code changes from version 3.3.0 to 3.3.1

Files changed (2) hide show
  1. pf.php +9 -5
  2. readme.txt +3 -1
pf.php CHANGED
@@ -5,11 +5,12 @@ Plugin Name: Print Friendly and PDF
5
  Plugin URI: http://www.printfriendly.com
6
  Description: PrintFriendly & PDF button for your website. Optimizes your pages and brand for print, pdf, and email.
7
  Name and URL are included to ensure repeat visitors and new visitors when printed versions are shared.
8
- Version: 3.3.0
9
  Author: Print Friendly
10
  Author URI: http://www.PrintFriendly.com
11
 
12
  Changelog :
 
13
  3.3.0 - Printfriendly custom commands support and PF Algo V6 release.
14
  3.2.10 - Fixed Bug.
15
  3.2.9 - Added Support for Google Analytics
@@ -275,9 +276,6 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
275
  }
276
 
277
  // Currently we use v3 for both: normal and password protected sites
278
- $pf_src = 'http://cdn.printfriendly.com/printfriendly.js';
279
- if($this->options['website_protocol'] == 'https')
280
- $pf_src = 'https://pf-cdn.printfriendly.com/ssl/main.js';
281
 
282
 
283
  ?>
@@ -294,7 +292,13 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
294
 
295
  // PrintFriendly
296
  var e = document.createElement('script'); e.type="text/javascript";
297
- e.src = '<?php echo esc_js(esc_url_raw($pf_src)); ?>';
 
 
 
 
 
 
298
  document.getElementsByTagName('head')[0].appendChild(e);
299
  </script>
300
  <?php
5
  Plugin URI: http://www.printfriendly.com
6
  Description: PrintFriendly & PDF button for your website. Optimizes your pages and brand for print, pdf, and email.
7
  Name and URL are included to ensure repeat visitors and new visitors when printed versions are shared.
8
+ Version: 3.3.1
9
  Author: Print Friendly
10
  Author URI: http://www.PrintFriendly.com
11
 
12
  Changelog :
13
+ 3.3.1 - SSL support issue.
14
  3.3.0 - Printfriendly custom commands support and PF Algo V6 release.
15
  3.2.10 - Fixed Bug.
16
  3.2.9 - Added Support for Google Analytics
276
  }
277
 
278
  // Currently we use v3 for both: normal and password protected sites
 
 
 
279
 
280
 
281
  ?>
292
 
293
  // PrintFriendly
294
  var e = document.createElement('script'); e.type="text/javascript";
295
+ if('https:' == document.location.protocol) {
296
+ js='https://pf-cdn.printfriendly.com/ssl/main.js'
297
+ }
298
+ else{
299
+ js='http://cdn.printfriendly.com/printfriendly.js'
300
+ }
301
+ e.src = js;
302
  document.getElementsByTagName('head')[0].appendChild(e);
303
  </script>
304
  <?php
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: printfriendly,joostdevalk, jrf
3
  Tags: print, pdf, printer, printing, printable, widget, plugin
4
  Requires at least: 2.8
5
  Tested up to: 3.6
6
- Stable tag: 3.3.0
7
 
8
 
9
  The #1 Print and PDF button for your WordPress site. Printer Friendly pages without coding, css, or print.css. Fast, easy, and professional.
@@ -99,6 +99,8 @@ If you have any other issues with the plugin or the PrintFriendly widget, please
99
 
100
  == Changelog ==
101
 
 
 
102
 
103
  = 3.3.0 =
104
 
3
  Tags: print, pdf, printer, printing, printable, widget, plugin
4
  Requires at least: 2.8
5
  Tested up to: 3.6
6
+ Stable tag: 3.3.1
7
 
8
 
9
  The #1 Print and PDF button for your WordPress site. Printer Friendly pages without coding, css, or print.css. Fast, easy, and professional.
99
 
100
  == Changelog ==
101
 
102
+ = 3.3.1 =
103
+ * SSL Support bug fixes.
104
 
105
  = 3.3.0 =
106