If your WordPress site shows you have an update available, but none can be found in themes or plugins, you can use this snippet to debug the issue.

/** * Debug Pending Updates * * Displays hidden plugin and theme updates on update-core screen. */ function debug_pending_updates() { // Rough safety nets if ( ! is_user_logged_in() || ! current_user_can( 'update_plugins' ) || ! current_user_can( 'update_themes' ) ) return; $output = ""; // Check plugins $plugin_updates = get_site_transient( 'update_plugins' ); if ( $plugin_updates && ! empty( $plugin_updates->response ) ) { foreach ( $plugin_updates->response as $plugin => $details ) { $output .= " Plugin $plugin is reporting an available update. "; } } // Check themes wp_update_themes(); $theme_updates = get_site_transient( 'update_themes' ); if ( $theme_updates && ! empty( $theme_updates->response ) ) { foreach ( $theme_updates->response as $theme => $details ) { $output .= " Theme $theme is reporting an available update. "; } } if ( empty( $output ) ) $output = "No pending updates found in the database."; echo " Pending updates " . $output; } add_action( 'core_upgrade_preamble', 'debug_pending_updates' );
Code language: PHP (php)

Published by Dragos Micu

WooCommerce

Leave a Reply

Your email address will not be published. Required fields are marked *

ca do bong da la gi tinh soi va tinh cuu cao ba la max88 xi dach hoang gia huong dan dang ky tai khoan nha cai tk812 socvip club red88 soi keo 88835 nha cai tk88 lua dao newcastle united vs bournemouth soi keo bong da 19h30 18 01 2025 chuyen di kho khan game ban ca doi thuong rong ho soi keo 2486 bk8 poker 67322 xvip win crystal palace vs southampton soi keo bong da 22h00 29 12 2024 vi khach de chiu bai poker an tien soi keo nga box88 slot 23101 strasbourg vs auxerre soi keo bong da 21h00 05 01 2025 co quyen hy vong uk88 tai xiu 6529 bai u la gi chi tiet cac kieu u anh em nen biet