Simple 301 Redirects
depreciated function (3 posts)

  1. jwsand
    Posted 2 years ago #

    I installed this plugin and noticed that a notice was shown by WordPress indicating that the plugin was using a depreciated function has_cap. The plugin calls the add_options_page() function with the $capabilities variable as an integer, not the current user Roles and Capabilities. You can fix this by changing out line 35 from:

    add_options_page('301 Redirects', '301 Redirects', 10, '301options', array($this,'options_page'));


    add_options_page('301 Redirects', '301 Redirects', 'manage_options', '301options', array($this,'options_page'));

    Hopefully the plugin author will address this in an update.

    see also the codex: http://codex.wordpress.org/Function_Reference/add_options_page


  2. astrasuite
    Posted 2 years ago #

    Thanks, works fine !

  3. astrasuite
    Posted 2 years ago #

    Sorry, didn't work after all when not logged in as admin ... anyway, must be one of the redirects ...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple 301 Redirects
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic