undismiss_core_update

函数


undismiss_core_update ( $version, $locale )
参数
  • (string)
    $version
    Required:
  • (string)
    $locale
    Required:
返回值
  • (bool)
定义位置
  • wp-admin/includes/update.php
    , line 185
引入
2.7.0
弃用

Undismisses core update.

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 );
}