Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit c6b10ea41196db3a339af472766f59e5f4673d3b 1 parent 681d4c0
@radgeek authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 feedwordpress.php
View
7 feedwordpress.php
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.