Skip to content

Commit 56b0eda

Browse files
authored
Merge branch 'develop' into feature/environment-indicator
2 parents 00baf4c + 6a15dbe commit 56b0eda

File tree

5 files changed

+420
-22
lines changed

5 files changed

+420
-22
lines changed

10up-experience.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: 10up Experience
44
* Plugin URI: https://github.com/10up/10up-experience
55
* Description: The 10up Experience plugin configures WordPress to better protect and inform clients, aligned to 10up’s best practices.
6-
* Version: 1.11.2
6+
* Version: 1.12.0
77
* Author: 10up
88
* Author URI: https://10up.com
99
* License: GPLv2 or later
@@ -19,7 +19,7 @@
1919

2020
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
2121

22-
define( 'TENUP_EXPERIENCE_VERSION', '1.11.2' );
22+
define( 'TENUP_EXPERIENCE_VERSION', '1.12.0' );
2323
define( 'TENUP_EXPERIENCE_DIR', __DIR__ );
2424
define( 'TENUP_EXPERIENCE_FILE', __FILE__ );
2525

@@ -74,6 +74,7 @@ function ( $class_name ) {
7474
API\API::instance();
7575
Authentication\Usernames::instance();
7676
Authors\Authors::instance();
77+
Comments\Comments::instance();
7778
Gutenberg\Gutenberg::instance();
7879
Headers\Headers::instance();
7980
Plugins\Plugins::instance();

README.md

+48
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,58 @@ Filters how many log items to store. Items are stored in array saved to the opti
143143

144144
Define `TENUP_DISABLE_ACTIVITYLOG` as `true` to disable Activity Log.
145145

146+
146147
### Environment Indicator
147148

148149
To enhance user awareness and minimize the risk of making unintended changes, 10up Experience includes a visual indicator integrated into the admin bar. This feature clearly displays which environment (e.g., development, staging, production) the user is currently working in.
149150

151+
152+
### Comments
153+
154+
10up Experience includes a feature to disable comments across the site. This feature can be enabled or disabled in `Settings > General`. It is disabled by default.
155+
156+
On top of disabling the comment form, this feature removes the following:
157+
158+
- Comments from the admin menu.
159+
- Comment blocks from the post editor.
160+
- Comments from the admin bar.
161+
162+
#### Constants
163+
164+
- `TENUP_DISABLE_COMMENTS`
165+
166+
Define this as `true` to force disable comments or `false` to enable comments from a config file.
167+
Setting this constant will disable the UI for enabling/disabling comments in the admin.
168+
169+
#### Filters
170+
171+
- `tenup_experience_disable_comments`
172+
173+
Filters whether to disable comments. Default is `false`.
174+
Defining this filter will disable the UI for enabling/disabling comments in the admin.
175+
176+
- `tenup_experience_disable_comments_disallowed_blocks`
177+
178+
Filters the list of blocks that should be disallowed when comments are disabled. This is useful when core adds new blocks that aren't covered by the default list.
179+
180+
The default list of disallowed blocks is:
181+
182+
- `core/comment-author-name`
183+
- `core/comment-content`
184+
- `core/comment-date`
185+
- `core/comment-edit-link`
186+
- `core/comment-reply-link`
187+
- `core/comment-template`
188+
- `core/comments`
189+
- `core/comments-pagination`
190+
- `core/comments-pagination-next`
191+
- `core/comments-pagination-numbers`
192+
- `core/comments-pagination-previous`
193+
- `core/comments-title`
194+
- `core/post-comments`
195+
- `core/post-comments-form`
196+
- `core/latest-comments`
197+
150198
## Support Level
151199

152200
**Active:** 10up is actively working on this, and we expect to continue work for the foreseeable future including keeping tested up to the most recent version of WordPress. Bug reports, feature requests, questions, and pull requests are welcome.

0 commit comments

Comments
 (0)