Version Description
- Remove no used codes.
- Fixed a bug that name disappears when opening / closing a field. #51 (by @yousan)
Download this release
Release Info
Developer | inc2734 |
Plugin | Smart Custom Fields |
Version | 3.1.4 |
Comparing to | |
See all releases |
Code changes from version 3.1.3 to 3.1.4
- classes/models/class.meta.php +0 -3
- js/settings.js +3 -5
- readme.txt +7 -3
- smart-custom-fields.php +2 -2
classes/models/class.meta.php
CHANGED
@@ -44,9 +44,6 @@ class Smart_Custom_Fields_Meta {
|
|
44 |
* @param WP_Post|WP_User|WP_Term|stdClass $object
|
45 |
*/
|
46 |
public function __construct( $object ) {
|
47 |
-
if ( !function_exists( 'get_editable_roles' ) ) {
|
48 |
-
require_once( ABSPATH . '/wp-admin/includes/user.php' );
|
49 |
-
}
|
50 |
$this->object = $object;
|
51 |
if ( is_a( $object, 'WP_Post' ) ) {
|
52 |
$this->id = $object->ID;
|
44 |
* @param WP_Post|WP_User|WP_Term|stdClass $object
|
45 |
*/
|
46 |
public function __construct( $object ) {
|
|
|
|
|
|
|
47 |
$this->object = $object;
|
48 |
if ( is_a( $object, 'WP_Post' ) ) {
|
49 |
$this->id = $object->ID;
|
js/settings.js
CHANGED
@@ -79,16 +79,14 @@ jQuery( function( $ ) {
|
|
79 |
} );
|
80 |
} else {
|
81 |
var label = table.find( '.smart-cf-field-label' ).val();
|
|
|
|
|
82 |
if ( !label ) {
|
83 |
label = table.find( '.smart-cf-field-name' ).val();
|
84 |
}
|
85 |
table.fadeOut( 'fast', function() {
|
86 |
$( this ).addClass( 'hide' );
|
87 |
-
|
88 |
-
field_label.text( label );
|
89 |
-
} else {
|
90 |
-
field_label.html( " " );
|
91 |
-
}
|
92 |
} );
|
93 |
}
|
94 |
} );
|
79 |
} );
|
80 |
} else {
|
81 |
var label = table.find( '.smart-cf-field-label' ).val();
|
82 |
+
var name = $( '<small>' ).text( '[ ' + table.find('.smart-cf-field-name').val() + ' ]' );
|
83 |
+
|
84 |
if ( !label ) {
|
85 |
label = table.find( '.smart-cf-field-name' ).val();
|
86 |
}
|
87 |
table.fadeOut( 'fast', function() {
|
88 |
$( this ).addClass( 'hide' );
|
89 |
+
field_label.text( label + " " ).append( name );
|
|
|
|
|
|
|
|
|
90 |
} );
|
91 |
}
|
92 |
} );
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Smart Custom Fields ===
|
2 |
-
Contributors: inc2734, toro_unit, mimosafa, hideokamoto, hisako-isaka, kurudrive, hanamura, justinticktock, designhehe, mayukojpn
|
3 |
Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
|
4 |
Tags: plugin, custom field, custom, field, meta, meta field, repeat, repeatable
|
5 |
Requires at least: 3.9
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 3.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -127,6 +127,10 @@ You can translate this plugin into your language by using [GlotPress](https://tr
|
|
127 |
|
128 |
== Changelog ==
|
129 |
|
|
|
|
|
|
|
|
|
130 |
= 3.1.3 =
|
131 |
* Fix Selectable number bug
|
132 |
|
1 |
=== Smart Custom Fields ===
|
2 |
+
Contributors: inc2734, toro_unit, mimosafa, hideokamoto, hisako-isaka, kurudrive, hanamura, justinticktock, designhehe, mayukojpn, hogetan
|
3 |
Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
|
4 |
Tags: plugin, custom field, custom, field, meta, meta field, repeat, repeatable
|
5 |
Requires at least: 3.9
|
6 |
+
Tested up to: 4.8.0
|
7 |
+
Stable tag: 3.1.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
127 |
|
128 |
== Changelog ==
|
129 |
|
130 |
+
= 3.1.4 =
|
131 |
+
* Remove no used codes.
|
132 |
+
* Fixed a bug that name disappears when opening / closing a field. #51 (by [@yousan](https://github.com/yousan))
|
133 |
+
|
134 |
= 3.1.3 =
|
135 |
* Fix Selectable number bug
|
136 |
|
smart-custom-fields.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Plugin name: Smart Custom Fields
|
4 |
* Plugin URI: https://github.com/inc2734/smart-custom-fields/
|
5 |
* Description: Smart Custom Fields is a simple plugin that management custom fields.
|
6 |
-
* Version: 3.1.
|
7 |
* Author: inc2734
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: October 9, 2014
|
10 |
-
* Modified:
|
11 |
* Text Domain: smart-custom-fields
|
12 |
* Domain Path: /languages
|
13 |
* License: GPLv2 or later
|
3 |
* Plugin name: Smart Custom Fields
|
4 |
* Plugin URI: https://github.com/inc2734/smart-custom-fields/
|
5 |
* Description: Smart Custom Fields is a simple plugin that management custom fields.
|
6 |
+
* Version: 3.1.4
|
7 |
* Author: inc2734
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: October 9, 2014
|
10 |
+
* Modified: June 29, 2017
|
11 |
* Text Domain: smart-custom-fields
|
12 |
* Domain Path: /languages
|
13 |
* License: GPLv2 or later
|