Version Description
- Fixed a relation field bug.
Download this release
Release Info
Developer | inc2734 |
Plugin | Smart Custom Fields |
Version | 1.5.1 |
Comparing to | |
See all releases |
Code changes from version 1.5.0 to 1.5.1
- classes/fields/class.field-relation.php +4 -4
- js/editor-relation.js +4 -4
- readme.txt +5 -2
- smart-custom-fields.php +2 -2
classes/fields/class.field-relation.php
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Smart_Custom_Fields_Field_Relation
|
4 |
-
* Version : 1.2.
|
5 |
* Author : Takashi Kitajima
|
6 |
* Created : October 7, 2014
|
7 |
-
* Modified :
|
8 |
* License : GPLv2
|
9 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
*/
|
@@ -41,7 +41,7 @@ class Smart_Custom_Fields_Field_Relation extends Smart_Custom_Fields_Field_Base
|
|
41 |
|
42 |
/**
|
43 |
* JS の読み込み
|
44 |
-
*
|
45 |
* @param string $hook
|
46 |
*/
|
47 |
public function admin_enqueue_scripts( $hook ) {
|
@@ -136,7 +136,7 @@ class Smart_Custom_Fields_Field_Relation extends Smart_Custom_Fields_Field_Base
|
|
136 |
$selected_li[] = sprintf(
|
137 |
'<li data-id="%d"><span class="%s"></span>%s<span class="relation-remove">-</li></li>',
|
138 |
$post_id,
|
139 |
-
esc_attr( SCF_Config::PREFIX . 'icon-handle' ),
|
140 |
$post_title
|
141 |
);
|
142 |
$hidden[] = sprintf(
|
1 |
<?php
|
2 |
/**
|
3 |
* Smart_Custom_Fields_Field_Relation
|
4 |
+
* Version : 1.2.1
|
5 |
* Author : Takashi Kitajima
|
6 |
* Created : October 7, 2014
|
7 |
+
* Modified : September 3, 2015
|
8 |
* License : GPLv2
|
9 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
*/
|
41 |
|
42 |
/**
|
43 |
* JS の読み込み
|
44 |
+
*
|
45 |
* @param string $hook
|
46 |
*/
|
47 |
public function admin_enqueue_scripts( $hook ) {
|
136 |
$selected_li[] = sprintf(
|
137 |
'<li data-id="%d"><span class="%s"></span>%s<span class="relation-remove">-</li></li>',
|
138 |
$post_id,
|
139 |
+
esc_attr( SCF_Config::PREFIX . 'icon-handle dashicons dashicons-menu' ),
|
140 |
$post_title
|
141 |
);
|
142 |
$hidden[] = sprintf(
|
js/editor-relation.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
/**
|
2 |
* editor.js
|
3 |
-
* Version : 1.0.
|
4 |
* Author : Takashi Kitajima
|
5 |
* Created : September 30, 2014
|
6 |
-
* Modified :
|
7 |
* License : GPLv2
|
8 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
*/
|
@@ -60,7 +60,7 @@ jQuery( function( $ ) {
|
|
60 |
if ( parent.find( '.smart-cf-relation-right li[data-id="' + id + '"]' ).length === 0 ) {
|
61 |
var clone = $( this ).clone();
|
62 |
clone
|
63 |
-
.prepend( $( '<span class="smart-cf-icon-handle"></span>' ) )
|
64 |
.append( $( '<span class="relation-remove">-</span>' ) );
|
65 |
parent.find( '.smart-cf-relation-right ul' ).append( clone );
|
66 |
update_relation_value( $( this ).closest( 'tr' ) );
|
@@ -108,4 +108,4 @@ jQuery( function( $ ) {
|
|
108 |
update_relation_value( $( this ).closest( 'tr' ) );
|
109 |
}
|
110 |
} );
|
111 |
-
} );
|
1 |
/**
|
2 |
* editor.js
|
3 |
+
* Version : 1.0.2
|
4 |
* Author : Takashi Kitajima
|
5 |
* Created : September 30, 2014
|
6 |
+
* Modified : September 2, 2015
|
7 |
* License : GPLv2
|
8 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
*/
|
60 |
if ( parent.find( '.smart-cf-relation-right li[data-id="' + id + '"]' ).length === 0 ) {
|
61 |
var clone = $( this ).clone();
|
62 |
clone
|
63 |
+
.prepend( $( '<span class="smart-cf-icon-handle dashicons dashicons-menu"></span>' ) )
|
64 |
.append( $( '<span class="relation-remove">-</span>' ) );
|
65 |
parent.find( '.smart-cf-relation-right ul' ).append( clone );
|
66 |
update_relation_value( $( this ).closest( 'tr' ) );
|
108 |
update_relation_value( $( this ).closest( 'tr' ) );
|
109 |
}
|
110 |
} );
|
111 |
+
} );
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: inc2734, toro_unit, mimosafa
|
|
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: 1.5.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -86,6 +86,9 @@ You can send your own language pack to me.
|
|
86 |
|
87 |
== Changelog ==
|
88 |
|
|
|
|
|
|
|
89 |
= 1.5.0 =
|
90 |
* Update wysiwyg field.
|
91 |
|
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.3.0
|
7 |
+
Stable tag: 1.5.1
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
86 |
|
87 |
== Changelog ==
|
88 |
|
89 |
+
= 1.5.1 =
|
90 |
+
* Fixed a relation field bug.
|
91 |
+
|
92 |
= 1.5.0 =
|
93 |
* Update wysiwyg field.
|
94 |
|
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: 1.5.
|
7 |
* Author: Takashi Kitajima
|
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
|
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: 1.5.1
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: October 9, 2014
|
10 |
+
* Modified: September 3, 2015
|
11 |
* Text Domain: smart-custom-fields
|
12 |
* Domain Path: /languages
|
13 |
* License: GPLv2
|