Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
Bug fix. Make sure edit-role.js is only loaded on the role manageme…
Browse files Browse the repository at this point in the history
…nt screens.
  • Loading branch information
Justin Tadlock committed Sep 15, 2015
1 parent 565004b commit 6d7ed13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions admin/class-manage-roles.php
Expand Up @@ -126,11 +126,12 @@ public function load() {
*
* @since 1.0.0
* @access public
* @param string $hook_suffix
* @return void
*/
public function enqueue() {
public function enqueue( $hook_suffix ) {

if ( method_exists( $this->page_obj, 'enqueue' ) )
if ( $this->page === $hook_suffix && method_exists( $this->page_obj, 'enqueue' ) )
$this->page_obj->enqueue();
}

Expand Down

0 comments on commit 6d7ed13

Please sign in to comment.