PixTypes - Version 1.4.10

Version Description

  • Fixed a bug related to not being able to empty file/image fields.
Download this release

Release Info

Developer pixelgrade
Plugin Icon wp plugin PixTypes
Version 1.4.10
Comparing to
See all releases

Code changes from version 1.4.9 to 1.4.10

features/metaboxes/css/style.css CHANGED
@@ -3412,6 +3412,8 @@ body .mce-toolbar.mce-last .mce-container.mce-first .mce-menubtn.mce-first .mce-
3412
  align-items: center; }
3413
  .cmb-type-colorpicker .wp-color-result:after {
3414
  content: none; }
 
 
3415
  .cmb-type-colorpicker .wp-picker-container {
3416
  position: absolute;
3417
  right: 0;
3412
  align-items: center; }
3413
  .cmb-type-colorpicker .wp-color-result:after {
3414
  content: none; }
3415
+ .cmb-type-colorpicker .wp-color-result .wp-color-result-text {
3416
+ display: none; }
3417
  .cmb-type-colorpicker .wp-picker-container {
3418
  position: absolute;
3419
  right: 0;
features/metaboxes/init.php CHANGED
@@ -1012,19 +1012,19 @@ class cmb_Meta_Box {
1012
  // validate meta value
1013
  if ( isset( $field['validate_func'] ) ) {
1014
  $ok = call_user_func( $field['validate_func'], $new, $field, $post_id );
1015
- if ( $ok === false ) { // pass away when meta value is invalid
1016
  continue;
1017
  }
1018
- } elseif ( $field['multiple'] ) {
 
 
1019
  delete_post_meta( $post_id, $name );
1020
  if ( ! empty( $new ) ) {
1021
  foreach ( $new as $add_new ) {
1022
  add_post_meta( $post_id, $name, $add_new, false );
1023
  }
1024
  }
1025
- } elseif ( '' !== $new && $new != $old ) {
1026
- update_post_meta( $post_id, $name, $new );
1027
- } elseif ( '' == $new ) {
1028
  update_post_meta( $post_id, $name, $new );
1029
  }
1030
 
1012
  // validate meta value
1013
  if ( isset( $field['validate_func'] ) ) {
1014
  $ok = call_user_func( $field['validate_func'], $new, $field, $post_id );
1015
+ if ( $ok === false ) { // do nothing when meta value is invalid
1016
  continue;
1017
  }
1018
+ }
1019
+
1020
+ if ( $field['multiple'] ) {
1021
  delete_post_meta( $post_id, $name );
1022
  if ( ! empty( $new ) ) {
1023
  foreach ( $new as $add_new ) {
1024
  add_post_meta( $post_id, $name, $add_new, false );
1025
  }
1026
  }
1027
+ } elseif ( '' == $new || $new != $old ) {
 
 
1028
  update_post_meta( $post_id, $name, $new );
1029
  }
1030
 
features/metaboxes/scss/style.scss CHANGED
@@ -2413,6 +2413,10 @@ body .mce-toolbar.mce-last .mce-container.mce-first .mce-menubtn.mce-first {
2413
  &:after {
2414
  content: none;
2415
  }
 
 
 
 
2416
  }
2417
 
2418
  .wp-picker-container {
2413
  &:after {
2414
  content: none;
2415
  }
2416
+
2417
+ .wp-color-result-text {
2418
+ display: none;
2419
+ }
2420
  }
2421
 
2422
  .wp-picker-container {
pixtypes.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: PixTypes
4
  * Plugin URI: https://wordpress.org/plugins/pixtypes/
5
  * Description: Custom post types and meta-boxes needed by your themes.
6
- * Version: 1.4.9
7
  * Author URI: https://pixelgrade.com
8
  * Author Email: hello@pixelgrade.com
9
  * License: GPL2+
@@ -56,4 +56,4 @@ register_activation_hook( __FILE__, array( 'PixTypesPlugin', 'activate' ) );
56
  //register_deactivation_hook( __FILE__, array( 'PixTypesPlugin', 'deactivate' ) );
57
 
58
  global $pixtypes_plugin;
59
- $pixtypes_plugin = PixTypesPlugin::get_instance( '1.4.9' );
3
  * Plugin Name: PixTypes
4
  * Plugin URI: https://wordpress.org/plugins/pixtypes/
5
  * Description: Custom post types and meta-boxes needed by your themes.
6
+ * Version: 1.4.10
7
  * Author URI: https://pixelgrade.com
8
  * Author Email: hello@pixelgrade.com
9
  * License: GPL2+
56
  //register_deactivation_hook( __FILE__, array( 'PixTypesPlugin', 'deactivate' ) );
57
 
58
  global $pixtypes_plugin;
59
+ $pixtypes_plugin = PixTypesPlugin::get_instance( '1.4.10' );
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: pixelgrade, euthelup, babbardel, vlad.olaru, cristianfrumusanu, razvanonofrei
3
  Tags: custom, post-types, metadata, builder, gallery
4
  Requires at least: 4.6.0
5
- Tested up to: 4.8.2
6
- Stable tag: 1.4.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -23,6 +23,12 @@ Note: This plugin is addressed to developers, it doesn't do nothing if it isn't
23
 
24
  == Changelog ==
25
 
 
 
 
 
 
 
26
  = 1.4.8 =
27
  * Cleanup and refactoring.
28
  * Allow for field validation functions independent of CMB.
2
  Contributors: pixelgrade, euthelup, babbardel, vlad.olaru, cristianfrumusanu, razvanonofrei
3
  Tags: custom, post-types, metadata, builder, gallery
4
  Requires at least: 4.6.0
5
+ Tested up to: 4.9.8
6
+ Stable tag: 1.4.9
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
23
 
24
  == Changelog ==
25
 
26
+ = 1.4.10 =
27
+ * Fixed a bug related to not being able to empty file/image fields.
28
+
29
+ = 1.4.9 =
30
+ * Workflow to configure metaboxes dynamically rather than through the database.
31
+
32
  = 1.4.8 =
33
  * Cleanup and refactoring.
34
  * Allow for field validation functions independent of CMB.