PK
œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in /home/telusvwg/public_html/da754d/index.php on line 8
| Dir : /home/telusvwg/techinnovo.co/wp-content/plugins/svg-support/functions/ |
| Server: Linux premium279.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 IP: 66.29.132.192 |
| Dir : /home/telusvwg/techinnovo.co/wp-content/plugins/svg-support/functions/meta-cleanup.php |
<?php
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly
}
function bodhi_svgs_cleanup_duplicate_meta() {
global $wpdb;
// Delete all but the latest inline_featured_image meta per post
$wpdb->query("
DELETE pm FROM {$wpdb->postmeta} pm
JOIN (
SELECT post_id, meta_id FROM (
SELECT post_id, meta_id,
ROW_NUMBER() OVER (PARTITION BY post_id ORDER BY meta_id DESC) AS row_num
FROM {$wpdb->postmeta}
WHERE meta_key = 'inline_featured_image'
) as duplicates
WHERE row_num > 1
) to_delete ON pm.meta_id = to_delete.meta_id
");
// Delete all inline_featured_image meta entries that aren't explicitly set to 1
$wpdb->query("
DELETE FROM {$wpdb->postmeta}
WHERE meta_key = 'inline_featured_image'
AND (meta_value = '' OR meta_value = '0' OR meta_value IS NULL)
");
}