Plugin Directory

Changeset 3779921


Ignore:
Timestamp:
11/02/2026 01:51:53 PM (10 hours ago)
Author:
motqan
Message:

Release 2.8.5

Location:
motqan-connector
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • motqan-connector/tags/2.8.5/includes/rest.php

    r3779758 r3779921  
    314314            'updater'            => function_exists('motqan_update_info') ? motqan_update_info() : null,
    315315            '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(),
    317317            'translation_plugin' => $plugin,
    318318        ], 200);
    … …  
    358358        // WordPress.org store, which ships without the self-updater and updates through the store).
    359359        'channel'               => function_exists('motqan_update_info') ? 'direct' : 'wporg',
    360         // WordPress's own automatic updates on for this plugin (direct build only; null in the store
    361         // 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(),
    363363        'translation_plugin'    => $plugin,
    364364        'ml_enabled'            => motqan_ml_enabled(),
    … …  
    17091709    return new WP_REST_Response(['ok' => true, 'written' => $written, 'skipped' => $skipped, 'language' => $tp_lang], 200);
    17101710}
     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 */
     1717function 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  
    33 * Plugin Name: Motqan Connector
    44 * 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.4
     5 * Version: 2.8.5
    66 * Author: Motqan
    77 * Author URI: https://motqan.ai/
    … …  
    1717}
    1818
    19 const MOTQAN_VERSION = '2.8.4';
     19const MOTQAN_VERSION = '2.8.5';
    2020
    2121/* ---- Connector (webhook + bridge) storage ---- */
  • motqan-connector/tags/2.8.5/readme.txt

    r3779758 r3779921  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 2.8.4
     7Stable tag: 2.8.5
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    7777
    7878== 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.
    7982
    8083= 2.8.4 =
  • motqan-connector/trunk/includes/rest.php

    r3779758 r3779921  
    314314            'updater'            => function_exists('motqan_update_info') ? motqan_update_info() : null,
    315315            '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(),
    317317            'translation_plugin' => $plugin,
    318318        ], 200);
    … …  
    358358        // WordPress.org store, which ships without the self-updater and updates through the store).
    359359        'channel'               => function_exists('motqan_update_info') ? 'direct' : 'wporg',
    360         // WordPress's own automatic updates on for this plugin (direct build only; null in the store
    361         // 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(),
    363363        'translation_plugin'    => $plugin,
    364364        'ml_enabled'            => motqan_ml_enabled(),
    … …  
    17091709    return new WP_REST_Response(['ok' => true, 'written' => $written, 'skipped' => $skipped, 'language' => $tp_lang], 200);
    17101710}
     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 */
     1717function 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  
    33 * Plugin Name: Motqan Connector
    44 * 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.4
     5 * Version: 2.8.5
    66 * Author: Motqan
    77 * Author URI: https://motqan.ai/
    … …  
    1717}
    1818
    19 const MOTQAN_VERSION = '2.8.4';
     19const MOTQAN_VERSION = '2.8.5';
    2020
    2121/* ---- Connector (webhook + bridge) storage ---- */
  • motqan-connector/trunk/readme.txt

    r3779758 r3779921  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 2.8.4
     7Stable tag: 2.8.5
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    7777
    7878== 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.
    7982
    8083= 2.8.4 =
Note: See TracChangeset for help on using the changeset viewer.