Smart Custom Fields - Version 4.1.4

Version Description

  • WordPress 5.5 support
  • Changed so that the reusable block post type is not displayed in the conditional judgment.
Download this release

Release Info

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

Code changes from version 4.1.3 to 4.1.4

classes/class.rest-api.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /**
3
  * Smart_Custom_Fields_Rest_API
4
- * Version : 1.0.0
5
  * Author : robssanches
6
  * Created : July 14, 2018
7
- * Modified : July 14, 2018
8
  * License : GPLv2 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
@@ -27,6 +27,9 @@ class Smart_Custom_Fields_Rest_API {
27
  array(
28
  'methods' => 'GET',
29
  'callback' => array( $this, 'get_all_posts' ),
 
 
 
30
  )
31
  );
32
  }
1
  <?php
2
  /**
3
  * Smart_Custom_Fields_Rest_API
4
+ * Version : 1.0.1
5
  * Author : robssanches
6
  * Created : July 14, 2018
7
+ * Modified : July 22, 2020
8
  * License : GPLv2 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
27
  array(
28
  'methods' => 'GET',
29
  'callback' => array( $this, 'get_all_posts' ),
30
+ 'permission_callback' => function() {
31
+ return current_user_can( 'edit_posts' );
32
+ },
33
  )
34
  );
35
  }
classes/controller/class.settings.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /**
3
  * Smart_Custom_Fields_Controller_Settings
4
- * Version : 1.3.0
5
  * Author : inc2734
6
  * Created : September 23, 2014
7
- * Modified : July 14, 2018
8
  * License : GPLv2 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
@@ -300,6 +300,7 @@ class Smart_Custom_Fields_Controller_Settings {
300
  'objects'
301
  );
302
  unset( $post_types['attachment'] );
 
303
  unset( $post_types[ SCF_Config::NAME ] );
304
 
305
  $conditions = get_post_meta( get_the_ID(), SCF_Config::PREFIX . 'condition', true );
1
  <?php
2
  /**
3
  * Smart_Custom_Fields_Controller_Settings
4
+ * Version : 1.3.1
5
  * Author : inc2734
6
  * Created : September 23, 2014
7
+ * Modified : August 12, 2020
8
  * License : GPLv2 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
300
  'objects'
301
  );
302
  unset( $post_types['attachment'] );
303
+ unset( $post_types['wp_block'] );
304
  unset( $post_types[ SCF_Config::NAME ] );
305
 
306
  $conditions = get_post_meta( get_the_ID(), SCF_Config::PREFIX . 'condition', true );
classes/fields/class.field-related-posts.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /**
3
  * Smart_Custom_Fields_Field_Related_Posts
4
- * Version : 1.4.1
5
  * Author : inc2734
6
  * Created : October 7, 2014
7
- * Modified : June 04, 2018
8
  * License : GPLv2 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
@@ -270,6 +270,7 @@ class Smart_Custom_Fields_Field_Related_Posts extends Smart_Custom_Fields_Field_
270
  'objects'
271
  );
272
  unset( $post_types['attachment'] );
 
273
  unset( $post_types[ SCF_Config::NAME ] );
274
  ?>
275
  <?php foreach ( $post_types as $post_type => $post_type_object ) : ?>
1
  <?php
2
  /**
3
  * Smart_Custom_Fields_Field_Related_Posts
4
+ * Version : 1.4.2
5
  * Author : inc2734
6
  * Created : October 7, 2014
7
+ * Modified : August 12, 2020
8
  * License : GPLv2 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
270
  'objects'
271
  );
272
  unset( $post_types['attachment'] );
273
+ unset( $post_types['wp_block'] );
274
  unset( $post_types[ SCF_Config::NAME ] );
275
  ?>
276
  <?php foreach ( $post_types as $post_type => $post_type_object ) : ?>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: inc2734, toro_unit, mimosafa, hideokamoto, hisako-isaka, kurudrive
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.9.8
7
- Stable tag: 4.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -129,6 +129,10 @@ You can translate this plugin into your language by using [GlotPress](https://tr
129
 
130
  == Changelog ==
131
 
 
 
 
 
132
  = 4.1.3 =
133
  * Activate datetimepicker in repeat group #80
134
 
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: 5.5.0
7
+ Stable tag: 4.1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
129
 
130
  == Changelog ==
131
 
132
+ = 4.1.4 =
133
+ * WordPress 5.5 support
134
+ * Changed so that the reusable block post type is not displayed in the conditional judgment.
135
+
136
  = 4.1.3 =
137
  * Activate datetimepicker in repeat group #80
138
 
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: 4.1.3
7
  * Author: inc2734
8
  * Author URI: https://2inc.org
9
  * Text Domain: smart-custom-fields
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: 4.1.4
7
  * Author: inc2734
8
  * Author URI: https://2inc.org
9
  * Text Domain: smart-custom-fields