WordPress.org

Ready to get started?Download WordPress

Forums

zbPlayer
[resolved] Use capabilities instead of deprecated user levels (3 posts)

  1. brocheafoin
    Member
    Posted 1 year ago #

    Hey there,

    Thanks for the useful plugin. When running with WP_DEBUG on, it throws a Deprecated warning, though. It's because you are using a user level in your add_options_page() call.

    If you replace this:

    function zbp_add_pages() {
    	// Add a new submenu under options
    	add_options_page('zbPlayer','zbPlayer',6,'zbplayer','zbp_manage_page');
    }

    with this:

    // Add the script
    function zbp_add_pages() {
    	// Add a new submenu under options
    	add_options_page('zbPlayer','zbPlayer','manage_options','zbplayer','zbp_manage_page');
    }

    you should be good to go

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

  2. zubaka
    Member
    Plugin Author

    Posted 1 year ago #

    Hello brocheafoin,

    Thank you for info about warning!

    Fix added for version 1.7.1.

    Good luck!

  3. brocheafoin
    Member
    Posted 1 year ago #

    Thanks for the fix!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic