TinyMCE Templates - Version 2.6.0

Version Description

Download this release

Release Info

Developer miyauchi
Plugin Icon 128x128 TinyMCE Templates
Version 2.6.0
Comparing to
See all releases

Code changes from version 2.5.0 to 2.6.0

Files changed (2) hide show
  1. readme.txt +2 -1
  2. tinymce-templates.php +3 -3
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: tinymce, Visual Editor, template
5
  Requires at least: 3.2
6
  Tested up to: 3.3
7
- Stable tag: 2.5.0
8
 
9
  TinyMCE Template plugin will enable to use HTML template on WordPress Visual Editor.
10
  You can edit and share this template with WordPress users.
@@ -54,6 +54,7 @@ You can send your own language pack to me.
54
 
55
  == Changelog ==
56
 
 
57
  * [2.4.0](http://wpist.me/2011/11/14/tinymce-templates-2-4-0/)
58
  * [2.3.0](http://wpist.me/2011/11/14/tinymce-templates-2-3-0/)
59
  * [2.2.0](http://wpist.me/2011/11/13/tinymce-templates-2-2-0/)
4
  Tags: tinymce, Visual Editor, template
5
  Requires at least: 3.2
6
  Tested up to: 3.3
7
+ Stable tag: 2.6.0
8
 
9
  TinyMCE Template plugin will enable to use HTML template on WordPress Visual Editor.
10
  You can edit and share this template with WordPress users.
54
 
55
  == Changelog ==
56
 
57
+ * [2.6.0](http://wpist.me/2012/04/29/tinymce-templates-2-6/)
58
  * [2.4.0](http://wpist.me/2011/11/14/tinymce-templates-2-4-0/)
59
  * [2.3.0](http://wpist.me/2011/11/14/tinymce-templates-2-3-0/)
60
  * [2.2.0](http://wpist.me/2011/11/13/tinymce-templates-2-2-0/)
tinymce-templates.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: TinyMCE Templates
4
  Plugin URI: http://wpist.me/wp/tinymce-templates/
5
  Description: TinyMCE Templates plugin will enable to use HTML template on WordPress Visual Editor.
6
  Author: Takayuki Miyauchi
7
- Version: 2.5.0
8
  Author URI: http://wpist.me/
9
  Domain Path: /languages
10
  Text Domain: tinymce_templates
@@ -372,8 +372,8 @@ public function wp_ajax(){
372
  }
373
  }
374
  $ID = intval($p->ID);
375
- $name = esc_html($p->post_title);
376
- $desc = esc_html($p->post_excerpt);
377
  $url = add_query_arg('template_id', $ID, $url);
378
  $arr[] = array($name, $url, $desc);
379
  }
4
  Plugin URI: http://wpist.me/wp/tinymce-templates/
5
  Description: TinyMCE Templates plugin will enable to use HTML template on WordPress Visual Editor.
6
  Author: Takayuki Miyauchi
7
+ Version: 2.6.0
8
  Author URI: http://wpist.me/
9
  Domain Path: /languages
10
  Text Domain: tinymce_templates
372
  }
373
  }
374
  $ID = intval($p->ID);
375
+ $name = esc_html(apply_filters('tinymce_template_title', $p->post_title));
376
+ $desc = esc_html(apply_filters('tinymce_template_excerpt', $p->post_excerpt));
377
  $url = add_query_arg('template_id', $ID, $url);
378
  $arr[] = array($name, $url, $desc);
379
  }