Skip to content

Commit

Permalink
added sorting of active modules
Browse files Browse the repository at this point in the history
  • Loading branch information
team-ok committed Jun 9, 2017
1 parent c8c2785 commit 592d72f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/class-lablab-builder-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ public function loop(){
$this->loop->run_loop();

$this->active_modules = array_keys( $this->loop->get_active_modules() );

// sort array to prevent Beans Compiler from recompiling
// when only the order of modules in the loop did change
sort( $this->active_modules );
}

}

0 comments on commit 592d72f

Please sign in to comment.