Version Description
Download this release
Release Info
Developer | fullofcaffeine |
Plugin | Full Site Editing |
Version | 3.7041 |
Comparing to | |
See all releases |
Code changes from version 3.6984 to 3.7041
- error-reporting/index.php +1 -49
- full-site-editing-plugin.php +2 -2
- readme.txt +1 -1
error-reporting/index.php
CHANGED
@@ -68,50 +68,6 @@ function activate_error_reporting() {
|
|
68 |
add_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\enqueue_script', 99 );
|
69 |
}
|
70 |
|
71 |
-
/**
|
72 |
-
* Temporary function to feature flag by segment. We'll be gradually testing
|
73 |
-
* it on production simple sites, observing how it works and and gradually
|
74 |
-
* increase the segment until we reach 100 and eventually just remove this logic.
|
75 |
-
*
|
76 |
-
* It's important to note that we'll only gradually roll-out for simple sites.
|
77 |
-
* Once we're confident enough it works well on simple-sites, we'll work on
|
78 |
-
* addressing issues that are preventing this module from working on WoA, test
|
79 |
-
* on real AT sites and finally deploy the plugin to WoA while removing the
|
80 |
-
* guard above that prevents it from loading on WoA. The reason for that in WoA
|
81 |
-
* it's actually trivial to test a custom build in production without affecting
|
82 |
-
* other customers, and on simple sites, it's not, hence the need for a gradual
|
83 |
-
* roll-out as an additional safety measure.
|
84 |
-
*
|
85 |
-
* @todo Remove once the roll-out is complete.
|
86 |
-
*
|
87 |
-
* @param int $user_id the user id.
|
88 |
-
* @return bool
|
89 |
-
*/
|
90 |
-
function user_in_test_segment( $user_id ) {
|
91 |
-
$current_segment = 25; // segment of existing users that will get this feature in %.
|
92 |
-
$user_segment = $user_id % 100;
|
93 |
-
|
94 |
-
// We get the last two digits of the user id and that will be used to decide in what
|
95 |
-
// segment the user is. i.e if current_segment is 10, then only ids that end in < 10
|
96 |
-
// will be considered part of the segment.
|
97 |
-
return $user_segment < $current_segment;
|
98 |
-
}
|
99 |
-
|
100 |
-
/**
|
101 |
-
* Returns whether or not the user is an automattician, but first verifies
|
102 |
-
* if the function `is_automattician` exists in the current context. If not,
|
103 |
-
* then we consider the user to not be an automattician. This guard is needed
|
104 |
-
* because this function is not present in some envs, namely the testing env.
|
105 |
-
*
|
106 |
-
* @todo Remove once roll-out is complete
|
107 |
-
*
|
108 |
-
* @param int $user_id the user id.
|
109 |
-
* @return bool
|
110 |
-
*/
|
111 |
-
function user_is_automattician( $user_id ) {
|
112 |
-
return function_exists( 'is_automattician' ) && is_automattician( $user_id );
|
113 |
-
}
|
114 |
-
|
115 |
/**
|
116 |
* Returns whether or not the site loading ETK is in the WoA env.
|
117 |
*
|
@@ -124,9 +80,5 @@ function is_atomic() {
|
|
124 |
// We don't want to activate this module in AT just yet. See https://wp.me/p4TIVU-9DI#comment-10922.
|
125 |
// @todo Remove once we have a version that works for WPCOM simple sites and WoA.
|
126 |
if ( ! is_atomic() ) {
|
127 |
-
|
128 |
-
$user_id = get_current_user_id();
|
129 |
-
if ( user_is_automattician( $user_id ) || user_in_test_segment( $user_id ) ) {
|
130 |
-
activate_error_reporting();
|
131 |
-
}
|
132 |
}
|
68 |
add_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\enqueue_script', 99 );
|
69 |
}
|
70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
/**
|
72 |
* Returns whether or not the site loading ETK is in the WoA env.
|
73 |
*
|
80 |
// We don't want to activate this module in AT just yet. See https://wp.me/p4TIVU-9DI#comment-10922.
|
81 |
// @todo Remove once we have a version that works for WPCOM simple sites and WoA.
|
82 |
if ( ! is_atomic() ) {
|
83 |
+
activate_error_reporting();
|
|
|
|
|
|
|
|
|
84 |
}
|
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.
|
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.
|
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.7041
|
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.7041' );
|
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.
|
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.7041
|
7 |
Requires PHP: 5.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|