Title: depreciated function
Last modified: August 21, 2016

---

# depreciated function

 *  [jwsand](https://wordpress.org/support/users/jwsand/)
 * (@jwsand)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/depreciated-function-1/)
 * 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://codex.wordpress.org/Function_Reference/add_options_page)
 * [http://wordpress.org/extend/plugins/simple-301-redirects/](http://wordpress.org/extend/plugins/simple-301-redirects/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [astrasuite](https://wordpress.org/support/users/astrasuite/)
 * (@astrasuite)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/depreciated-function-1/#post-3843766)
 * Thanks, works fine !
 *  [astrasuite](https://wordpress.org/support/users/astrasuite/)
 * (@astrasuite)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/depreciated-function-1/#post-3843767)
 * Sorry, didn’t work after all when not logged in as admin … anyway, must be one
   of the redirects …

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘depreciated function’ is closed to new replies.

 * ![](https://ps.w.org/simple-301-redirects/assets/icon-256x256.jpg?rev=2783827)
 * [Simple 301 Redirects By BetterLinks - Easy WordPress Redirect Manager for Redirects, 404 Error Log & More](https://wordpress.org/plugins/simple-301-redirects/)
 * [Support Threads](https://wordpress.org/support/plugin/simple-301-redirects/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-301-redirects/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-301-redirects/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-301-redirects/reviews/)

## Tags

 * [has_cap](https://wordpress.org/support/topic-tag/has_cap/)
 * [notice](https://wordpress.org/support/topic-tag/notice/)

 * 2 replies
 * 2 participants
 * Last reply from: [astrasuite](https://wordpress.org/support/users/astrasuite/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/depreciated-function-1/#post-3843767)
 * Status: not resolved