If the DB upgrade hasn't yet been run, assume the Link Manager is disabled. Important for multisite installs. props ryan. see #21307.

git-svn-id: https://develop.svn.wordpress.org/trunk@21537 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-08-16 23:09:40 +00:00
parent 48a78c01a3
commit 80cc4de72f
1 changed files with 3 additions and 0 deletions

View File

@ -282,4 +282,7 @@ add_filter( 'pre_option_gmt_offset','wp_timezone_override_offset' );
add_action( 'admin_init', 'register_admin_color_schemes', 1);
add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
// If the upgrade hasn't run yet, assume link manager is used.
add_filter( 'default_option_link_manager_enabled', '__return_true' );
unset($filter, $action);