Print, PDF, Email by PrintFriendly - Version 3.8.2

Version Description

Download this release

Release Info

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

Code changes from version 3.8.0 to 3.8.2

Files changed (2) hide show
  1. pf.php +7 -4
  2. readme.txt +4 -1
pf.php CHANGED
@@ -5,11 +5,12 @@ Plugin Name: Print, PDF & Email by PrintFriendly
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.8.0
9
  Author: Print, PDF, & Email by PrintFriendly
10
  Author URI: http://www.PrintFriendly.com
11
 
12
  Changelog :
 
13
  3.8.0 - Add automatic error reporting.
14
  3.7.6 - WooCommerce support improvments: remove upsells from print preview.
15
  3.7.5 - WooCommerce support improvments: fix DOMDocument.loadHTML warnings.
@@ -105,7 +106,7 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
105
  * Current plugin version.
106
  * @var string
107
  */
108
- var $plugin_version = '3.8.0';
109
 
110
  /**
111
  * The hook, used for text domain as well as hooks on pages and in get requests for admin.
@@ -172,8 +173,10 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
172
  ));
173
 
174
  $this->raven_client->setSendCallback(function($data) {
175
- if (isset($data['exception']) && !preg_match('/pf.php/', json_encode($data['exception']))) {
176
- return false;
 
 
177
  }
178
  });
179
 
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.8.2
9
  Author: Print, PDF, & Email by PrintFriendly
10
  Author URI: http://www.PrintFriendly.com
11
 
12
  Changelog :
13
+ 3.8.1 - Improve automatic error reporting.
14
  3.8.0 - Add automatic error reporting.
15
  3.7.6 - WooCommerce support improvments: remove upsells from print preview.
16
  3.7.5 - WooCommerce support improvments: fix DOMDocument.loadHTML warnings.
106
  * Current plugin version.
107
  * @var string
108
  */
109
+ var $plugin_version = '3.8.2';
110
 
111
  /**
112
  * The hook, used for text domain as well as hooks on pages and in get requests for admin.
173
  ));
174
 
175
  $this->raven_client->setSendCallback(function($data) {
176
+ // Send only if pf.php last in stacktrace
177
+ if (isset($data['exception']['values'][0]['stacktrace']['frames'])) {
178
+ $last_frame = array_values(array_slice($data['exception']['values'][0]['stacktrace']['frames'], -1))[0];
179
+ return isset($last_frame['filename']) && preg_match('/printfriendly/', $last_frame['filename']);
180
  }
181
  });
182
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: printfriendly,joostdevalk, jrf
3
  Tags: print, pdf, email, print button, wp-print, print recipe, print post, print page, print widget, print plugin, printable, wp-pdf, pdf post, pdf page, pdf button, pdf widget, pdf plugin, woocommerce print, woocommerce pdf
4
  Requires at least: 2.8
5
  Tested up to: 4.7
6
- Stable tag: 3.8.0
7
 
8
 
9
  The #1 Print, PDF, Email button. Stylish, full featured, customizable. Add custom header, footer, and more.
@@ -140,6 +140,9 @@ You can [hide the Print, PDF, and Email button](https://support.printfriendly.co
140
 
141
  == Changelog ==
142
 
 
 
 
143
  = 3.8.0 =
144
  * Add automatic error reporting.
145
 
3
  Tags: print, pdf, email, print button, wp-print, print recipe, print post, print page, print widget, print plugin, printable, wp-pdf, pdf post, pdf page, pdf button, pdf widget, pdf plugin, woocommerce print, woocommerce pdf
4
  Requires at least: 2.8
5
  Tested up to: 4.7
6
+ Stable tag: 3.8.2
7
 
8
 
9
  The #1 Print, PDF, Email button. Stylish, full featured, customizable. Add custom header, footer, and more.
140
 
141
  == Changelog ==
142
 
143
+ = 3.8.1 =
144
+ * Improve automatic error reporting.
145
+
146
  = 3.8.0 =
147
  * Add automatic error reporting.
148