8 Commits

Author SHA1 Message Date
wpdev 95f3114127 chore(2meet-data-optimizer-latepoint-addon): 0.1.4 repackage (no functional change)
Tests / PHP Lint (pull_request) Successful in 38s
Version bump for a re-release packaged alongside the WP-MVB v8 hub (dev39)
acceptance; code is identical to the previous release.
2026-10-02 17:23:22 +08:00
wpdev fef2152fe7 Merge pull request 'hardening 2.3: 2meet-data-optimizer-latepoint-addon 0.1.3 (uninstall on large networks)' (#4) from hardening/2.3 into main
Tests / PHP Lint (push) Successful in 14s
2026-09-27 18:37:34 +08:00
wpdev 99e724323e docs(2meet-data-optimizer-latepoint-addon): 0.1.3 release notes
Tests / PHP Lint (pull_request) Successful in 13s
- version 0.1.3; CHANGELOG for PR-100 (uninstall on networks over 100 sites)
- Verify: php -l on every PHP file
- PR: PR-104
2026-09-27 16:50:36 +08:00
wpdev c2c6d90f0c fix(2meet-data-optimizer-latepoint-addon): remove data on every site of a large network on uninstall
- get_sites() returns 100 sites by default; with 'number' => 0 the index
  table and option are dropped on every site of the network
- Verify: php -l; phpcs unchanged (1 existing error on the DROP TABLE line)
- PR: PR-100
2026-09-27 16:46:13 +08:00
wpdev 5bd24b1e03 Merge pull request 'refactor: name the index table in uninstall.php (latepoint 0.1.2)' (#3) from fix/uninstall-table-name into main
Tests / PHP Lint (push) Successful in 4s
2026-09-26 21:55:37 +08:00
wpdev d6258eeb00 refactor(2meet-data-optimizer-latepoint-addon): name the index table in uninstall.php
Tests / PHP Lint (pull_request) Successful in 4s
- Build the table name as $wpdb->prefix . 'hpct_latepoint_idx' like the installer does, so the package check (§10) can match the DROP to the CREATE
- Verify: php -l; package-plugin.sh §10
2026-09-26 21:55:19 +08:00
wpdev 46d5de9c8c Merge pull request 'release 0.1.2: 2meet-data-optimizer-latepoint-addon (drop index table on uninstall)' (#2) from release/0.1.2 into main
Tests / PHP Lint (push) Successful in 4s
2026-09-26 21:54:49 +08:00
wpdev d0723c5d0a fix(2meet-data-optimizer-latepoint-addon): drop the booking index table on uninstall
Tests / PHP Lint (pull_request) Successful in 4s
- 0.1.1 started creating wp_hpct_latepoint_idx, but uninstall.php was still the Phase 0 stub and left it behind (package check §10: CREATE without DROP)
- Uninstall drops the table and the tmdo_latepoint_db_version option on every site; LatePoint's own tables are kept (the index is rebuilt from its bookings)
- Version 0.1.2, CHANGELOG
- Verify: php -l; dev36 uninstall run removed a stand-in table and the option
2026-09-26 21:54:20 +08:00
3 changed files with 56 additions and 3 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
* Plugin Name: 2meet Data Optimizer — Latepoint AddOn
* Plugin URI: https://2meet.io/2meet-data-optimizer/latepoint
* Description: LatePoint 預約系統 booking 索引同步(4 hook → wp_hpct_latepoint_idx)
* Version: 0.1.1
* Version: 0.1.4
* Requires at least: 6.0
* Tested up to: 6.9.4
* Requires PHP: 8.1
@@ -24,7 +24,7 @@ if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'TMDO_LATEPOINT_VERSION', '0.1.1' );
define( 'TMDO_LATEPOINT_VERSION', '0.1.4' );
define( 'TMDO_LATEPOINT_PATH', plugin_dir_path( __FILE__ ) );
define( 'TMDO_LATEPOINT_URL', plugin_dir_url( __FILE__ ) );
define( 'TMDO_LATEPOINT_FILE', __FILE__ );
+30
View File
@@ -13,6 +13,36 @@ Versioning follows [Semantic Versioning](https://semver.org/).
---
## [0.1.4] — 2026-10-02 — 重新打包
### Changed
- 重新打包(無功能變更):與 WP-MVB v8 樞紐站(dev39)一同驗收後發版;程式碼與前一版相同。
---
## [0.1.3] — 2026-09-27
Released with 2meet-data-optimizer 1.3.0 (hardening 2.3).
### Fixed
- Uninstall on a network of more than 100 sites: `get_sites()` returns 100
sites unless `'number' => 0`, so the index table and option were left on
the rest. (PR-100)
---
## [0.1.2] — 2026-09-26
### Fixed
- Uninstall now drops `wp_hpct_latepoint_idx` (every site on multisite) and the
`tmdo_latepoint_db_version` option. 0.1.1 started creating the table, but
`uninstall.php` was still the Phase 0 stub and left it behind. The table is
an index rebuilt from LatePoint's bookings; LatePoint's own tables are kept.
---
## [0.1.1] — 2026-08-08 — 補上從未存在的 `wp_hpct_latepoint_idx` 建表流程
### Fixed
+24 -1
View File
@@ -11,4 +11,27 @@ if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
// Phase 3 完整實作。Phase 0 stub:保留所有資料以避免誤刪。
// wp_hpct_latepoint_idx is an index rebuilt from LatePoint's own bookings, so
// dropping it loses no data; LatePoint's tables are left untouched.
global $wpdb;
// 'number' => 0: get_sites() returns only 100 sites by default.
$tmdo_latepoint_blogs = is_multisite()
? get_sites(
array(
'fields' => 'ids',
'number' => 0,
)
)
: array( get_current_blog_id() );
foreach ( $tmdo_latepoint_blogs as $tmdo_latepoint_blog ) {
if ( is_multisite() ) {
switch_to_blog( $tmdo_latepoint_blog );
}
$tmdo_latepoint_table = $wpdb->prefix . 'hpct_latepoint_idx';
$wpdb->query( "DROP TABLE IF EXISTS `{$tmdo_latepoint_table}`" ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching,WordPress.DB.DirectDatabaseQuery.SchemaChange
delete_option( 'tmdo_latepoint_db_version' );
if ( is_multisite() ) {
restore_current_blog();
}
}