函数原型
maybe_disable_link_manager()
函数描述
Disables the Link Manager on upgrade if, at the time of upgrade, no links exist in the DB.
是否弃用
未弃用
函数参数
无
函数返回值
无
函数位置
File: wp-admin/includes/upgrade.php.
函数源码
function maybe_disable_link_manager() {
global $wp_current_db_version, $wpdb;
if ( $wp_current_db_version >= 22006 && get_option( 'link_manager_enabled' ) && ! $wpdb->get_var( "SELECT link_id FROM $wpdb->links LIMIT 1" ) ) {
update_option( 'link_manager_enabled', 0 );
}
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |

