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



wp_maybe_auto_update ›

Since3.7.0
已弃用n/a
wp_maybe_auto_update ( 没有参数 )
定义在:
文档:

Performs WordPress automatic background updates.



源码

function wp_maybe_auto_update() {
	include_once( ABSPATH . 'wp-admin/includes/admin.php' );
	include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );

	$upgrader = new WP_Automatic_Updater;
	$upgrader->run();
}