Permalink
Browse files

WordPress 3.5 compatibility: Ensure that permissions dependent on pre…

…sence of Links Manager will continue to work for the time being.
  • Loading branch information...
1 parent 681d4c0 commit c6b10ea41196db3a339af472766f59e5f4673d3b @radgeek committed Dec 12, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 feedwordpress.php
View
@@ -187,6 +187,7 @@
remove_filter('pre_link_url', 'wp_filter_kses');
# Admin menu
+ add_action('admin_init', array('feedwordpress', 'admin_init'));
add_action('admin_menu', 'fwp_add_pages');
add_action('admin_notices', 'fwp_check_debug');
@@ -1199,6 +1200,12 @@ function stale () {
return $ret;
} // FeedWordPress::stale()
+ static function admin_init () {
+ if (!intval(get_option('link_manager_enabled', false))) :
+ update_option('link_manager_enabled', true);
+ endif;
+ } /* FeedWordPress::admin_init() */
+
function init () {
global $fwp_path;

0 comments on commit c6b10ea

Please sign in to comment.