Skip to content
Browse files

Don't show the setup popup on Network Admin

Not relevant there and leads to infinite popup-ing when Network Activated.

Fixes #19
  • Loading branch information...
1 parent 57628b7 commit d9a3ace2c7f815c9631f40e547aefdf897311ed5 @mjangda mjangda committed Aug 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 developer.php
View
2 developer.php
@@ -197,7 +197,7 @@ public function admin_init() {
if ( ! get_option( self::OPTION ) ) {
if ( ! empty( $_GET['a8cdev_errorsaving'] ) ) {
add_settings_error( self::PAGE_SLUG, self::PAGE_SLUG . '_error_saving', __( 'Error saving settings. Please try again.', 'a8c-developer' ) );
- } elseif ( current_user_can( 'manage_options' ) ) {
+ } elseif ( ! is_network_admin() && current_user_can( 'manage_options' ) ) {
add_action( 'admin_enqueue_scripts', array( $this, 'load_lightbox_scripts_and_styles' ) );
add_action( 'admin_footer', array( $this, 'output_setup_box_html' ) );
}

0 comments on commit d9a3ace

Please sign in to comment.
Something went wrong with that request. Please try again.