Version Description
- Fixed a bug where, on some themes, metaboxes would still not appear when Gutenberg editor was active.
Download this release
Release Info
Developer | babbardel |
Plugin | PixTypes |
Version | 1.4.13 |
Comparing to | |
See all releases |
Code changes from version 1.4.12 to 1.4.13
- class-pixtypes.php +4 -8
- features/metaboxes/js/cmb.js +9 -9
- pixtypes.php +10 -6
- readme.txt +5 -1
class-pixtypes.php
CHANGED
@@ -682,14 +682,10 @@ class PixTypesPlugin {
|
|
682 |
}
|
683 |
|
684 |
if ( version_compare( wpgrade::themeversion(), $options['wpgrade_theme_version'], '!=' ) ) {
|
685 |
-
//
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
self::activate( false );
|
690 |
-
// end finally merge user's settings with the theme ones
|
691 |
-
save_pixtypes_settings( $options );
|
692 |
-
}
|
693 |
}
|
694 |
}
|
695 |
}
|
682 |
}
|
683 |
|
684 |
if ( version_compare( wpgrade::themeversion(), $options['wpgrade_theme_version'], '!=' ) ) {
|
685 |
+
// the plugin will copy these options into it's own field
|
686 |
+
self::activate( false );
|
687 |
+
// end finally merge user's settings with the theme ones
|
688 |
+
save_pixtypes_settings( $options );
|
|
|
|
|
|
|
|
|
689 |
}
|
690 |
}
|
691 |
}
|
features/metaboxes/js/cmb.js
CHANGED
@@ -101,12 +101,12 @@ jQuery(document).ready(function ($) {
|
|
101 |
$(this).after('<div id="picker-' + i + '" style="z-index: 1000; background: #EEE; border: 1px solid #CCC; position: absolute; display: block;"></div>');
|
102 |
$('#picker-' + i).hide().farbtastic($(this));
|
103 |
})
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
}
|
111 |
|
112 |
/**
|
@@ -197,7 +197,7 @@ jQuery(document).ready(function ($) {
|
|
197 |
* Ajax oEmbed display
|
198 |
*/
|
199 |
|
200 |
-
|
201 |
$('.cmb_oembed').bind('paste', function (e) {
|
202 |
var pasteitem = $(this);
|
203 |
// paste event is fired before the value is filled, so wait a bit
|
@@ -430,7 +430,8 @@ jQuery(document).ready(function ($) {
|
|
430 |
|
431 |
var condition = false;
|
432 |
$.each(value, function(key,val){
|
433 |
-
|
|
|
434 |
condition = true;
|
435 |
}
|
436 |
});
|
@@ -667,5 +668,4 @@ jQuery(document).ready(function ($) {
|
|
667 |
}
|
668 |
|
669 |
});
|
670 |
-
|
671 |
});
|
101 |
$(this).after('<div id="picker-' + i + '" style="z-index: 1000; background: #EEE; border: 1px solid #CCC; position: absolute; display: block;"></div>');
|
102 |
$('#picker-' + i).hide().farbtastic($(this));
|
103 |
})
|
104 |
+
.focus(function () {
|
105 |
+
$(this).next().show();
|
106 |
+
})
|
107 |
+
.blur(function () {
|
108 |
+
$(this).next().hide();
|
109 |
+
});
|
110 |
}
|
111 |
|
112 |
/**
|
197 |
* Ajax oEmbed display
|
198 |
*/
|
199 |
|
200 |
+
// ajax on paste
|
201 |
$('.cmb_oembed').bind('paste', function (e) {
|
202 |
var pasteitem = $(this);
|
203 |
// paste event is fired before the value is filled, so wait a bit
|
430 |
|
431 |
var condition = false;
|
432 |
$.each(value, function(key,val){
|
433 |
+
var $select = $('select#page_template').length ? $('select#page_template') : $('.editor-page-attributes__template select');
|
434 |
+
if ( $select.val() === val ) {
|
435 |
condition = true;
|
436 |
}
|
437 |
});
|
668 |
}
|
669 |
|
670 |
});
|
|
|
671 |
});
|
pixtypes.php
CHANGED
@@ -1,14 +1,18 @@
|
|
1 |
<?php
|
2 |
-
|
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.
|
|
|
7 |
* Author URI: https://pixelgrade.com
|
8 |
-
* Author Email:
|
9 |
-
*
|
|
|
10 |
* Text Domain: pixtypes
|
11 |
-
*
|
|
|
|
|
12 |
*/
|
13 |
|
14 |
// If this file is called directly, abort.
|
@@ -56,4 +60,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.
|
1 |
<?php
|
2 |
+
/**
|
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.13
|
7 |
+
* Author: Pixelgrade
|
8 |
* Author URI: https://pixelgrade.com
|
9 |
+
* Author Email: contact@pixelgrade.com
|
10 |
+
* Requires at least: 4.9.9
|
11 |
+
* Tested up to: 5.2.2
|
12 |
* Text Domain: pixtypes
|
13 |
+
* License: GPL-2.0 or later.
|
14 |
+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
15 |
+
* Domain Path: /lang
|
16 |
*/
|
17 |
|
18 |
// If this file is called directly, abort.
|
60 |
//register_deactivation_hook( __FILE__, array( 'PixTypesPlugin', 'deactivate' ) );
|
61 |
|
62 |
global $pixtypes_plugin;
|
63 |
+
$pixtypes_plugin = PixTypesPlugin::get_instance( '1.4.13' );
|
readme.txt
CHANGED
@@ -3,7 +3,8 @@ Contributors: pixelgrade, euthelup, babbardel, vlad.olaru, cristianfrumusanu, ra
|
|
3 |
Tags: custom, post-types, metadata, builder, gallery
|
4 |
Requires at least: 4.9.9
|
5 |
Tested up to: 5.2.2
|
6 |
-
|
|
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -23,6 +24,9 @@ Note: This plugin is addressed to developers, it doesn't do nothing if it isn't
|
|
23 |
|
24 |
== Changelog ==
|
25 |
|
|
|
|
|
|
|
26 |
= 1.4.12 =
|
27 |
* Fixed a bug where metaboxes wouldn't appear when Gutenberg editor was active.
|
28 |
* Code optimization.
|
3 |
Tags: custom, post-types, metadata, builder, gallery
|
4 |
Requires at least: 4.9.9
|
5 |
Tested up to: 5.2.2
|
6 |
+
Requires PHP: 5.3.0
|
7 |
+
Stable tag: 1.4.13
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
24 |
|
25 |
== Changelog ==
|
26 |
|
27 |
+
= 1.4.13 =
|
28 |
+
* Fixed a bug where, on some themes, metaboxes would still not appear when Gutenberg editor was active.
|
29 |
+
|
30 |
= 1.4.12 =
|
31 |
* Fixed a bug where metaboxes wouldn't appear when Gutenberg editor was active.
|
32 |
* Code optimization.
|