Changeset 3673942
- Timestamp:
- 08/31/2026 10:57:53 AM (8 weeks ago)
- Location:
- botspot
- Files:
-
- 14 edited
- 1 copied
-
tags/3.7.8 (copied) (copied from botspot/trunk )
-
tags/3.7.8/admin/class-bspt-admin.php (modified) (1 diff)
-
tags/3.7.8/admin/partials/tab-settings.php (modified) (3 diffs)
-
tags/3.7.8/botspot.php (modified) (3 diffs)
-
tags/3.7.8/includes/class-bspt-activator.php (modified) (1 diff)
-
tags/3.7.8/includes/class-bspt-content-injector.php (modified) (1 diff)
-
tags/3.7.8/includes/class-bspt-options.php (modified) (3 diffs)
-
tags/3.7.8/readme.txt (modified) (3 diffs)
-
trunk/admin/class-bspt-admin.php (modified) (1 diff)
-
trunk/admin/partials/tab-settings.php (modified) (3 diffs)
-
trunk/botspot.php (modified) (3 diffs)
-
trunk/includes/class-bspt-activator.php (modified) (1 diff)
-
trunk/includes/class-bspt-content-injector.php (modified) (1 diff)
-
trunk/includes/class-bspt-options.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
botspot/tags/3.7.8/admin/class-bspt-admin.php
r3660719 r3673942 114 114 register_setting("bspt_settings", "bspt_injection_position", [ 115 115 "sanitize_callback" => [$this, "sanitize_position"], 116 "default" => "bottom_of_content",116 "default" => Bspt_Options::DEFAULT_PLACEMENT, 117 117 ]); 118 118 register_setting("bspt_settings", "bspt_placement_anchor", [ -
botspot/tags/3.7.8/admin/partials/tab-settings.php
r3660719 r3673942 26 26 $bspt_inject_post_types = Bspt_Options::get("inject_on_post_types", ["post", "page"]); 27 27 $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) 29 29 ); 30 30 $bspt_jsonld_conflict = Bspt_Options::get("jsonld_conflict_mode", "merge"); … … 112 112 <span> 113 113 <?php esc_html_e("End of the content", "botspot"); ?> 114 <span class="bsa-check__tag"><?php esc_html_e("recommended", "botspot"); ?></span>115 114 </span> 116 115 <span class="bsa-tip" role="note"> … … 120 119 <label class="bsa-check bsa-check--tipped"> 121 120 <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> 123 125 <span class="bsa-tip" role="note"> 124 126 <?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 3 3 * Plugin Name: BotSpot 4 4 * Description: Push-based content sync and AI appendix injection. Syncs content to locus-core and renders JSON-LD + appendix. 5 * Version: 3.7. 75 * Version: 3.7.8 6 6 * Author: bot.spot Team 7 7 * Author URI: https://bot.spot … … 15 15 * 16 16 * @package Bspt 17 * @version 3.7. 717 * @version 3.7.8 18 18 */ 19 19 … … 68 68 * Plugin version. 69 69 */ 70 define('BSPT_VERSION', '3.7. 7');70 define('BSPT_VERSION', '3.7.8'); 71 71 72 72 /** -
botspot/tags/3.7.8/includes/class-bspt-activator.php
r3669296 r3673942 92 92 } 93 93 if (!Bspt_Options::exists('injection_position')) { 94 Bspt_Options::set('injection_position', 'bottom');94 Bspt_Options::set('injection_position', Bspt_Options::DEFAULT_PLACEMENT); 95 95 } 96 96 if (!Bspt_Options::exists('inject_on_post_types')) { -
botspot/tags/3.7.8/includes/class-bspt-content-injector.php
r3660719 r3673942 669 669 private function resolve_injection_position() 670 670 { 671 $stored = Bspt_Options::get("injection_position", "bottom_of_content");671 $stored = Bspt_Options::get("injection_position", Bspt_Options::DEFAULT_PLACEMENT); 672 672 return Bspt_Options::migrate_placement_value($stored); 673 673 } -
botspot/tags/3.7.8/includes/class-bspt-options.php
r3660719 r3673942 37 37 38 38 /** 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 /** 39 51 * Placement values that render at wp_footer. 40 52 * … … 83 95 "jsonld_enabled" => true, 84 96 "jsonld_conflict_mode" => "merge", 85 "injection_position" => "bottom_of_content",97 "injection_position" => self::DEFAULT_PLACEMENT, 86 98 "placement_anchor" => null, 87 99 "inject_on_post_types" => ["post", "page"], … … 417 429 } 418 430 419 return "bottom_of_content";431 return self::DEFAULT_PLACEMENT; 420 432 } 421 433 -
botspot/tags/3.7.8/readme.txt
r3669296 r3673942 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 3.7. 77 Stable tag: 3.7.8 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 131 131 == Changelog == 132 132 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 133 137 = 3.7.7 = 134 138 … … 311 315 == Upgrade Notice == 312 316 317 = 3.7.8 = 318 319 Changes 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 323 Fixes 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 313 325 = 3.7.6 = 314 326 -
botspot/trunk/admin/class-bspt-admin.php
r3660719 r3673942 114 114 register_setting("bspt_settings", "bspt_injection_position", [ 115 115 "sanitize_callback" => [$this, "sanitize_position"], 116 "default" => "bottom_of_content",116 "default" => Bspt_Options::DEFAULT_PLACEMENT, 117 117 ]); 118 118 register_setting("bspt_settings", "bspt_placement_anchor", [ -
botspot/trunk/admin/partials/tab-settings.php
r3660719 r3673942 26 26 $bspt_inject_post_types = Bspt_Options::get("inject_on_post_types", ["post", "page"]); 27 27 $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) 29 29 ); 30 30 $bspt_jsonld_conflict = Bspt_Options::get("jsonld_conflict_mode", "merge"); … … 112 112 <span> 113 113 <?php esc_html_e("End of the content", "botspot"); ?> 114 <span class="bsa-check__tag"><?php esc_html_e("recommended", "botspot"); ?></span>115 114 </span> 116 115 <span class="bsa-tip" role="note"> … … 120 119 <label class="bsa-check bsa-check--tipped"> 121 120 <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> 123 125 <span class="bsa-tip" role="note"> 124 126 <?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 3 3 * Plugin Name: BotSpot 4 4 * Description: Push-based content sync and AI appendix injection. Syncs content to locus-core and renders JSON-LD + appendix. 5 * Version: 3.7. 75 * Version: 3.7.8 6 6 * Author: bot.spot Team 7 7 * Author URI: https://bot.spot … … 15 15 * 16 16 * @package Bspt 17 * @version 3.7. 717 * @version 3.7.8 18 18 */ 19 19 … … 68 68 * Plugin version. 69 69 */ 70 define('BSPT_VERSION', '3.7. 7');70 define('BSPT_VERSION', '3.7.8'); 71 71 72 72 /** -
botspot/trunk/includes/class-bspt-activator.php
r3669296 r3673942 92 92 } 93 93 if (!Bspt_Options::exists('injection_position')) { 94 Bspt_Options::set('injection_position', 'bottom');94 Bspt_Options::set('injection_position', Bspt_Options::DEFAULT_PLACEMENT); 95 95 } 96 96 if (!Bspt_Options::exists('inject_on_post_types')) { -
botspot/trunk/includes/class-bspt-content-injector.php
r3660719 r3673942 669 669 private function resolve_injection_position() 670 670 { 671 $stored = Bspt_Options::get("injection_position", "bottom_of_content");671 $stored = Bspt_Options::get("injection_position", Bspt_Options::DEFAULT_PLACEMENT); 672 672 return Bspt_Options::migrate_placement_value($stored); 673 673 } -
botspot/trunk/includes/class-bspt-options.php
r3660719 r3673942 37 37 38 38 /** 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 /** 39 51 * Placement values that render at wp_footer. 40 52 * … … 83 95 "jsonld_enabled" => true, 84 96 "jsonld_conflict_mode" => "merge", 85 "injection_position" => "bottom_of_content",97 "injection_position" => self::DEFAULT_PLACEMENT, 86 98 "placement_anchor" => null, 87 99 "inject_on_post_types" => ["post", "page"], … … 417 429 } 418 430 419 return "bottom_of_content";431 return self::DEFAULT_PLACEMENT; 420 432 } 421 433 -
botspot/trunk/readme.txt
r3669296 r3673942 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 3.7. 77 Stable tag: 3.7.8 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 131 131 == Changelog == 132 132 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 133 137 = 3.7.7 = 134 138 … … 311 315 == Upgrade Notice == 312 316 317 = 3.7.8 = 318 319 Changes 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 323 Fixes 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 313 325 = 3.7.6 = 314 326
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)