Plugin Directory

Changeset 3673942


Ignore:
Timestamp:
08/31/2026 10:57:53 AM (8 weeks ago)
Author:
haavardmk
Message:

Release 3.7.8

Location:
botspot
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • botspot/tags/3.7.8/admin/class-bspt-admin.php

    r3660719 r3673942  
    114114        register_setting("bspt_settings", "bspt_injection_position", [
    115115            "sanitize_callback" => [$this, "sanitize_position"],
    116             "default" => "bottom_of_content",
     116            "default" => Bspt_Options::DEFAULT_PLACEMENT,
    117117        ]);
    118118        register_setting("bspt_settings", "bspt_placement_anchor", [
  • botspot/tags/3.7.8/admin/partials/tab-settings.php

    r3660719 r3673942  
    2626$bspt_inject_post_types = Bspt_Options::get("inject_on_post_types", ["post", "page"]);
    2727$bspt_injection_position = Bspt_Options::migrate_placement_value(
    28     Bspt_Options::get("injection_position", "bottom_of_content")
     28    Bspt_Options::get("injection_position", Bspt_Options::DEFAULT_PLACEMENT)
    2929);
    3030$bspt_jsonld_conflict = Bspt_Options::get("jsonld_conflict_mode", "merge");
    … …  
    112112                    <span>
    113113                        <?php esc_html_e("End of the content", "botspot"); ?>
    114                         <span class="bsa-check__tag"><?php esc_html_e("recommended", "botspot"); ?></span>
    115114                    </span>
    116115                    <span class="bsa-tip" role="note">
    … …  
    120119                <label class="bsa-check bsa-check--tipped">
    121120                    <input type="radio" class="bsa-check-as-check" name="bspt_injection_position" value="bottom_of_page" <?php checked(Bspt_Options::is_footer_placement($bspt_injection_position), true); ?> />
    122                     <span><?php esc_html_e("End of the page", "botspot"); ?></span>
     121                    <span>
     122                        <?php esc_html_e("End of the page", "botspot"); ?>
     123                        <span class="bsa-check__tag"><?php esc_html_e("recommended", "botspot"); ?></span>
     124                    </span>
    123125                    <span class="bsa-tip" role="note">
    124126                        <?php esc_html_e("Below everything the theme renders, under the footer. Use this when the appendix breaks a template that wraps the post text.", "botspot"); ?>
  • botspot/tags/3.7.8/botspot.php

    r3669296 r3673942  
    33 * Plugin Name: BotSpot
    44 * Description: Push-based content sync and AI appendix injection. Syncs content to locus-core and renders JSON-LD + appendix.
    5  * Version: 3.7.7
     5 * Version: 3.7.8
    66 * Author: bot.spot Team
    77 * Author URI: https://bot.spot
    … …  
    1515 *
    1616 * @package Bspt
    17  * @version 3.7.7
     17 * @version 3.7.8
    1818 */
    1919
    … …  
    6868 * Plugin version.
    6969 */
    70 define('BSPT_VERSION', '3.7.7');
     70define('BSPT_VERSION', '3.7.8');
    7171
    7272/**
  • botspot/tags/3.7.8/includes/class-bspt-activator.php

    r3669296 r3673942  
    9292        }
    9393        if (!Bspt_Options::exists('injection_position')) {
    94             Bspt_Options::set('injection_position', 'bottom');
     94            Bspt_Options::set('injection_position', Bspt_Options::DEFAULT_PLACEMENT);
    9595        }
    9696        if (!Bspt_Options::exists('inject_on_post_types')) {
  • botspot/tags/3.7.8/includes/class-bspt-content-injector.php

    r3660719 r3673942  
    669669    private function resolve_injection_position()
    670670    {
    671         $stored = Bspt_Options::get("injection_position", "bottom_of_content");
     671        $stored = Bspt_Options::get("injection_position", Bspt_Options::DEFAULT_PLACEMENT);
    672672        return Bspt_Options::migrate_placement_value($stored);
    673673    }
  • botspot/tags/3.7.8/includes/class-bspt-options.php

    r3660719 r3673942  
    3737
    3838    /**
     39     * Placement a site gets when nothing is stored.
     40     *
     41     * Every default and fallback reads this constant. A site activated before
     42     * 3.7.8 already carries a stored value from the activator, so it keeps its
     43     * placement; only fresh activations land here.
     44     *
     45     * @since 3.7.8
     46     * @var   string
     47     */
     48    const DEFAULT_PLACEMENT = "bottom_of_page";
     49
     50    /**
    3951     * Placement values that render at wp_footer.
    4052     *
    … …  
    8395        "jsonld_enabled" => true,
    8496        "jsonld_conflict_mode" => "merge",
    85         "injection_position" => "bottom_of_content",
     97        "injection_position" => self::DEFAULT_PLACEMENT,
    8698        "placement_anchor" => null,
    8799        "inject_on_post_types" => ["post", "page"],
    … …  
    417429        }
    418430
    419         return "bottom_of_content";
     431        return self::DEFAULT_PLACEMENT;
    420432    }
    421433
  • botspot/tags/3.7.8/readme.txt

    r3669296 r3673942  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 3.7.7
     7Stable tag: 3.7.8
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    131131== Changelog ==
    132132
     133= 3.7.8 =
     134
     135* New installs now place the appendix at the end of the page instead of the end of the content. The end of the page survives page builders and themes that wrap the post text. Sites installed before this release keep the placement they already have.
     136
    133137= 3.7.7 =
    134138
    … …  
    311315== Upgrade Notice ==
    312316
     317= 3.7.8 =
     318
     319Changes the appendix placement that new installs start with, from the end of the content to the end of the page. Your existing placement is untouched.
     320
     321= 3.7.7 =
     322
     323Fixes the connection status shown on the settings screen. The header and the Connect tab could disagree, one reporting connected while the other reported disconnected. No settings change.
     324
    313325= 3.7.6 =
    314326
  • botspot/trunk/admin/class-bspt-admin.php

    r3660719 r3673942  
    114114        register_setting("bspt_settings", "bspt_injection_position", [
    115115            "sanitize_callback" => [$this, "sanitize_position"],
    116             "default" => "bottom_of_content",
     116            "default" => Bspt_Options::DEFAULT_PLACEMENT,
    117117        ]);
    118118        register_setting("bspt_settings", "bspt_placement_anchor", [
  • botspot/trunk/admin/partials/tab-settings.php

    r3660719 r3673942  
    2626$bspt_inject_post_types = Bspt_Options::get("inject_on_post_types", ["post", "page"]);
    2727$bspt_injection_position = Bspt_Options::migrate_placement_value(
    28     Bspt_Options::get("injection_position", "bottom_of_content")
     28    Bspt_Options::get("injection_position", Bspt_Options::DEFAULT_PLACEMENT)
    2929);
    3030$bspt_jsonld_conflict = Bspt_Options::get("jsonld_conflict_mode", "merge");
    … …  
    112112                    <span>
    113113                        <?php esc_html_e("End of the content", "botspot"); ?>
    114                         <span class="bsa-check__tag"><?php esc_html_e("recommended", "botspot"); ?></span>
    115114                    </span>
    116115                    <span class="bsa-tip" role="note">
    … …  
    120119                <label class="bsa-check bsa-check--tipped">
    121120                    <input type="radio" class="bsa-check-as-check" name="bspt_injection_position" value="bottom_of_page" <?php checked(Bspt_Options::is_footer_placement($bspt_injection_position), true); ?> />
    122                     <span><?php esc_html_e("End of the page", "botspot"); ?></span>
     121                    <span>
     122                        <?php esc_html_e("End of the page", "botspot"); ?>
     123                        <span class="bsa-check__tag"><?php esc_html_e("recommended", "botspot"); ?></span>
     124                    </span>
    123125                    <span class="bsa-tip" role="note">
    124126                        <?php esc_html_e("Below everything the theme renders, under the footer. Use this when the appendix breaks a template that wraps the post text.", "botspot"); ?>
  • botspot/trunk/botspot.php

    r3669296 r3673942  
    33 * Plugin Name: BotSpot
    44 * Description: Push-based content sync and AI appendix injection. Syncs content to locus-core and renders JSON-LD + appendix.
    5  * Version: 3.7.7
     5 * Version: 3.7.8
    66 * Author: bot.spot Team
    77 * Author URI: https://bot.spot
    … …  
    1515 *
    1616 * @package Bspt
    17  * @version 3.7.7
     17 * @version 3.7.8
    1818 */
    1919
    … …  
    6868 * Plugin version.
    6969 */
    70 define('BSPT_VERSION', '3.7.7');
     70define('BSPT_VERSION', '3.7.8');
    7171
    7272/**
  • botspot/trunk/includes/class-bspt-activator.php

    r3669296 r3673942  
    9292        }
    9393        if (!Bspt_Options::exists('injection_position')) {
    94             Bspt_Options::set('injection_position', 'bottom');
     94            Bspt_Options::set('injection_position', Bspt_Options::DEFAULT_PLACEMENT);
    9595        }
    9696        if (!Bspt_Options::exists('inject_on_post_types')) {
  • botspot/trunk/includes/class-bspt-content-injector.php

    r3660719 r3673942  
    669669    private function resolve_injection_position()
    670670    {
    671         $stored = Bspt_Options::get("injection_position", "bottom_of_content");
     671        $stored = Bspt_Options::get("injection_position", Bspt_Options::DEFAULT_PLACEMENT);
    672672        return Bspt_Options::migrate_placement_value($stored);
    673673    }
  • botspot/trunk/includes/class-bspt-options.php

    r3660719 r3673942  
    3737
    3838    /**
     39     * Placement a site gets when nothing is stored.
     40     *
     41     * Every default and fallback reads this constant. A site activated before
     42     * 3.7.8 already carries a stored value from the activator, so it keeps its
     43     * placement; only fresh activations land here.
     44     *
     45     * @since 3.7.8
     46     * @var   string
     47     */
     48    const DEFAULT_PLACEMENT = "bottom_of_page";
     49
     50    /**
    3951     * Placement values that render at wp_footer.
    4052     *
    … …  
    8395        "jsonld_enabled" => true,
    8496        "jsonld_conflict_mode" => "merge",
    85         "injection_position" => "bottom_of_content",
     97        "injection_position" => self::DEFAULT_PLACEMENT,
    8698        "placement_anchor" => null,
    8799        "inject_on_post_types" => ["post", "page"],
    … …  
    417429        }
    418430
    419         return "bottom_of_content";
     431        return self::DEFAULT_PLACEMENT;
    420432    }
    421433
  • botspot/trunk/readme.txt

    r3669296 r3673942  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 3.7.7
     7Stable tag: 3.7.8
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    131131== Changelog ==
    132132
     133= 3.7.8 =
     134
     135* New installs now place the appendix at the end of the page instead of the end of the content. The end of the page survives page builders and themes that wrap the post text. Sites installed before this release keep the placement they already have.
     136
    133137= 3.7.7 =
    134138
    … …  
    311315== Upgrade Notice ==
    312316
     317= 3.7.8 =
     318
     319Changes the appendix placement that new installs start with, from the end of the content to the end of the page. Your existing placement is untouched.
     320
     321= 3.7.7 =
     322
     323Fixes the connection status shown on the settings screen. The header and the Connect tab could disagree, one reporting connected while the other reported disconnected. No settings change.
     324
    313325= 3.7.6 =
    314326
Note: See TracChangeset for help on using the changeset viewer.