You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add: New Health checks
To improve the onboarding experience!
* no need to deactivate crons
* explain the issue with threaded comments
* Add changelog
* fix phpcs issues
* Update includes/wp-admin/class-health-check.php
Co-authored-by: Konstantin Obenland <[email protected]>
* Update includes/wp-admin/class-health-check.php
Co-authored-by: Konstantin Obenland <[email protected]>
* simplify text
props @obenland
* Update includes/wp-admin/class-health-check.php
Co-authored-by: Konstantin Obenland <[email protected]>
* Update includes/wp-admin/class-health-check.php
Co-authored-by: Konstantin Obenland <[email protected]>
---------
Co-authored-by: Konstantin Obenland <[email protected]>
\esc_html__( 'You seem to use the System Task Scheduler to process WP_Cron tasks.', 'activitypub' )
154
-
),
155
-
'actions' => '',
156
-
'test' => 'test_system_cron',
157
-
);
158
-
159
-
if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) {
160
-
return$result;
161
-
}
162
-
163
-
$result['status'] = 'recommended';
164
-
$result['label'] = \__( 'System Task Scheduler not configured', 'activitypub' );
165
-
$result['badge']['color'] = 'orange';
166
-
$result['description'] = \sprintf(
167
-
'<p>%s</p>',
168
-
\__( 'Enhance your WordPress site’s performance and mitigate potential heavy loads caused by plugins like ActivityPub by setting up a system cron job to run WP Cron. This ensures scheduled tasks are executed consistently and reduces the reliance on website traffic for trigger events.', 'activitypub' )
\__( 'Threaded (nested) comments are enabled.', 'activitypub' )
366
+
),
367
+
'actions' => '',
368
+
'test' => 'test_threaded_comments',
369
+
);
370
+
371
+
if ( '1' !== get_option( 'thread_comments', '0' ) ) {
372
+
$result['status'] = 'recommended';
373
+
$result['label'] = \__( 'Threaded (nested) comments are not enabled', 'activitypub' );
374
+
$result['badge']['color'] = 'orange';
375
+
$result['description'] = \sprintf(
376
+
'<p>%s</p><p>%s</p>',
377
+
\__( 'This is particularly important for fediverse users, as they rely on the visual hierarchy to understand conversation threads across different platforms. Without threaded comments, it becomes much more difficult to follow discussions that span multiple platforms in the fediverse.', 'activitypub' ),
378
+
\sprintf(
379
+
// translators: %s: Discussion settings URL.
380
+
\__( 'You can enable them in the <a href="%s">Discussion Settings</a>.', 'activitypub' ),
$result['label'] = \__( 'Pretty Permalinks are not enabled.', 'activitypub' );
414
+
$result['badge']['color'] = 'red';
415
+
$result['description'] = \sprintf(
416
+
'<p>%s</p>',
417
+
sprintf(
418
+
/* translators: %s: Permalink settings URL. */
419
+
\__( 'ActivityPub needs SEO-friendly URLs to work properly. Please <a href="%s">update your permalink structure</a> to an option other than Plain.', 'activitypub' ),
0 commit comments