Skip to content

Commit be813e2

Browse files
committed
Commit
1 parent d9ffb4b commit be813e2

File tree

4 files changed

+1
-42
lines changed

4 files changed

+1
-42
lines changed

includes/class-admin.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ public function __construct()
5555
require_once WC_VEC_DIR . 'admin/pages/class-admin-page-advanced.php';
5656
$this->pages['advanced'] = new \WCVec\Admin\Page_Advanced();
5757

58-
require_once WC_VEC_DIR . 'admin/pages/class-admin-page-advanced.php';
59-
$this->pages['advanced'] = new \WCVec\Admin\Page_Advanced();
60-
6158
add_action('admin_menu', [$this, 'register_menu'], 60);
6259
add_action('admin_enqueue_scripts', [$this, 'enqueue_assets']);
6360
}

includes/class-lifecycle.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,6 @@ public function on_save_product(int $post_ID, \WP_Post $post, bool $update): voi
3636
Job_Index_Product::enqueue($post_ID, false, 0);
3737
}
3838

39-
public function on_save_variation(int $post_ID, \WP_Post $post, bool $update): void
40-
{
41-
if ($this->skip($post)) return;
42-
43-
// Index the variation itself
44-
Job_Index_Product::enqueue($post_ID, false, 0);
45-
46-
// Also index parent product to refresh collapsed fields if needed
47-
$parent_id = (int) $post->post_parent;
48-
if ($parent_id > 0) {
49-
Job_Index_Product::enqueue($parent_id, false, 30); // slight delay
50-
}
51-
}
52-
5339
public function on_transition_status(string $new_status, string $old_status, \WP_Post $post): void
5440
{
5541
if ($post->post_type !== 'product' && $post->post_type !== 'product_variation') return;

includes/class-plugin.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
final class Plugin
77
{
8-
private static ?Plugin $instance = null;
98
public const DB_VERSION = 1;
109

1110
/** @var Plugin|null */

includes/class-scheduler.php

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -246,30 +246,7 @@ public static function register_cron_intervals(array $schedules): array
246246
}
247247
return $schedules;
248248
}
249-
250-
/**
251-
* Basic metrics placeholder; expanded in P6.4.
252-
*/
253-
public static function get_metrics(): array
254-
{
255-
$next = null;
256-
if (function_exists('as_has_scheduled_action') && function_exists('as_next_scheduled_action')) {
257-
$ts = as_next_scheduled_action(self::ACTION_SCAN, [], self::GROUP);
258-
$next = $ts ? gmdate('c', $ts) : null;
259-
} else {
260-
$ts = wp_next_scheduled(self::CRON_HOOK);
261-
$next = $ts ? gmdate('c', $ts) : null;
262-
}
263-
264-
return [
265-
'last_scan' => Options::get_last_scan_gmt() ?: null,
266-
'next_scan' => $next,
267-
'pending' => null, // filled in P6.4
268-
'in_progress' => null,
269-
'failed' => null,
270-
];
271-
}
272-
249+
273250
public static function requeue_errors(): void
274251
{
275252
$limit = 1000;

0 commit comments

Comments
 (0)