Smart Custom Fields - Version 3.1.1

Version Description

  • Fixed a bug of limit attribute at relation post types and taxonomies field.
Download this release

Release Info

Developer inc2734
Plugin Icon wp plugin Smart Custom Fields
Version 3.1.1
Comparing to
See all releases

Code changes from version 3.1.0 to 3.1.1

classes/fields/class.field-relation.php CHANGED
@@ -47,6 +47,13 @@ class Smart_Custom_Fields_Field_Relation extends Smart_Custom_Fields_Field_Base
47
  * @param string $hook
48
  */
49
  public function admin_enqueue_scripts( $hook ) {
 
 
 
 
 
 
 
50
  wp_enqueue_script(
51
  SCF_Config::PREFIX . 'editor-relation-post-types',
52
  plugins_url( SCF_Config::NAME ) . '/js/editor-relation-post-types.js',
47
  * @param string $hook
48
  */
49
  public function admin_enqueue_scripts( $hook ) {
50
+ wp_enqueue_script(
51
+ SCF_Config::PREFIX . 'editor-relation-common',
52
+ plugins_url( SCF_Config::NAME ) . '/js/editor-relation-common.js',
53
+ array( 'jquery' ),
54
+ null,
55
+ true
56
+ );
57
  wp_enqueue_script(
58
  SCF_Config::PREFIX . 'editor-relation-post-types',
59
  plugins_url( SCF_Config::NAME ) . '/js/editor-relation-post-types.js',
classes/fields/class.field-taxonomy.php CHANGED
@@ -47,6 +47,13 @@ class Smart_Custom_Fields_Field_Taxonomy extends Smart_Custom_Fields_Field_Base
47
  * @param string $hook
48
  */
49
  public function admin_enqueue_scripts( $hook ) {
 
 
 
 
 
 
 
50
  wp_enqueue_script(
51
  SCF_Config::PREFIX . 'editor-relation-taxonomies',
52
  plugins_url( SCF_Config::NAME ) . '/js/editor-relation-taxonomies.js',
47
  * @param string $hook
48
  */
49
  public function admin_enqueue_scripts( $hook ) {
50
+ wp_enqueue_script(
51
+ SCF_Config::PREFIX . 'editor-relation-common',
52
+ plugins_url( SCF_Config::NAME ) . '/js/editor-relation-common.js',
53
+ array( 'jquery' ),
54
+ null,
55
+ true
56
+ );
57
  wp_enqueue_script(
58
  SCF_Config::PREFIX . 'editor-relation-taxonomies',
59
  plugins_url( SCF_Config::NAME ) . '/js/editor-relation-taxonomies.js',
js/editor-relation-common.js ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery( function( $ ) {
2
+
3
+ var table_class = 'tr';
4
+
5
+ /**
6
+ * 選択肢
7
+ */
8
+ var choices_li = '.smart-cf-relation-children-select li';
9
+ $( '.smart-cf-meta-box' ).on( 'click', choices_li, function() {
10
+ var id = $( this ).data( 'id' );
11
+ var parent = $( this ).closest( table_class );
12
+ var limit = parent.find( '.smart-cf-relation-left' ).data( 'limit' );
13
+
14
+ if ( limit > 0 && limit <= parent.find( '.smart-cf-relation-right li' ).length ) {
15
+ return true;
16
+ }
17
+
18
+ if ( parent.find( '.smart-cf-relation-right li[data-id="' + id + '"]' ).length !== 0 ) {
19
+ return true;
20
+ }
21
+
22
+ var clone = $( this ).clone();
23
+ clone
24
+ .prepend( $( '<span class="smart-cf-icon-handle dashicons dashicons-menu"></span>' ) )
25
+ .append( $( '<span class="relation-remove">-</span>' ) );
26
+ parent.find( '.smart-cf-relation-right ul' ).append( clone );
27
+ update_relation_value( $( this ).closest( 'tr' ) );
28
+ } );
29
+
30
+ /**
31
+ * 選択済み項目の削除
32
+ */
33
+ var relation_remove = '.smart-cf-relation-right li .relation-remove';
34
+ $( '.smart-cf-meta-box' ).on( 'click', relation_remove, function() {
35
+ var tr = $( this ).closest( 'tr' );
36
+ $( this ).parent().remove();
37
+ update_relation_value( tr );
38
+ } );
39
+
40
+ /**
41
+ * update_relation_value
42
+ * @param dom tr
43
+ */
44
+ function update_relation_value( tr ) {
45
+ var hidden = tr.find( 'input[type="hidden"]' );
46
+ hidden.each( function( i, e ) {
47
+ if ( i !== 0 ) {
48
+ $( this ).remove();
49
+ }
50
+ } );
51
+ tr.find( '.smart-cf-relation-right li' ).each( function( i, e ) {
52
+ var hidden_box = $( this ).closest( table_class ).find( '.smart-cf-relation-children-select' );
53
+ var id = $( this ).data( 'id' );
54
+ var clone = hidden.first().clone();
55
+ var name = clone.attr( 'name' );
56
+ clone.attr( 'name', name + '[]' );
57
+ clone.val( id );
58
+ hidden_box.append( clone );
59
+ } );
60
+ }
61
+
62
+ /**
63
+ * sortable
64
+ */
65
+ $( '.smart-cf-meta-box .smart-cf-relation-right ul' ).sortable( {
66
+ handle: '.smart-cf-icon-handle',
67
+ update: function() {
68
+ update_relation_value( $( this ).closest( 'tr' ) );
69
+ }
70
+ } );
71
+
72
+ } );
js/editor-relation-post-types.js CHANGED
@@ -90,75 +90,4 @@ jQuery( function( $ ) {
90
  );
91
  return false;
92
  }
93
-
94
- /**
95
- * 選択肢
96
- */
97
- var choices_li = '.smart-cf-relation-children-select li';
98
- $( '.smart-cf-meta-box' ).on( 'click', choices_li, function() {
99
- var id = $( this ).data( 'id' );
100
- var parent = $( this ).closest( table_class );
101
- var limit = parent.find( '.smart-cf-relation-left' ).data( 'limit' );
102
-
103
- if ( limit <= 0 ) {
104
- return true;
105
- }
106
-
107
- if ( limit <= parent.find( '.smart-cf-relation-right li' ).length ) {
108
- return true;
109
- }
110
-
111
- if ( parent.find( '.smart-cf-relation-right li[data-id="' + id + '"]' ).length !== 0 ) {
112
- return true;
113
- }
114
-
115
- var clone = $( this ).clone();
116
- clone
117
- .prepend( $( '<span class="smart-cf-icon-handle dashicons dashicons-menu"></span>' ) )
118
- .append( $( '<span class="relation-remove">-</span>' ) );
119
- parent.find( '.smart-cf-relation-right ul' ).append( clone );
120
- update_relation_value( $( this ).closest( 'tr' ) );
121
- } );
122
-
123
- /**
124
- * 選択済み項目の削除
125
- */
126
- var relation_remove = '.smart-cf-relation-right li .relation-remove';
127
- $( '.smart-cf-meta-box' ).on( 'click', relation_remove, function() {
128
- var tr = $( this ).closest( 'tr' );
129
- $( this ).parent().remove();
130
- update_relation_value( tr );
131
- } );
132
-
133
- /**
134
- * update_relation_value
135
- * @param dom tr
136
- */
137
- function update_relation_value( tr ) {
138
- var hidden = tr.find( 'input[type="hidden"]' );
139
- hidden.each( function( i, e ) {
140
- if ( i !== 0 ) {
141
- $( this ).remove();
142
- }
143
- } );
144
- tr.find( '.smart-cf-relation-right li' ).each( function( i, e ) {
145
- var hidden_box = $( this ).closest( table_class ).find( '.smart-cf-relation-children-select' );
146
- var id = $( this ).data( 'id' );
147
- var clone = hidden.first().clone();
148
- var name = clone.attr( 'name' );
149
- clone.attr( 'name', name + '[]' );
150
- clone.val( id );
151
- hidden_box.append( clone );
152
- } );
153
- }
154
-
155
- /**
156
- * sortable
157
- */
158
- $( '.smart-cf-meta-box .smart-cf-relation-right ul' ).sortable( {
159
- handle: '.smart-cf-icon-handle',
160
- update: function() {
161
- update_relation_value( $( this ).closest( 'tr' ) );
162
- }
163
- } );
164
  } );
90
  );
91
  return false;
92
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  } );
languages/smart-custom-fields-ja.mo CHANGED
Binary file
languages/smart-custom-fields-ja.po CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the Smart Custom Fields package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Smart Custom Fields 3.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smart-custom-fields\n"
7
- "POT-Creation-Date: 2017-01-27 22:26+0900\n"
8
- "PO-Revision-Date: 2017-01-27 22:26+0900\n"
9
  "Last-Translator: inc2734 <inc@2inc.org>\n"
10
  "Language-Team: \n"
11
  "Language: ja\n"
@@ -83,7 +83,7 @@ msgid "Add Field"
83
  msgstr "フィールド追加"
84
 
85
  #: classes/controller/class.settings.php:232
86
- #: classes/fields/class.field-relation.php:218
87
  msgid "Post Types"
88
  msgstr "投稿タイプ"
89
 
@@ -96,7 +96,7 @@ msgid "Roles"
96
  msgstr "権限"
97
 
98
  #: classes/controller/class.settings.php:290
99
- #: classes/fields/class.field-taxonomy.php:221
100
  msgid "Taxonomies"
101
  msgstr "タクソノミー"
102
 
@@ -139,9 +139,9 @@ msgstr "FALSE ラベル"
139
  #: classes/fields/class.field-datepicker.php:189
140
  #: classes/fields/class.field-file.php:111 classes/fields/class.field-image.php:112
141
  #: classes/fields/class.field-radio.php:125
142
- #: classes/fields/class.field-relation.php:247
143
  #: classes/fields/class.field-select.php:100
144
- #: classes/fields/class.field-taxonomy.php:248 classes/fields/class.field-text.php:75
145
  #: classes/fields/class.field-textarea.php:88
146
  #: classes/fields/class.field-wysiwyg.php:128
147
  msgid "Instruction"
@@ -153,9 +153,9 @@ msgstr "説明文"
153
  #: classes/fields/class.field-datepicker.php:196
154
  #: classes/fields/class.field-file.php:118 classes/fields/class.field-image.php:119
155
  #: classes/fields/class.field-radio.php:132
156
- #: classes/fields/class.field-relation.php:254
157
  #: classes/fields/class.field-select.php:107
158
- #: classes/fields/class.field-taxonomy.php:255 classes/fields/class.field-text.php:82
159
  #: classes/fields/class.field-textarea.php:95
160
  #: classes/fields/class.field-wysiwyg.php:135
161
  msgid "Notes"
@@ -248,18 +248,18 @@ msgstr "ラジオボタン"
248
  msgid "Relation ( Post Types )"
249
  msgstr "関連(投稿タイプ)"
250
 
251
- #: classes/fields/class.field-relation.php:196
252
- #: classes/fields/class.field-taxonomy.php:199
253
  msgid "Search..."
254
  msgstr "検索 …"
255
 
256
- #: classes/fields/class.field-relation.php:200
257
- #: classes/fields/class.field-taxonomy.php:203
258
  msgid "Load more"
259
  msgstr "さらに読み込む"
260
 
261
- #: classes/fields/class.field-relation.php:239
262
- #: classes/fields/class.field-taxonomy.php:240
263
  msgid "Selectable number"
264
  msgstr "選択できる個数"
265
 
@@ -308,6 +308,11 @@ msgstr "繰り返し"
308
  msgid "Group name"
309
  msgstr "グループ名"
310
 
 
 
 
 
 
311
  #: smart-custom-fields.php:170 smart-custom-fields.php:171
312
  #: smart-custom-fields.php:217 smart-custom-fields.php:218
313
  msgid "Add New"
@@ -345,10 +350,6 @@ msgstr "フィールドは見つかりませんでした。"
345
  msgid "No Fields found in Trash."
346
  msgstr "ゴミ箱にフィールドは見つかりませんでした"
347
 
348
- #. Plugin Name of the plugin/theme
349
- msgid "Smart Custom Fields"
350
- msgstr "Smart Custom Fields"
351
-
352
  #. Plugin URI of the plugin/theme
353
  msgid "https://github.com/inc2734/smart-custom-fields/"
354
  msgstr "https://github.com/inc2734/smart-custom-fields/"
2
  # This file is distributed under the same license as the Smart Custom Fields package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Smart Custom Fields 3.1.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smart-custom-fields\n"
7
+ "POT-Creation-Date: 2017-01-27 22:58+0900\n"
8
+ "PO-Revision-Date: 2017-01-27 22:59+0900\n"
9
  "Last-Translator: inc2734 <inc@2inc.org>\n"
10
  "Language-Team: \n"
11
  "Language: ja\n"
83
  msgstr "フィールド追加"
84
 
85
  #: classes/controller/class.settings.php:232
86
+ #: classes/fields/class.field-relation.php:225
87
  msgid "Post Types"
88
  msgstr "投稿タイプ"
89
 
96
  msgstr "権限"
97
 
98
  #: classes/controller/class.settings.php:290
99
+ #: classes/fields/class.field-taxonomy.php:228
100
  msgid "Taxonomies"
101
  msgstr "タクソノミー"
102
 
139
  #: classes/fields/class.field-datepicker.php:189
140
  #: classes/fields/class.field-file.php:111 classes/fields/class.field-image.php:112
141
  #: classes/fields/class.field-radio.php:125
142
+ #: classes/fields/class.field-relation.php:254
143
  #: classes/fields/class.field-select.php:100
144
+ #: classes/fields/class.field-taxonomy.php:255 classes/fields/class.field-text.php:75
145
  #: classes/fields/class.field-textarea.php:88
146
  #: classes/fields/class.field-wysiwyg.php:128
147
  msgid "Instruction"
153
  #: classes/fields/class.field-datepicker.php:196
154
  #: classes/fields/class.field-file.php:118 classes/fields/class.field-image.php:119
155
  #: classes/fields/class.field-radio.php:132
156
+ #: classes/fields/class.field-relation.php:261
157
  #: classes/fields/class.field-select.php:107
158
+ #: classes/fields/class.field-taxonomy.php:262 classes/fields/class.field-text.php:82
159
  #: classes/fields/class.field-textarea.php:95
160
  #: classes/fields/class.field-wysiwyg.php:135
161
  msgid "Notes"
248
  msgid "Relation ( Post Types )"
249
  msgstr "関連(投稿タイプ)"
250
 
251
+ #: classes/fields/class.field-relation.php:203
252
+ #: classes/fields/class.field-taxonomy.php:206
253
  msgid "Search..."
254
  msgstr "検索 …"
255
 
256
+ #: classes/fields/class.field-relation.php:207
257
+ #: classes/fields/class.field-taxonomy.php:210
258
  msgid "Load more"
259
  msgstr "さらに読み込む"
260
 
261
+ #: classes/fields/class.field-relation.php:246
262
+ #: classes/fields/class.field-taxonomy.php:247
263
  msgid "Selectable number"
264
  msgstr "選択できる個数"
265
 
308
  msgid "Group name"
309
  msgstr "グループ名"
310
 
311
+ #: classes/models/class.revisions.php:128 smart-custom-fields.php:167
312
+ #: smart-custom-fields.php:168 smart-custom-fields.php:169
313
+ msgid "Smart Custom Fields"
314
+ msgstr "Smart Custom Fields"
315
+
316
  #: smart-custom-fields.php:170 smart-custom-fields.php:171
317
  #: smart-custom-fields.php:217 smart-custom-fields.php:218
318
  msgid "Add New"
350
  msgid "No Fields found in Trash."
351
  msgstr "ゴミ箱にフィールドは見つかりませんでした"
352
 
 
 
 
 
353
  #. Plugin URI of the plugin/theme
354
  msgid "https://github.com/inc2734/smart-custom-fields/"
355
  msgstr "https://github.com/inc2734/smart-custom-fields/"
languages/smart-custom-fields.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Smart Custom Fields package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Smart Custom Fields 3.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smart-custom-fields\n"
7
- "POT-Creation-Date: 2017-01-27 13:14:54+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -78,7 +78,7 @@ msgid "Add Field"
78
  msgstr ""
79
 
80
  #: classes/controller/class.settings.php:232
81
- #: classes/fields/class.field-relation.php:218
82
  msgid "Post Types"
83
  msgstr ""
84
 
@@ -91,7 +91,7 @@ msgid "Roles"
91
  msgstr ""
92
 
93
  #: classes/controller/class.settings.php:290
94
- #: classes/fields/class.field-taxonomy.php:221
95
  msgid "Taxonomies"
96
  msgstr ""
97
 
@@ -138,9 +138,9 @@ msgstr ""
138
  #: classes/fields/class.field-file.php:111
139
  #: classes/fields/class.field-image.php:112
140
  #: classes/fields/class.field-radio.php:125
141
- #: classes/fields/class.field-relation.php:247
142
  #: classes/fields/class.field-select.php:100
143
- #: classes/fields/class.field-taxonomy.php:248
144
  #: classes/fields/class.field-text.php:75
145
  #: classes/fields/class.field-textarea.php:88
146
  #: classes/fields/class.field-wysiwyg.php:128
@@ -154,9 +154,9 @@ msgstr ""
154
  #: classes/fields/class.field-file.php:118
155
  #: classes/fields/class.field-image.php:119
156
  #: classes/fields/class.field-radio.php:132
157
- #: classes/fields/class.field-relation.php:254
158
  #: classes/fields/class.field-select.php:107
159
- #: classes/fields/class.field-taxonomy.php:255
160
  #: classes/fields/class.field-text.php:82
161
  #: classes/fields/class.field-textarea.php:95
162
  #: classes/fields/class.field-wysiwyg.php:135
@@ -256,18 +256,18 @@ msgstr ""
256
  msgid "Relation ( Post Types )"
257
  msgstr ""
258
 
259
- #: classes/fields/class.field-relation.php:196
260
- #: classes/fields/class.field-taxonomy.php:199
261
  msgid "Search..."
262
  msgstr ""
263
 
264
- #: classes/fields/class.field-relation.php:200
265
- #: classes/fields/class.field-taxonomy.php:203
266
  msgid "Load more"
267
  msgstr ""
268
 
269
- #: classes/fields/class.field-relation.php:239
270
- #: classes/fields/class.field-taxonomy.php:240
271
  msgid "Selectable number"
272
  msgstr ""
273
 
@@ -316,6 +316,11 @@ msgstr ""
316
  msgid "Group name"
317
  msgstr ""
318
 
 
 
 
 
 
319
  #: smart-custom-fields.php:170 smart-custom-fields.php:171
320
  #: smart-custom-fields.php:217 smart-custom-fields.php:218
321
  msgid "Add New"
@@ -352,9 +357,6 @@ msgstr ""
352
  #: smart-custom-fields.php:179
353
  msgid "No Fields found in Trash."
354
  msgstr ""
355
- #. Plugin Name of the plugin/theme
356
- msgid "Smart Custom Fields"
357
- msgstr ""
358
 
359
  #. Plugin URI of the plugin/theme
360
  msgid "https://github.com/inc2734/smart-custom-fields/"
2
  # This file is distributed under the same license as the Smart Custom Fields package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Smart Custom Fields 3.1.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smart-custom-fields\n"
7
+ "POT-Creation-Date: 2017-01-27 13:56:52+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
78
  msgstr ""
79
 
80
  #: classes/controller/class.settings.php:232
81
+ #: classes/fields/class.field-relation.php:225
82
  msgid "Post Types"
83
  msgstr ""
84
 
91
  msgstr ""
92
 
93
  #: classes/controller/class.settings.php:290
94
+ #: classes/fields/class.field-taxonomy.php:228
95
  msgid "Taxonomies"
96
  msgstr ""
97
 
138
  #: classes/fields/class.field-file.php:111
139
  #: classes/fields/class.field-image.php:112
140
  #: classes/fields/class.field-radio.php:125
141
+ #: classes/fields/class.field-relation.php:254
142
  #: classes/fields/class.field-select.php:100
143
+ #: classes/fields/class.field-taxonomy.php:255
144
  #: classes/fields/class.field-text.php:75
145
  #: classes/fields/class.field-textarea.php:88
146
  #: classes/fields/class.field-wysiwyg.php:128
154
  #: classes/fields/class.field-file.php:118
155
  #: classes/fields/class.field-image.php:119
156
  #: classes/fields/class.field-radio.php:132
157
+ #: classes/fields/class.field-relation.php:261
158
  #: classes/fields/class.field-select.php:107
159
+ #: classes/fields/class.field-taxonomy.php:262
160
  #: classes/fields/class.field-text.php:82
161
  #: classes/fields/class.field-textarea.php:95
162
  #: classes/fields/class.field-wysiwyg.php:135
256
  msgid "Relation ( Post Types )"
257
  msgstr ""
258
 
259
+ #: classes/fields/class.field-relation.php:203
260
+ #: classes/fields/class.field-taxonomy.php:206
261
  msgid "Search..."
262
  msgstr ""
263
 
264
+ #: classes/fields/class.field-relation.php:207
265
+ #: classes/fields/class.field-taxonomy.php:210
266
  msgid "Load more"
267
  msgstr ""
268
 
269
+ #: classes/fields/class.field-relation.php:246
270
+ #: classes/fields/class.field-taxonomy.php:247
271
  msgid "Selectable number"
272
  msgstr ""
273
 
316
  msgid "Group name"
317
  msgstr ""
318
 
319
+ #: classes/models/class.revisions.php:128 smart-custom-fields.php:167
320
+ #: smart-custom-fields.php:168 smart-custom-fields.php:169
321
+ msgid "Smart Custom Fields"
322
+ msgstr ""
323
+
324
  #: smart-custom-fields.php:170 smart-custom-fields.php:171
325
  #: smart-custom-fields.php:217 smart-custom-fields.php:218
326
  msgid "Add New"
357
  #: smart-custom-fields.php:179
358
  msgid "No Fields found in Trash."
359
  msgstr ""
 
 
 
360
 
361
  #. Plugin URI of the plugin/theme
362
  msgid "https://github.com/inc2734/smart-custom-fields/"
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.1
7
- Stable tag: 3.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -125,6 +125,9 @@ You can send your own language pack to me.
125
 
126
  == Changelog ==
127
 
 
 
 
128
  = 3.1.0 =
129
  * Added limit attribute at relation post types and taxonomies field.
130
 
4
  Tags: plugin, custom field, custom, field, meta, meta field, repeat, repeatable
5
  Requires at least: 3.9
6
  Tested up to: 4.7.1
7
+ Stable tag: 3.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
125
 
126
  == Changelog ==
127
 
128
+ = 3.1.1 =
129
+ * Fixed a bug of limit attribute at relation post types and taxonomies field.
130
+
131
  = 3.1.0 =
132
  * Added limit attribute at relation post types and taxonomies field.
133
 
smart-custom-fields.php CHANGED
@@ -3,7 +3,7 @@
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.0
7
  * Author: inc2734
8
  * Author URI: http://2inc.org
9
  * Created: October 9, 2014
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.1
7
  * Author: inc2734
8
  * Author URI: http://2inc.org
9
  * Created: October 9, 2014