WordPress.org

Ready to get started?Download WordPress

Forums

WP Permalauts
[resolved] Fehlermeldung (5 posts)

  1. mawosch
    Member
    Posted 1 year ago #

    The following message is shown in Settings:
    Notice: has_cap wurde mit einem Parameter oder Argument aufgerufen, der seit Version 2.0 veraltet ist! Die Benutzung von user_level in Plugins und Themes ist veraltet.
    ...
    Als soon as I deactivate Permalauts the message is gone.

    http://wordpress.org/extend/plugins/wp-permalauts/

  2. felixhirschfeld
    Member
    Posted 1 year ago #

    Search for this line:

    $plugin_page = add_options_page( 'WP Permalauts', '[*] Permalauts', 8, __FILE__, 'wpl_options_page');

    You need to replace the 8 with 'editpages'

    Then it should look like this:

    $plugin_page = add_options_page( 'WP Permalauts', '[*] Permalauts', 'edit_pages', __FILE__, 'wpl_options_page');

  3. skks
    Member
    Posted 1 year ago #

    Got the same error today.
    One question regarding this: Shouldn't it be manage_options instead of edit_pages? Not sure, but I'd see that as an admin setting.

  4. felixhirschfeld
    Member
    Posted 1 year ago #

    You're right. manage_options is way better.

  5. blogcrafter_chris
    Member
    Plugin Contributor

    Posted 1 year ago #

    It's resolved, isn't it?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.