• The plugin works, but in developermode I’m getting this error in the admin panel:

    “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 < path-to >/functions.php on line 3006”

Viewing 1 replies (of 1 total)
  • Thread Starter Lyckron

    (@lyckron)

    Problem was with the $capability parameter..

    To fix this, change / copy-paste following in “sc_audio_player.php” ( just replaced the ‘8’ with ‘manage_options’ ):

    …………………………………………..
    //Create admin page
    add_action(‘admin_menu’, ‘scap_mp3_player_admin_menu’);
    function scap_mp3_player_admin_menu() {
    add_options_page(‘SC Audio Player’, ‘SC Audio Player’, ‘manage_options’, __FILE__, ‘scap_mp3_options’);
    }
    ……………………………………………

Viewing 1 replies (of 1 total)
  • The topic ‘Great!.. but’ is closed to new replies.