Skip to content

Commit

Permalink
Merge pull request #65 from x-team/issue-64
Browse files Browse the repository at this point in the history
Move chart height filter to load_page call.
  • Loading branch information
frankiejarrett committed Apr 4, 2014
2 parents 75933b3 + 97dc4f4 commit a4d8792
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions includes/meta-boxes.php
Original file line number Diff line number Diff line change
@@ -43,8 +43,6 @@ public function __construct() {

// Register all ajax action and check referer for this class
WP_Stream_Reports::handle_ajax_request( $ajax_hooks, $this );

add_filter( 'screen_settings', array( $this, 'chart_height_display' ), 10, 2 );
}

/**
@@ -109,6 +107,9 @@ public function load_page() {
$this->setup_user();
}

// Add screen option for chart height
add_filter( 'screen_settings', array( $this, 'chart_height_display' ), 10, 2 );

// Enqueue all core scripts required for this page to work
add_screen_option( 'layout_columns', array( 'max' => 2, 'default' => 2 ) );

0 comments on commit a4d8792

Please sign in to comment.