TinyMCE Templates - Version 2.9.1

Version Description

Download this release

Release Info

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

Code changes from version 2.9.0 to 2.9.1

Files changed (2) hide show
  1. readme.txt +1 -1
  2. tinymce-templates.php +8 -4
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.4
7
- Stable tag: 2.9.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.
4
  Tags: tinymce, Visual Editor, template
5
  Requires at least: 3.2
6
  Tested up to: 3.4
7
+ Stable tag: 2.9.1
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.
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.9.0
8
  Author URI: http://wpist.me/
9
  Domain Path: /languages
10
  Text Domain: tinymce_templates
@@ -472,9 +472,13 @@ public function wp_ajax()
472
 
473
  public function parse_query($q)
474
  {
475
- $me = wp_get_current_user();
476
- $q->set('author', $me->ID);
477
- return $q;
 
 
 
 
478
  }
479
 
480
  private function get_copy_template_url($id)
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.9.1
8
  Author URI: http://wpist.me/
9
  Domain Path: /languages
10
  Text Domain: tinymce_templates
472
 
473
  public function parse_query($q)
474
  {
475
+ if (get_post_type() === $this->post_type) {
476
+ $me = wp_get_current_user();
477
+ $q->set('author', $me->ID);
478
+ return $q;
479
+ } else {
480
+ return $q;
481
+ }
482
  }
483
 
484
  private function get_copy_template_url($id)