You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3c7ce8a
Browse filesBrowse the repository at this point in the historyBrowse files
Sanitize 'update_plugins' and 'update_themes' transients.
WordPress stores plugin and theme update information in the 'update_plugins' and 'update_themes' transients respectively.
If the `wp_options` table uses a legacy character set (e.g., `utf8mb3`), then it is possible that plugin or theme update information may contain characters which cannot be represented in the database.
If that happens, then the transients cannot be saved to the database, which will prevent updates from occurring.
To avoid this, we need to call `$wpdb->strip_invalid_text_for_column()` on the transients before they are serialized and stored in the database.
if ( 'utf8mb4' !== $wpdb->get_col_charset( $wpdb->options, 'option_value' ) ) {
199
+
$expected->response['classic-widgets/classic-widgets.php']->upgrade_notice = ' This plugin does not really have an upgrade notice, but if it did, it would be here.';
0 commit comments