Support » Plugin: WP-Paginate » [Plugin: WP-Paginate] Deprecated argument for capabilities

  • Resolved MHagemeister

    (@mhagemeister)


    WP-Paginate uses old user levels. Should use roles and capabilities instead.

    Steps to reproduce:

    Set WP_DEBUG to true in wp-config.php

    Error Message:

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Found the line producing the error. WP-Paginate uses the deprecated user-level mechanism.

    Change

    Line 259:
    add_options_page('WP-Paginate', 'WP-Paginate', 10, basename(__FILE__), array(&$this, 'admin_options_page'));

    to

    Line 259:
    add_options_page('WP-Paginate', 'WP-Paginate', 'activate_plugin', basename(__FILE__), array(&$this, 'admin_options_page'));

    Plugin Author Eric Martin

    (@emartin24)

    Thanks for reporting it. I made the change a while ago, but never checked it in…thanks for the reminder!

    Your welcome Thanks for a great plugin 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP-Paginate] Deprecated argument for capabilities’ is closed to new replies.