/home/altere25/.trash/wp-to-sanity-companion.1
Edit: /home/altere25/.trash/wp-to-sanity-companion.1/templates\admin\dashboard.php (10457B)
settings();
// Get migration stats
global $wpdb;
$log_table = $wpdb->prefix . 'ad_migration_log';
$stats = $wpdb->get_row("
SELECT
COUNT(*) as total,
SUM(CASE WHEN status = 'success' THEN 1 ELSE 0 END) as success,
SUM(CASE WHEN status = 'pending' THEN 1 ELSE 0 END) as pending,
SUM(CASE WHEN status = 'failed' THEN 1 ELSE 0 END) as failed
FROM {$log_table}
", ARRAY_A);
$queue_count = 0;
// Get content counts
$content_stats = [
'posts' => wp_count_posts('post'),
'pages' => wp_count_posts('page'),
'media' => wp_count_attachments(),
];
$total_posts = $content_stats['posts']->publish + $content_stats['posts']->draft + $content_stats['posts']->pending;
$total_pages = $content_stats['pages']->publish + $content_stats['pages']->draft;
$total_media = array_sum((array) $content_stats['media']);
?>
publish); ?> ,
draft); ?>
|
|
|
|
|
get_results($wpdb->prepare("SELECT * FROM {$log_table} ORDER BY created_at DESC LIMIT %d", 10), ARRAY_A);
if (empty($recent_logs)) :
?>
|
|
#
|
|
|
—
|
|