WordPress开发者和主题制作者的搜索引擎



undismiss_core_update ›

Sincen/a
已弃用n/a
undismiss_core_update ( $version, $locale )
参数: (2)
  • (string) $version
    Required: Yes
  • (string) $locale
    Required: Yes
返回:
  • (bool)
定义在:
文档:

暂无描述



源码

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