From e3366b8a40b683b3d86abd91ad34f8a8b9d2e23b Mon Sep 17 00:00:00 2001 From: Aleksandar Atanasov Date: Thu, 26 Jun 2025 14:40:05 +0300 Subject: [PATCH 1/2] Set the cron job feature and cron tasks to off by default; add FAQ text --- php/class-cron.php | 10 +++++----- ui-definitions/settings-pages.php | 9 +++++++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/php/class-cron.php b/php/class-cron.php index c24455112..5f3923dd6 100644 --- a/php/class-cron.php +++ b/php/class-cron.php @@ -99,7 +99,7 @@ public function __construct() { */ public function add_settings( $settings ) { - $enabled = apply_filters( 'cloudinary_feature_cron_manager', false ); + $enabled = apply_filters( 'cloudinary_feature_cron_manager', true ); $settings[ self::CRON_SLUG ] = array( 'page_title' => __( 'Cron System', 'cloudinary' ), 'requires_connection' => true, @@ -115,16 +115,16 @@ public function add_settings( $settings ) { array( 'type' => 'on_off', 'title' => __( 'Enable Cron', 'cloudinary' ), - 'default' => 'on', + 'default' => 'off', 'slug' => 'enable_cron', ), array( 'type' => 'cron', 'slug' => 'tasks', 'default' => array( - 'update_asset_paths' => 'on', - 'rest_api' => 'on', - 'check_status' => 'on', + 'update_asset_paths' => 'off', + 'rest_api' => 'off', + 'check_status' => 'off', ), 'cron' => $this, ), diff --git a/ui-definitions/settings-pages.php b/ui-definitions/settings-pages.php index be8b03046..3ca4d6245 100644 --- a/ui-definitions/settings-pages.php +++ b/ui-definitions/settings-pages.php @@ -446,10 +446,15 @@ 'collapsible' => 'closed', 'content' => sprintf( // translators: The HTML markup. - __( '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' ), + __( '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' ), '

', '', - '' + '', + '', + '', + '', + '', + 'rest_api' ), ), array( From fb69f32576ca18b8ae273ff4aa52f20a0aa247b9 Mon Sep 17 00:00:00 2001 From: Aleksandar Atanasov Date: Fri, 27 Jun 2025 10:00:35 +0300 Subject: [PATCH 2/2] Update POT file --- languages/cloudinary.pot | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/languages/cloudinary.pot b/languages/cloudinary.pot index 1954aaac7..741a7f2d0 100644 --- a/languages/cloudinary.pot +++ b/languages/cloudinary.pot @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: Cloudinary STABLETAG\n" "Report-Msgid-Bugs-To: https://github.com/cloudinary/cloudinary_wordpress\n" -"POT-Creation-Date: 2025-05-29 05:42:10+00:00\n" +"POT-Creation-Date: 2025-06-27 06:59:54+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -2158,14 +2158,21 @@ msgid "" "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." +"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." msgstr "" -#: ui-definitions/settings-pages.php:457 +#: ui-definitions/settings-pages.php:462 msgid "Does Cloudinary work on multilingual sites?" msgstr "" -#: ui-definitions/settings-pages.php:461 +#: ui-definitions/settings-pages.php:466 #. translators: The HTML markup. msgid "" "Absolutely! Cloudinary is fully compatible with WPML, the leading WordPress " @@ -2175,13 +2182,13 @@ msgid "" "visit %1$sWPML's official page%2$s on Cloudinary compatibility." msgstr "" -#: ui-definitions/settings-pages.php:468 +#: ui-definitions/settings-pages.php:473 msgid "" "I'm having an incompatibility issue with a theme, plugin, or hosting " "environment, what can I do?" msgstr "" -#: ui-definitions/settings-pages.php:473 +#: ui-definitions/settings-pages.php:478 #. translators: The HTML markup. msgid "" "We’re compatible with most other plugins so we expect it to work absolutely " @@ -2189,11 +2196,11 @@ msgid "" "who will help resolve your issue." msgstr "" -#: ui-definitions/settings-pages.php:481 +#: ui-definitions/settings-pages.php:486 msgid "Can I use the Cloudinary plugin for my eCommerce websites?" msgstr "" -#: ui-definitions/settings-pages.php:485 +#: ui-definitions/settings-pages.php:490 #. translators: The HTML markup. msgid "" "Yes, the Cloudinary plugin has full support for WooCommerce. We also have " @@ -2201,11 +2208,11 @@ msgid "" "%1$sProduct Gallery%2$s." msgstr "" -#: ui-definitions/settings-pages.php:492 +#: ui-definitions/settings-pages.php:497 msgid "Why are my images loading locally and not from Cloudinary?" msgstr "" -#: ui-definitions/settings-pages.php:496 +#: ui-definitions/settings-pages.php:501 #. translators: The HTML markup. msgid "" "Your images may be loading locally for a number of reasons:%1$sThe asset " @@ -2216,21 +2223,21 @@ msgid "" "assets in the %5$sWordPress Media Library%4$s.%6$s" msgstr "" -#: ui-definitions/settings-pages.php:507 +#: ui-definitions/settings-pages.php:512 msgid "How do I handle a CLDBind error which is causing issues with lazy loading?" msgstr "" -#: ui-definitions/settings-pages.php:509 +#: ui-definitions/settings-pages.php:514 msgid "" "The Cloudinary lazy loading scripts must be loaded in the page head. Ensure " "your site or any 3rd party plugins are not setup to move these scripts." msgstr "" -#: ui-definitions/settings-pages.php:523 +#: ui-definitions/settings-pages.php:528 msgid "Debug log" msgstr "" -#: ui-definitions/settings-pages.php:530 +#: ui-definitions/settings-pages.php:535 msgid "Edit asset" msgstr ""