Plugin Directory

Opened 11 years ago

#2327 new defect

Bug Fix: Settings page inaccessible with DISALLOW_FILE_EDIT set to true

Reported by: xanthonius's profile xanthonius's profile Xanthonius Owned by:
Priority: normal Severity: normal
Plugin: not-listed Keywords: bug fix
Cc:

Description

In brightcove_admin.php:

$bc_settings_page = 'edit_themes';

if ( DISALLOW_FILE_EDIT ) {
  $bc_settings_page = 'manage_options';
}

$myBrightcoveMenuStyle = plugins_url('admin/brightcove_admin.css',__FILE__);
wp_register_style( 'brightcove_menu_style', $myBrightcoveMenuStyle);
wp_enqueue_style( 'brightcove_menu_style' );
add_menu_page(__('Brightcove Settings'), __('Brightcove'), $bc_settings_page, 'brightcove_menu', 'brightcove_menu_render', WP_PLUGIN_URL.'/brightcove-video-cloud/admin/bc_icon.png'); 

line 30

Thanks

Change History (0)

Note: See TracTickets for help on using tickets.