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 ); }
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/undismiss_core_update