Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 99e724323e | |||
| c2c6d90f0c | |||
| 5bd24b1e03 | |||
| d6258eeb00 |
@@ -3,7 +3,7 @@
|
|||||||
* Plugin Name: 2meet Data Optimizer — Latepoint AddOn
|
* Plugin Name: 2meet Data Optimizer — Latepoint AddOn
|
||||||
* Plugin URI: https://2meet.io/2meet-data-optimizer/latepoint
|
* Plugin URI: https://2meet.io/2meet-data-optimizer/latepoint
|
||||||
* Description: LatePoint 預約系統 booking 索引同步(4 hook → wp_hpct_latepoint_idx)
|
* Description: LatePoint 預約系統 booking 索引同步(4 hook → wp_hpct_latepoint_idx)
|
||||||
* Version: 0.1.2
|
* Version: 0.1.3
|
||||||
* Requires at least: 6.0
|
* Requires at least: 6.0
|
||||||
* Tested up to: 6.9.4
|
* Tested up to: 6.9.4
|
||||||
* Requires PHP: 8.1
|
* Requires PHP: 8.1
|
||||||
@@ -24,7 +24,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
define( 'TMDO_LATEPOINT_VERSION', '0.1.2' );
|
define( 'TMDO_LATEPOINT_VERSION', '0.1.3' );
|
||||||
define( 'TMDO_LATEPOINT_PATH', plugin_dir_path( __FILE__ ) );
|
define( 'TMDO_LATEPOINT_PATH', plugin_dir_path( __FILE__ ) );
|
||||||
define( 'TMDO_LATEPOINT_URL', plugin_dir_url( __FILE__ ) );
|
define( 'TMDO_LATEPOINT_URL', plugin_dir_url( __FILE__ ) );
|
||||||
define( 'TMDO_LATEPOINT_FILE', __FILE__ );
|
define( 'TMDO_LATEPOINT_FILE', __FILE__ );
|
||||||
|
|||||||
@@ -13,6 +13,18 @@ Versioning follows [Semantic Versioning](https://semver.org/).
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## [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
|
## [0.1.2] — 2026-09-26
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
+11
-2
@@ -15,12 +15,21 @@ if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
|||||||
// dropping it loses no data; LatePoint's tables are left untouched.
|
// dropping it loses no data; LatePoint's tables are left untouched.
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
||||||
$tmdo_latepoint_blogs = is_multisite() ? get_sites( array( 'fields' => 'ids' ) ) : array( get_current_blog_id() );
|
// '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 ) {
|
foreach ( $tmdo_latepoint_blogs as $tmdo_latepoint_blog ) {
|
||||||
if ( is_multisite() ) {
|
if ( is_multisite() ) {
|
||||||
switch_to_blog( $tmdo_latepoint_blog );
|
switch_to_blog( $tmdo_latepoint_blog );
|
||||||
}
|
}
|
||||||
$wpdb->query( 'DROP TABLE IF EXISTS `' . $wpdb->prefix . 'hpct_latepoint_idx`' ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching,WordPress.DB.DirectDatabaseQuery.SchemaChange
|
$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' );
|
delete_option( 'tmdo_latepoint_db_version' );
|
||||||
if ( is_multisite() ) {
|
if ( is_multisite() ) {
|
||||||
restore_current_blog();
|
restore_current_blog();
|
||||||
|
|||||||
Reference in New Issue
Block a user