Version Description
- Bugfix: image insert.
Download this release
Release Info
Developer | Hiroaki Miyashita |
Plugin | Custom Field Template |
Version | 1.7.3 |
Comparing to | |
See all releases |
Code changes from version 1.7.2 to 1.7.3
- custom-field-template.php +22 -1
- readme.txt +4 -1
custom-field-template.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Custom Field Template
|
|
4 |
Plugin URI: http://wpgogo.com/development/custom-field-template.html
|
5 |
Description: This plugin adds the default custom fields on the Write Post/Page.
|
6 |
Author: Hiroaki Miyashita
|
7 |
-
Version: 1.7.
|
8 |
Author URI: http://wpgogo.com/
|
9 |
*/
|
10 |
|
@@ -45,6 +45,7 @@ class custom_field_template {
|
|
45 |
|
46 |
add_action( 'delete_post', array(&$this, 'custom_field_template_delete_post'), 100 );
|
47 |
|
|
|
48 |
add_filter( 'plugin_action_links', array(&$this, 'wpaq_filter_plugin_actions'), 10, 2 );
|
49 |
|
50 |
add_filter( 'get_the_excerpt', array(&$this, 'custom_field_template_get_the_excerpt'), 1 );
|
@@ -460,6 +461,26 @@ class custom_field_template {
|
|
460 |
return $new_columns;
|
461 |
}
|
462 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
463 |
function wpaq_filter_plugin_actions($links, $file){
|
464 |
static $this_plugin;
|
465 |
|
4 |
Plugin URI: http://wpgogo.com/development/custom-field-template.html
|
5 |
Description: This plugin adds the default custom fields on the Write Post/Page.
|
6 |
Author: Hiroaki Miyashita
|
7 |
+
Version: 1.7.3
|
8 |
Author URI: http://wpgogo.com/
|
9 |
*/
|
10 |
|
45 |
|
46 |
add_action( 'delete_post', array(&$this, 'custom_field_template_delete_post'), 100 );
|
47 |
|
48 |
+
add_filter( 'media_send_to_editor', array(&$this, 'media_send_to_custom_field'), 15 );
|
49 |
add_filter( 'plugin_action_links', array(&$this, 'wpaq_filter_plugin_actions'), 10, 2 );
|
50 |
|
51 |
add_filter( 'get_the_excerpt', array(&$this, 'custom_field_template_get_the_excerpt'), 1 );
|
461 |
return $new_columns;
|
462 |
}
|
463 |
|
464 |
+
function media_send_to_custom_field($html) {
|
465 |
+
$options = $this->get_custom_field_template_data();
|
466 |
+
|
467 |
+
$out = '<script type="text/javascript">' . "\n" .
|
468 |
+
' /* <![CDATA[ */' . "\n" .
|
469 |
+
' var win = window.dialogArguments || opener || parent || top;' . "\n" .
|
470 |
+
' win.send_to_custom_field("' . addslashes($html) . '");' . "\n" .
|
471 |
+
'/* ]]> */' . "\n" .
|
472 |
+
'</script>' . "\n";
|
473 |
+
|
474 |
+
echo $out;
|
475 |
+
exit();
|
476 |
+
|
477 |
+
/*if ($options['custom_field_template_use_multiple_insert']) {
|
478 |
+
return;
|
479 |
+
} else {
|
480 |
+
exit();
|
481 |
+
}*/
|
482 |
+
}
|
483 |
+
|
484 |
function wpaq_filter_plugin_actions($links, $file){
|
485 |
static $this_plugin;
|
486 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wpgogo.com/development/custom-field-template.html
|
|
4 |
Tags: custom, fields, field, template, meta, custom field, custom fields, custom field template
|
5 |
Requires at least: 2.1
|
6 |
Tested up to: 3.0.1
|
7 |
-
Stable tag: 1.7.
|
8 |
|
9 |
This plugin adds the default custom fields on the Write Post/Page.
|
10 |
|
@@ -102,6 +102,9 @@ See the default template and modify it.
|
|
102 |
|
103 |
== Changelog ==
|
104 |
|
|
|
|
|
|
|
105 |
= 1.7.2 =
|
106 |
* `mediaLibrary` attribute for the file type to show the link of the uploaded file name.
|
107 |
* Bugfix: search.
|
4 |
Tags: custom, fields, field, template, meta, custom field, custom fields, custom field template
|
5 |
Requires at least: 2.1
|
6 |
Tested up to: 3.0.1
|
7 |
+
Stable tag: 1.7.3
|
8 |
|
9 |
This plugin adds the default custom fields on the Write Post/Page.
|
10 |
|
102 |
|
103 |
== Changelog ==
|
104 |
|
105 |
+
= 1.7.3 =
|
106 |
+
* Bugfix: image insert.
|
107 |
+
|
108 |
= 1.7.2 =
|
109 |
* `mediaLibrary` attribute for the file type to show the link of the uploaded file name.
|
110 |
* Bugfix: search.
|