Skip to content

Commit

Permalink
Fixed undefined constant warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Hendricks committed May 4, 2020
1 parent 0e806f3 commit d88872b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tooltips.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static function enqueue_scripts() {

// Register script
wp_register_script( 'tippy-tooltips', $script_url, null, self::get_config( 'version' ), true );
if( TIPPY_ENQUEUE_SCRIPTS === false ) return;
if( defined( 'TIPPY_ENQUEUE_SCRIPTS') && TIPPY_ENQUEUE_SCRIPTS === false ) return;

// Enqueue script
if( $target === true || ( $action == 'wp_enqueue_scripts' && $target == 'public' ) || ( $action == 'admin_enqueue_scripts' && $target == 'admin' ) ) {
Expand Down

0 comments on commit d88872b

Please sign in to comment.