WordPress.org

Ready to get started?Download WordPress

Forums

LaTeX for WordPress
Deprecated call to has_cap (2 posts)

  1. mrfrankster
    Member
    Posted 1 year ago #

    When the plugin is activated the following error message appears at the top of pages:

    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.

    http://wordpress.org/extend/plugins/latex/

  2. mrfrankster
    Member
    Posted 1 year ago #

    The required fix is described here: http://tumbledesign.com/fix-notice-has_cap-was-called-with-an-argument-that-is-deprecated-since-version-2-0-in-wordpress/

    Basically you need to change the line in latex.php that has the add_submenu_page function call so that instead of passing the argument 1 as userlevel, it needs to pass the capability 'edit_page' or similar

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.