• I get this error when using the plugin.

    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. in /Applications/XAMPP/xamppfiles/htdocs/bitblueprint_main_site/wp-includes/functions.php on line 3006

    I’m using WordPress 3.8.1

    https://ww.wp.xz.cn/plugins/custom-permalinks/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The menu item is being added with a check for the user level of 5, should be replaced with something like ‘edit_others_pages’ on line 753. ‘manage_links’ would have been the logical choice, but that didn’t seem to work for an admin user for some reason.

    I believe you should use this

    add_management_page( 'Custom Permalinks', 'Custom Permalinks', 'manage_options', 'custom_permalinks', 'custom_permalinks_options_page' );

    instead of this

    add_management_page( 'Custom Permalinks', 'Custom Permalinks',5, 'custom_permalinks', 'custom_permalinks_options_page' );

    BTW I am using the plugin with WordPress v.4.0 and it worked for me.

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

The topic ‘has_cap was called’ is closed to new replies.