Smart Custom Fields - Version 3.1.2

Version Description

  • Update readme.txt
Download this release

Release Info

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

Code changes from version 3.1.1 to 3.1.2

classes/fields/{class.field-relation.php → class.field-related-posts.php} RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Smart_Custom_Fields_Field_Relation
4
  * Version : 1.4.0
5
  * Author : inc2734
6
  * Created : October 7, 2014
@@ -8,7 +8,7 @@
8
  * License : GPLv2 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
11
- class Smart_Custom_Fields_Field_Relation extends Smart_Custom_Fields_Field_Base {
12
 
13
  /**
14
  * Set the required items
@@ -21,7 +21,7 @@ class Smart_Custom_Fields_Field_Relation extends Smart_Custom_Fields_Field_Base
21
  add_filter( 'smart-cf-validate-get-value', array( $this, 'validate_get_value' ), 10, 2 );
22
  return array(
23
  'type' => 'relation',
24
- 'display-name' => __( 'Relation ( Post Types )', 'smart-custom-fields' ),
25
  'optgroup' => 'other-fields',
26
  'allow-multiple-data' => true,
27
  );
1
  <?php
2
  /**
3
+ * Smart_Custom_Fields_Field_Related_Posts
4
  * Version : 1.4.0
5
  * Author : inc2734
6
  * Created : October 7, 2014
8
  * License : GPLv2 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
11
+ class Smart_Custom_Fields_Field_Related_Posts extends Smart_Custom_Fields_Field_Base {
12
 
13
  /**
14
  * Set the required items
21
  add_filter( 'smart-cf-validate-get-value', array( $this, 'validate_get_value' ), 10, 2 );
22
  return array(
23
  'type' => 'relation',
24
+ 'display-name' => __( 'Related Posts', 'smart-custom-fields' ),
25
  'optgroup' => 'other-fields',
26
  'allow-multiple-data' => true,
27
  );
classes/fields/{class.field-taxonomy.php → class.field-related-terms.php} RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Smart_Custom_Fields_Field_Taxonomy
4
  * Version : 1.5.0
5
  * Author : inc2734
6
  * Created : October 7, 2014
@@ -8,7 +8,7 @@
8
  * License : GPLv2 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
11
- class Smart_Custom_Fields_Field_Taxonomy extends Smart_Custom_Fields_Field_Base {
12
 
13
  /**
14
  * Set the required items
@@ -21,7 +21,7 @@ class Smart_Custom_Fields_Field_Taxonomy extends Smart_Custom_Fields_Field_Base
21
  add_filter( 'smart-cf-validate-get-value', array( $this, 'validate_get_value' ), 10, 2 );
22
  return array(
23
  'type' => 'taxonomy',
24
- 'display-name' => __( 'Relation ( Taxonomies )', 'smart-custom-fields' ),
25
  'optgroup' => 'other-fields',
26
  'allow-multiple-data' => true,
27
  );
1
  <?php
2
  /**
3
+ * Smart_Custom_Fields_Field_Related_Terms
4
  * Version : 1.5.0
5
  * Author : inc2734
6
  * Created : October 7, 2014
8
  * License : GPLv2 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
11
+ class Smart_Custom_Fields_Field_Related_Terms extends Smart_Custom_Fields_Field_Base {
12
 
13
  /**
14
  * Set the required items
21
  add_filter( 'smart-cf-validate-get-value', array( $this, 'validate_get_value' ), 10, 2 );
22
  return array(
23
  'type' => 'taxonomy',
24
+ 'display-name' => __( 'Related Terms', 'smart-custom-fields' ),
25
  'optgroup' => 'other-fields',
26
  'allow-multiple-data' => true,
27
  );
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.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"
@@ -245,8 +245,8 @@ msgid "Radio"
245
  msgstr "ラジオボタン"
246
 
247
  #: classes/fields/class.field-relation.php:24
248
- msgid "Relation ( Post Types )"
249
- msgstr "関連(投稿タイプ)"
250
 
251
  #: classes/fields/class.field-relation.php:203
252
  #: classes/fields/class.field-taxonomy.php:206
@@ -268,8 +268,8 @@ msgid "Select"
268
  msgstr "セレクトボックス"
269
 
270
  #: classes/fields/class.field-taxonomy.php:24
271
- msgid "Relation ( Taxonomies )"
272
- msgstr "関連(タクソノミー)"
273
 
274
  #: classes/fields/class.field-text.php:21
275
  msgid "Text"
@@ -308,11 +308,6 @@ msgstr "繰り返し"
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,6 +345,10 @@ msgstr "フィールドは見つかりませんでした。"
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/"
@@ -365,3 +364,6 @@ msgstr "inc2734"
365
  #. Author URI of the plugin/theme
366
  msgid "http://2inc.org"
367
  msgstr "http://2inc.org"
 
 
 
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.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smart-custom-fields\n"
7
+ "POT-Creation-Date: 2017-02-02 15:41+0900\n"
8
+ "PO-Revision-Date: 2017-02-02 15:42+0900\n"
9
  "Last-Translator: inc2734 <inc@2inc.org>\n"
10
  "Language-Team: \n"
11
  "Language: ja\n"
245
  msgstr "ラジオボタン"
246
 
247
  #: classes/fields/class.field-relation.php:24
248
+ msgid "Related Posts"
249
+ msgstr "関連する投稿"
250
 
251
  #: classes/fields/class.field-relation.php:203
252
  #: classes/fields/class.field-taxonomy.php:206
268
  msgstr "セレクトボックス"
269
 
270
  #: classes/fields/class.field-taxonomy.php:24
271
+ msgid "Related Terms"
272
+ msgstr "関連するターム"
273
 
274
  #: classes/fields/class.field-text.php:21
275
  msgid "Text"
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
  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/"
364
  #. Author URI of the plugin/theme
365
  msgid "http://2inc.org"
366
  msgstr "http://2inc.org"
367
+
368
+ #~ msgid "Relation ( Taxonomies )"
369
+ #~ msgstr "関連(タクソノミー)"
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.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"
@@ -253,7 +253,7 @@ msgid "Radio"
253
  msgstr ""
254
 
255
  #: classes/fields/class.field-relation.php:24
256
- msgid "Relation ( Post Types )"
257
  msgstr ""
258
 
259
  #: classes/fields/class.field-relation.php:203
@@ -276,7 +276,7 @@ msgid "Select"
276
  msgstr ""
277
 
278
  #: classes/fields/class.field-taxonomy.php:24
279
- msgid "Relation ( Taxonomies )"
280
  msgstr ""
281
 
282
  #: classes/fields/class.field-text.php:21
@@ -316,11 +316,6 @@ msgstr ""
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,6 +352,9 @@ msgstr ""
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/"
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.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smart-custom-fields\n"
7
+ "POT-Creation-Date: 2017-02-02 06:40:56+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
253
  msgstr ""
254
 
255
  #: classes/fields/class.field-relation.php:24
256
+ msgid "Related Posts"
257
  msgstr ""
258
 
259
  #: classes/fields/class.field-relation.php:203
276
  msgstr ""
277
 
278
  #: classes/fields/class.field-taxonomy.php:24
279
+ msgid "Related Terms"
280
  msgstr ""
281
 
282
  #: classes/fields/class.field-text.php:21
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
  #: 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/"
readme.txt CHANGED
@@ -1,22 +1,24 @@
1
  === Smart Custom Fields ===
2
- Contributors: inc2734, toro_unit, mimosafa, hideokamoto, hisako-isaka, kurudrive, hanamura, justinticktock, designhehe
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.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
 
11
- Smart Custom Fields is a simple plugin that management custom fields.
12
 
13
  == Description ==
14
 
15
- Smart Custom Fields is a simple plugin that management custom fields.
16
 
17
- * This plugin has loop field function.
18
- * Supported metadata revision.
19
- * Supported metadata preview.
 
 
20
 
21
  https://www.youtube.com/watch?v=WxPZurn0yvI
22
 
@@ -27,11 +29,11 @@ https://www.youtube.com/watch?v=WxPZurn0yvI
27
  * Radio
28
  * Select
29
  * Checkbox
30
- * Wysiwyg editor
31
  * Image
32
  * File
33
- * Relation ( Post Types )
34
- * Relation ( Taxonomies )
35
  * Color picker
36
  * Date picker
37
  * Boolean
@@ -52,10 +54,10 @@ This method can get all meta data.
52
 
53
  `SCF::gets()`
54
 
55
- This method can get any user meta data.
56
-
57
  **User meta data**
58
 
 
 
59
  `SCF::get_user_meta( $user_id, 'field-name' )`
60
 
61
  This method can get user meta data of any group.
@@ -108,9 +110,9 @@ https://github.com/inc2734/smart-custom-fields/
108
 
109
  = Translators =
110
 
111
- * Japanese(ja) - [JOTAKI Taisuke ](https://profiles.wordpress.org/tai/)
112
 
113
- You can send your own language pack to me.
114
 
115
  == Installation ==
116
 
@@ -125,6 +127,9 @@ You can send your own language pack to me.
125
 
126
  == Changelog ==
127
 
 
 
 
128
  = 3.1.1 =
129
  * Fixed a bug of limit attribute at relation post types and taxonomies field.
130
 
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.1
7
+ Stable tag: 3.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Smart Custom Fields is a simple plugin for managing custom fields.
12
 
13
  == Description ==
14
 
15
+ Smart Custom Fields is a simple plugin for managing custom fields.
16
 
17
+ = Features =
18
+
19
+ * Field group loop support.
20
+ * Meta data revision support.
21
+ * Meta data preview support.
22
 
23
  https://www.youtube.com/watch?v=WxPZurn0yvI
24
 
29
  * Radio
30
  * Select
31
  * Checkbox
32
+ * WYSIWYG editor
33
  * Image
34
  * File
35
+ * Related Posts
36
+ * Related Terms
37
  * Color picker
38
  * Date picker
39
  * Boolean
54
 
55
  `SCF::gets()`
56
 
 
 
57
  **User meta data**
58
 
59
+ This method can get any user meta data.
60
+
61
  `SCF::get_user_meta( $user_id, 'field-name' )`
62
 
63
  This method can get user meta data of any group.
110
 
111
  = Translators =
112
 
113
+ * Japanese(ja) - [JOTAKI Taisuke](https://profiles.wordpress.org/tai/)
114
 
115
+ You can translate this plugin into your language by using [GlotPress](https://translate.wordpress.org/projects/wp-plugins/smart-custom-fields).
116
 
117
  == Installation ==
118
 
127
 
128
  == Changelog ==
129
 
130
+ = 3.1.2 =
131
+ * Update readme.txt
132
+
133
  = 3.1.1 =
134
  * Fixed a bug of limit attribute at relation post types and taxonomies field.
135
 
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.1
7
  * Author: inc2734
8
  * Author URI: http://2inc.org
9
  * Created: October 9, 2014
10
- * Modified: January 27, 2017
11
  * Text Domain: smart-custom-fields
12
  * Domain Path: /languages
13
  * License: GPLv2 or later
@@ -50,6 +50,7 @@ class Smart_Custom_Fields {
50
  include_once $form_item;
51
  $basename = basename( $form_item, '.php' );
52
  $classname = preg_replace( '/^class\.field\-(.+)$/', 'Smart_Custom_Fields_Field_$1', $basename );
 
53
  if ( class_exists( $classname ) ) {
54
  new $classname();
55
  }
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.2
7
  * Author: inc2734
8
  * Author URI: http://2inc.org
9
  * Created: October 9, 2014
10
+ * Modified: February 2, 2017
11
  * Text Domain: smart-custom-fields
12
  * Domain Path: /languages
13
  * License: GPLv2 or later
50
  include_once $form_item;
51
  $basename = basename( $form_item, '.php' );
52
  $classname = preg_replace( '/^class\.field\-(.+)$/', 'Smart_Custom_Fields_Field_$1', $basename );
53
+ $classname = str_replace( '-', '_', $classname );
54
  if ( class_exists( $classname ) ) {
55
  new $classname();
56
  }