WordPress.org

Forums

Simple 301 Redirects
depreciated function (3 posts)

  1. jwsand
    Member
    Posted 1 year 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'));

    to

    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

    http://wordpress.org/extend/plugins/simple-301-redirects/

  2. astrasuite
    Member
    Posted 1 year ago #

    Thanks, works fine !

  3. astrasuite
    Member
    Posted 1 year 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

About this Topic