Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
lstoyanoff committed Apr 22, 2020
2 parents e0bcaab + 73c5cb6 commit 016e6ba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Define version constant
if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
define( __NAMESPACE__ . '\VERSION', '3.1.17' );
define( __NAMESPACE__ . '\VERSION', '3.1.18' );
}

# Define root directory
Expand Down
2 changes: 1 addition & 1 deletion core/Field/Text_Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ class Text_Field extends Field {
/**
* {@inheritDoc}
*/
protected $allowed_attributes = array( 'max', 'maxLength', 'min', 'pattern', 'placeholder', 'readOnly', 'step', 'type' );
protected $allowed_attributes = array( 'list', 'max', 'maxLength', 'min', 'pattern', 'placeholder', 'readOnly', 'step', 'type' );
}
2 changes: 1 addition & 1 deletion core/Loader/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function enqueue_media_browser() {
* @return string
*/
protected function get_assets_context() {
return wp_script_is( 'wp-element' ) ? 'gutenberg' : 'classic';
return get_current_screen()->is_block_editor() ? 'gutenberg' : 'classic';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "carbon-fields",
"version": "3.1.17",
"version": "3.1.18",
"description": "WordPress developer-friendly custom fields for post types, taxonomy terms, users, comments, widgets, options, navigation menus and more.",
"directories": {
"test": "tests"
Expand Down

0 comments on commit 016e6ba

Please sign in to comment.