Title: PHP Notices [fix]
Last modified: August 21, 2016

---

# PHP Notices [fix]

 *  [Dewey Bushaw](https://wordpress.org/support/users/styledev/)
 * (@styledev)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-notices-fix/)
 * In ultimate-noindex.php:
 * In function unn_admin_menu() change 8 to ‘manage_options’
    Before: add_options_page(‘
   Ultimate Noindex Nofollow Options’, ‘Ultimate Noindex’, 8, __FILE__, ‘unn_admin’);
   After: add_options_page(‘Ultimate Noindex Nofollow Options’, ‘Ultimate Noindex’,‘
   manage_options’, __FILE__, ‘unn_admin’);
 * Fixes: Notice: has_cap was called with an argument that is **deprecated** since
   version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles
   and capabilities instead.
 * Fix for 13 undefined errors: I refactored the unn_admin_menu() function to fix
   all the errors. You can find it here: [https://gist.github.com/anonymous/5730886](https://gist.github.com/anonymous/5730886)
 * [http://wordpress.org/extend/plugins/ultimate-noindex-nofollow-tool/](http://wordpress.org/extend/plugins/ultimate-noindex-nofollow-tool/)

The topic ‘PHP Notices [fix]’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ultimate-noindex-nofollow-tool.svg)
 * [Ultimate Noindex Nofollow Tool](https://wordpress.org/plugins/ultimate-noindex-nofollow-tool/)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-noindex-nofollow-tool/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-noindex-nofollow-tool/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-noindex-nofollow-tool/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-noindex-nofollow-tool/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [Dewey Bushaw](https://wordpress.org/support/users/styledev/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/php-notices-fix/)
 * Status: not resolved