LaTeX for WordPress
Deprecated call to has_cap (2 posts)

  1. mrfrankster
    Posted 3 years 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.


  2. mrfrankster
    Posted 3 years 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

  • LaTeX for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.