Full Site Editing - Version 3.23548

Version Description

Download this release

Release Info

Developer fullofcaffeine
Plugin Icon wp plugin Full Site Editing
Version 3.23548
Comparing to
See all releases

Code changes from version 3.23443 to 3.23548

error-reporting/index.php CHANGED
@@ -7,6 +7,23 @@
7
 
8
  namespace A8C\FSE\ErrorReporting;
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  /**
11
  * Inline error handler that will capture errors before
12
  * the main handler has a chance to. Errors are pushed
@@ -60,15 +77,6 @@ function user_in_sentry_test_segment( $user_id ) {
60
  return $user_segment < $current_segment;
61
  }
62
 
63
- /**
64
- * Returns whether or not the site loading ETK is in the WoA env.
65
- *
66
- * @return bool
67
- */
68
- function is_atomic() {
69
- return defined( 'IS_ATOMIC' ) && IS_ATOMIC;
70
- }
71
-
72
  /**
73
  * Return whether Sentry should be activated for a given user.
74
  *
@@ -127,8 +135,6 @@ function setup_error_reporting() {
127
  add_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\enqueue_script', 99 );
128
  }
129
 
130
- // We don't want to activate this module in AT just yet. See https://wp.me/p4TIVU-9DI#comment-10922.
131
- // @todo Remove once we have a version that works for WPCOM simple sites and WoA.
132
- if ( ! is_atomic() ) {
133
  setup_error_reporting();
134
  }
7
 
8
  namespace A8C\FSE\ErrorReporting;
9
 
10
+ /**
11
+ * Whether or not the site is eligible for Error Reporting, which is a feature that's
12
+ * specific to WPCOM.
13
+ *
14
+ * By default, sites should not be eligible.
15
+ *
16
+ * @return bool True if current site is eligible for error reporting, false otherwise.
17
+ */
18
+ function is_site_eligible_for_error_reporting() {
19
+ /**
20
+ * Can be used to toggle the Error Reporting functionality.
21
+ *
22
+ * @param bool true if Error Reporting should be enabled, false otherwise.
23
+ */
24
+ return apply_filters( 'a8c_enable_error_reporting', false );
25
+ }
26
+
27
  /**
28
  * Inline error handler that will capture errors before
29
  * the main handler has a chance to. Errors are pushed
77
  return $user_segment < $current_segment;
78
  }
79
 
 
 
 
 
 
 
 
 
 
80
  /**
81
  * Return whether Sentry should be activated for a given user.
82
  *
135
  add_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\enqueue_script', 99 );
136
  }
137
 
138
+ if ( is_site_eligible_for_error_reporting() ) {
 
 
139
  setup_error_reporting();
140
  }
full-site-editing-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
- * Version: 3.23443
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
@@ -42,7 +42,7 @@ namespace A8C\FSE;
42
  *
43
  * @var string
44
  */
45
- define( 'A8C_ETK_PLUGIN_VERSION', '3.23443' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
+ * Version: 3.23548
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
42
  *
43
  * @var string
44
  */
45
+ define( 'A8C_ETK_PLUGIN_VERSION', '3.23548' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
- Stable tag: 3.23443
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
+ Stable tag: 3.23548
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html