wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



maybe_disable_link_manager › WordPress Function

Da3.5.0
Deprecaton/a
maybe_disable_link_manager ( Nessun parametro )
Definito a:
Codex:

Disables the Link Manager on upgrade if, at the time of upgrade, no links exist in the DB.



Sorgenti

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