Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Applied carasmo's solution (#5 (comment))
Browse files Browse the repository at this point in the history
  • Loading branch information
Mina Nielsen committed Dec 5, 2017
1 parent 71836c5 commit 82d445a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion php/class-controller-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ function __construct() {
* Do Work
*/
public function run() {
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
global $pagenow;
if ( $pagenow != 'media-new.php' ) {
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=== Link Picker for CMB2 ===
Contributors: mkdo, mwtsn, sagetopia
Contributors: mkdo, mwtsn, sagetopia, moorlater
Donate link:
Tags: link, link picker, cmb2
Requires at least: 4.5
Expand Down

0 comments on commit 82d445a

Please sign in to comment.