Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:CMB2/CMB2 into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Feb 15, 2022
2 parents cc74f12 + 1a730c9 commit 4addf91
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions includes/CMB2_JS.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@ public static function register_colorpicker_alpha( $enqueue = false ) {
$min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
$func = $enqueue ? 'wp_enqueue_script' : 'wp_register_script';
$func( 'wp-color-picker-alpha', CMB2_Utils::url( "js/wp-color-picker-alpha{$min}.js" ), array( 'wp-color-picker' ), '2.1.3' );
wp_localize_script( 'wp-color-picker-alpha', 'wpColorPickerL10n', array(
'clear' => __( 'Clear', 'cmb2' ),
'clearAriaLabel' => __( 'Clear color', 'cmb2' ),
'defaultString' => __( 'Default', 'cmb2' ),
'defaultAriaLabel' => __( 'Select default color', 'cmb2' ),
'pick' => __( 'Select Color', 'cmb2' ),
'defaultLabel' => __( 'Color value', 'cmb2' ),
) );
}

/**
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4addf91

Please sign in to comment.