undismiss_core_update() WordPress Function
The undismiss_core_update() function is used to re-enable a dismissed WordPress core update. This function takes no parameters.
undismiss_core_update( string $version, string $locale ) #
Undismisses core update.
Parameters
- $version
(string)(Required)
- $locale
(string)(Required)
Return
(bool)
Source
File: wp-admin/includes/update.php
function undismiss_core_update( $version, $locale ) { $dismissed = get_site_option( 'dismissed_update_core' ); $key = $version . '|' . $locale; if ( ! isset( $dismissed[ $key ] ) ) { return false; } unset( $dismissed[ $key ] ); return update_site_option( 'dismissed_update_core', $dismissed ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |