undismiss_core_update() - WordPress 函数参考中文文档

返回介绍

undismiss_core_update()

发布于 2017-09-11 字数1224 浏览 793 评论 0

undismiss_core_update( string $version,  string $locale )

描述


参数

$version

(string)
(Required)

$locale

(string)
(Required)


返回值

(bool)


源代码

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

Collapse full 源代码 code

View on Trac


相关函数

Uses

  • wp-includes/option.php:
    update_site_option()
  • wp-includes/option.php:
    get_site_option()

Used By

  • wp-admin/update-core.php:
    do_undismiss_core_update()

User Contributed Notes

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!