Skip to content

Commit e3366b8

Browse files
committed
Set the cron job feature and cron tasks to off by default; add FAQ text
1 parent 3a06a47 commit e3366b8

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

php/class-cron.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function __construct() {
9999
*/
100100
public function add_settings( $settings ) {
101101

102-
$enabled = apply_filters( 'cloudinary_feature_cron_manager', false );
102+
$enabled = apply_filters( 'cloudinary_feature_cron_manager', true );
103103
$settings[ self::CRON_SLUG ] = array(
104104
'page_title' => __( 'Cron System', 'cloudinary' ),
105105
'requires_connection' => true,
@@ -115,16 +115,16 @@ public function add_settings( $settings ) {
115115
array(
116116
'type' => 'on_off',
117117
'title' => __( 'Enable Cron', 'cloudinary' ),
118-
'default' => 'on',
118+
'default' => 'off',
119119
'slug' => 'enable_cron',
120120
),
121121
array(
122122
'type' => 'cron',
123123
'slug' => 'tasks',
124124
'default' => array(
125-
'update_asset_paths' => 'on',
126-
'rest_api' => 'on',
127-
'check_status' => 'on',
125+
'update_asset_paths' => 'off',
126+
'rest_api' => 'off',
127+
'check_status' => 'off',
128128
),
129129
'cron' => $this,
130130
),

ui-definitions/settings-pages.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,10 +446,15 @@
446446
'collapsible' => 'closed',
447447
'content' => sprintf(
448448
// translators: The HTML markup.
449-
__( 'To function correctly, the Cloudinary plugin requires an active WordPress REST API connection. Ensure your WordPress setup, including multisite or headless configurations, has the REST API enabled and active for seamless plugin operation.%1$sFor more information, see %2$sWordPress’s REST API Handbook%3$s.', 'cloudinary' ),
449+
__( 'To function correctly, the Cloudinary plugin requires an active WordPress REST API connection. Ensure your WordPress setup, including multisite or headless configurations, has the REST API enabled and active for seamless plugin operation.%1$sFor more information, see %2$sWordPress’s REST API Handbook%3$s.%1$sTo manually verify your REST API connection, you can temporarily enable the %5$sCloudinary Cron%6$s feature from %4$sthe plugin’s Cron admin page%3$s. Once enabled, activate the %8$s task. When the cron runs for the first time, any connectivity issues will trigger an admin notice.%1$s%7$s%5$s Important%6$s: Enabling the Cron feature starts a recurring background process. Unless you’re actively using it for diagnostics or testing, we %5$sstrongly recommend disabling%6$s this feature to avoid generating unnecessary requests or load on your site.', 'cloudinary' ),
450450
'<br><br>',
451451
'<a href="https://developer.wordpress.org/rest-api/" target="_blank" rel="noopener noreferrer">',
452-
'</a>'
452+
'</a>',
453+
'<a href="' . add_query_arg( array( 'page' => 'cloudinary&section=cron_system' ), admin_url( 'admin.php' ) ) . '">',
454+
'<strong>',
455+
'</strong>',
456+
'<span style="color: #b0b000; font-size: 18px">&#9888;</span>',
457+
'<span style="background: #e8e9e8; padding-inline: 2px;">rest_api</span>'
453458
),
454459
),
455460
array(

0 commit comments

Comments
 (0)