Plugin Directory

Changeset 3760858


Ignore:
Timestamp:
10/23/2026 03:36:35 AM (3 weeks ago)
Author:
webandseofr
Message:

Version 0.4.2: multisite uninstall cleans up every site where the box is ticked

Location:
web-seo-autolinker/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • web-seo-autolinker/trunk/readme.txt

    r3759361 r3760858  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 0.4.1
     7Stable tag: 0.4.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    158158health checks and repair stop until you reactivate.
    159159
     160= What happens if I uninstall the plugin? =
     161
     162By default, everything is kept. Tick "Delete data on uninstall" in Settings and
     163uninstalling removes everything the plugin created, except the links already written
     164into your posts and their revisions. To take links out, revoke them before you
     165uninstall: once its data is deleted, the plugin can no longer find them. On a
     166multisite network, each site where the box is ticked is cleaned up, and sites where
     167it is not ticked keep their data. With a persistent object cache (Redis, Memcached),
     168the robots.txt rules cached by the link checker are not deleted: they expire on their
     169own within 24 hours.
     170
    160171= Can I stop it from touching a specific post? =
    161172
    … …  
    239250== Changelog ==
    240251
     252= 0.4.2 =
     253* On a multisite network, "Delete data on uninstall" now cleans up every site where the box is ticked. Until now only the main site was cleaned up, and only if its own box was ticked; the other sites kept their tables, settings and OpenAI key.
     254* No settings or database changes.
     255
    241256= 0.4.1 =
    242257* An anchor is no longer linked in the middle of a word. Until now the plugin linked the first place where the anchor appeared, so "art guide" could be linked inside "smart guide". It now skips any match glued to a letter or a digit and uses the next one that stands as whole words; when there is none, no link is placed and the journal records anchor_inside_word. Chinese, Japanese, Korean, Thai, Lao, Khmer and Burmese text, which does not separate words with spaces, is not affected.
    … …  
    312327== Upgrade Notice ==
    313328
     329= 0.4.2 =
     330On a multisite network, Delete data on uninstall now cleans up every site where the box is ticked, not only the main site. No settings or data changes.
     331
    314332= 0.4.1 =
    315333Anchors are no longer linked in the middle of a word, and the readme now lists every case in which content is sent to OpenAI. No settings or data changes.
  • web-seo-autolinker/trunk/uninstall.php

    r3758545 r3760858  
    2424
    2525function aial_run_uninstall(): void {
     26        if ( ! is_multisite() ) {
     27                aial_purge_current_site();
     28                return;
     29        }
     30
     31        // Réseau (ticket #287) : une extension ne se supprime que depuis
     32        // l'administration du réseau, et tout ce que le gratuit écrit vit dans les
     33        // tables de chaque site ($wpdb->prefix, options, metas, cron). On passe donc
     34        // sur chaque site, archivés, supprimés et spam compris : ils gardent leurs
     35        // tables et leur clé OpenAI. 'number' => 0 lève la limite de 100 de get_sites().
     36        // La case est lue site par site par aial_purge_current_site() : chaque site
     37        // décide pour lui-même, celle du site principal ne vaut pas pour le réseau.
     38        $blog_ids = get_sites(
     39                array(
     40                        'fields' => 'ids',
     41                        'number' => 0,
     42                )
     43        );
     44        foreach ( $blog_ids as $blog_id ) {
     45                switch_to_blog( (int) $blog_id );
     46                aial_purge_current_site();
     47                restore_current_blog();
     48        }
     49}
     50
     51function aial_purge_current_site(): void {
    2652        // Par défaut on conserve tout : le maillage est permanent et vit dans le contenu.
    2753        if ( ! AIAL_Settings::get( 'drop_data_on_uninstall', false ) ) {
  • web-seo-autolinker/trunk/web-seo-autolinker.php

    r3759361 r3760858  
    33 * Plugin Name: Web & SEO Autolinker - AI Internal Linking
    44 * Description: AI-powered permanent internal linking. Direct OpenAI embeddings + GPT anchor selection.
    5  * Version: 0.4.1
     5 * Version: 0.4.2
    66 * Requires at least: 6.2
    77 * Requires PHP: 7.4
    … …  
    1717}
    1818
    19 define( 'AIAL_VERSION', '0.4.1' );
     19define( 'AIAL_VERSION', '0.4.2' );
    2020define( 'AIAL_PLUGIN_FILE', __FILE__ );
    2121define( 'AIAL_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.