WordPress.org

Ready to get started?Download WordPress

Forums

Hana Flv Player
[resolved] has_cap warning (3 posts)

  1. Tom Belknap
    Member
    Posted 1 year ago #

    Can we get rid of this, please? Only plugin in my arsenal giving me this warning. Thanks! Great plugin otherwise!

    http://wordpress.org/extend/plugins/hana-flv-player/

  2. HanaDaddy
    Member
    Plugin Author

    Posted 1 year ago #

    Hello
    I will fix this issue soon, but this error is supposed to show when WP_DEBUG is true

    //wp-config.php
    define('WP_DEBUG', true);

    anyway, you can replace the 'add_options_page' line in hana-flv-player.php with these codes to fix it right away.

    global $wp_version;
    if ( $wp_version < 2 ) $capability=8; else $capability='manage_options';
    add_options_page($this->admin_setting_title,$this->admin_setting_menu, $capability, __FILE__,array(&$this,'hana_flv_options_page'));
  3. HanaDaddy
    Member
    Plugin Author

    Posted 1 year ago #

    It's resoved in v 3.1.0 . Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.