Changeset 3779921
- Timestamp:
- 11/02/2026 01:51:53 PM (10 hours ago)
- Location:
- motqan-connector
- Files:
-
- 6 edited
- 1 copied
-
tags/2.8.5 (copied) (copied from motqan-connector/trunk )
-
tags/2.8.5/includes/rest.php (modified) (3 diffs)
-
tags/2.8.5/motqan-connector.php (modified) (2 diffs)
-
tags/2.8.5/readme.txt (modified) (2 diffs)
-
trunk/includes/rest.php (modified) (3 diffs)
-
trunk/motqan-connector.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
motqan-connector/tags/2.8.5/includes/rest.php
r3779758 r3779921 314 314 'updater' => function_exists('motqan_update_info') ? motqan_update_info() : null, 315 315 'channel' => function_exists('motqan_update_info') ? 'direct' : 'wporg', 316 'auto_updates' => function_exists('motqan_auto_updates_on') ? motqan_auto_updates_on() : null,316 'auto_updates' => motqan_auto_updates_on(), 317 317 'translation_plugin' => $plugin, 318 318 ], 200); … … 358 358 // WordPress.org store, which ships without the self-updater and updates through the store). 359 359 'channel' => function_exists('motqan_update_info') ? 'direct' : 'wporg', 360 // WordPress's own automatic updates on for this plugin ( direct build only; null in the store361 // build, which leaves the update code out — Motqan then asks the owner once to turn them on).362 'auto_updates' => function_exists('motqan_auto_updates_on') ? motqan_auto_updates_on() : null,360 // WordPress's own automatic updates on for this plugin (both builds, 2.8.5+): the store build 361 // updates only through them, so Motqan asks the owner to turn them on until they are. 362 'auto_updates' => motqan_auto_updates_on(), 363 363 'translation_plugin' => $plugin, 364 364 'ml_enabled' => motqan_ml_enabled(), … … 1709 1709 return new WP_REST_Response(['ok' => true, 'written' => $written, 'skipped' => $skipped, 'language' => $tp_lang], 200); 1710 1710 } 1711 1712 /** 1713 * WordPress's own automatic updates are on for this plugin (Plugins → "Enable auto-updates", or a 1714 * host / code forcing them through the core "auto_update_plugin" filter). Only reads WordPress's 1715 * setting — the store build has no update code of its own. 1716 */ 1717 function motqan_auto_updates_on(): bool 1718 { 1719 $file = 'motqan-connector/motqan-connector.php'; 1720 $on = in_array($file, (array) get_site_option('auto_update_plugins', []), true); 1721 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- WordPress core's own filter, read only. 1722 return (bool) apply_filters('auto_update_plugin', $on, (object) ['plugin' => $file, 'slug' => 'motqan-connector']); 1723 } -
motqan-connector/tags/2.8.5/motqan-connector.php
r3779758 r3779921 3 3 * Plugin Name: Motqan Connector 4 4 * Description: Notifies Motqan instantly when a page/post is published, updated, or deleted, so it can re-translate and publish the translation back. Also organizes the translated pages by language (Polylang/WPML/Bogo/MultilingualPress/TranslatePress bridge), or — when no multilingual plugin is installed and you switch it on — acts as a full built-in multilingual plugin (language registry, switcher, hreflang/RTL, /{lang}/ routing, string/menu/widget/taxonomy translation). 5 * Version: 2.8. 45 * Version: 2.8.5 6 6 * Author: Motqan 7 7 * Author URI: https://motqan.ai/ … … 17 17 } 18 18 19 const MOTQAN_VERSION = '2.8. 4';19 const MOTQAN_VERSION = '2.8.5'; 20 20 21 21 /* ---- Connector (webhook + bridge) storage ---- */ -
motqan-connector/tags/2.8.5/readme.txt
r3779758 r3779921 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 2.8. 47 Stable tag: 2.8.5 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 77 77 78 78 == Changelog == 79 80 = 2.8.5 = 81 * The plugin tells Motqan whether WordPress's automatic updates are on for it (Plugins → Enable auto-updates), so Motqan stops asking you to turn them on once they are. 79 82 80 83 = 2.8.4 = -
motqan-connector/trunk/includes/rest.php
r3779758 r3779921 314 314 'updater' => function_exists('motqan_update_info') ? motqan_update_info() : null, 315 315 'channel' => function_exists('motqan_update_info') ? 'direct' : 'wporg', 316 'auto_updates' => function_exists('motqan_auto_updates_on') ? motqan_auto_updates_on() : null,316 'auto_updates' => motqan_auto_updates_on(), 317 317 'translation_plugin' => $plugin, 318 318 ], 200); … … 358 358 // WordPress.org store, which ships without the self-updater and updates through the store). 359 359 'channel' => function_exists('motqan_update_info') ? 'direct' : 'wporg', 360 // WordPress's own automatic updates on for this plugin ( direct build only; null in the store361 // build, which leaves the update code out — Motqan then asks the owner once to turn them on).362 'auto_updates' => function_exists('motqan_auto_updates_on') ? motqan_auto_updates_on() : null,360 // WordPress's own automatic updates on for this plugin (both builds, 2.8.5+): the store build 361 // updates only through them, so Motqan asks the owner to turn them on until they are. 362 'auto_updates' => motqan_auto_updates_on(), 363 363 'translation_plugin' => $plugin, 364 364 'ml_enabled' => motqan_ml_enabled(), … … 1709 1709 return new WP_REST_Response(['ok' => true, 'written' => $written, 'skipped' => $skipped, 'language' => $tp_lang], 200); 1710 1710 } 1711 1712 /** 1713 * WordPress's own automatic updates are on for this plugin (Plugins → "Enable auto-updates", or a 1714 * host / code forcing them through the core "auto_update_plugin" filter). Only reads WordPress's 1715 * setting — the store build has no update code of its own. 1716 */ 1717 function motqan_auto_updates_on(): bool 1718 { 1719 $file = 'motqan-connector/motqan-connector.php'; 1720 $on = in_array($file, (array) get_site_option('auto_update_plugins', []), true); 1721 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- WordPress core's own filter, read only. 1722 return (bool) apply_filters('auto_update_plugin', $on, (object) ['plugin' => $file, 'slug' => 'motqan-connector']); 1723 } -
motqan-connector/trunk/motqan-connector.php
r3779758 r3779921 3 3 * Plugin Name: Motqan Connector 4 4 * Description: Notifies Motqan instantly when a page/post is published, updated, or deleted, so it can re-translate and publish the translation back. Also organizes the translated pages by language (Polylang/WPML/Bogo/MultilingualPress/TranslatePress bridge), or — when no multilingual plugin is installed and you switch it on — acts as a full built-in multilingual plugin (language registry, switcher, hreflang/RTL, /{lang}/ routing, string/menu/widget/taxonomy translation). 5 * Version: 2.8. 45 * Version: 2.8.5 6 6 * Author: Motqan 7 7 * Author URI: https://motqan.ai/ … … 17 17 } 18 18 19 const MOTQAN_VERSION = '2.8. 4';19 const MOTQAN_VERSION = '2.8.5'; 20 20 21 21 /* ---- Connector (webhook + bridge) storage ---- */ -
motqan-connector/trunk/readme.txt
r3779758 r3779921 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 2.8. 47 Stable tag: 2.8.5 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 77 77 78 78 == Changelog == 79 80 = 2.8.5 = 81 * The plugin tells Motqan whether WordPress's automatic updates are on for it (Plugins → Enable auto-updates), so Motqan stops asking you to turn them on once they are. 79 82 80 83 = 2.8.4 =
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)