Version Description
Download this release
Release Info
Developer | miyauchi |
Plugin | TinyMCE Templates |
Version | 3.1.0 |
Comparing to | |
See all releases |
Code changes from version 3.0.2 to 3.1.0
- readme.txt +1 -1
- tinymce-templates.php +5 -5
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.5
|
6 |
Tested up to: 3.5
|
7 |
-
Stable tag: 3.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.5
|
6 |
Tested up to: 3.5
|
7 |
+
Stable tag: 3.1.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.
|
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: 3.0
|
8 |
Author URI: http://wpist.me/
|
9 |
Domain Path: /languages
|
10 |
Text Domain: tinymce_templates
|
@@ -439,7 +439,7 @@ public function wp_ajax()
|
|
439 |
);
|
440 |
} else {
|
441 |
$share = get_post_meta($p->ID, $this->meta_param, true);
|
442 |
-
if ($share) {
|
443 |
echo apply_filters(
|
444 |
"tinymce_templates",
|
445 |
wpautop($p->post_content),
|
@@ -484,9 +484,9 @@ public function wp_ajax()
|
|
484 |
|
485 |
public function parse_query($q)
|
486 |
{
|
487 |
-
if (
|
488 |
-
$
|
489 |
-
$q->set('author', $
|
490 |
return $q;
|
491 |
} else {
|
492 |
return $q;
|
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: 3.1.0
|
8 |
Author URI: http://wpist.me/
|
9 |
Domain Path: /languages
|
10 |
Text Domain: tinymce_templates
|
439 |
);
|
440 |
} else {
|
441 |
$share = get_post_meta($p->ID, $this->meta_param, true);
|
442 |
+
if ($share || current_user_can('administrator')) {
|
443 |
echo apply_filters(
|
444 |
"tinymce_templates",
|
445 |
wpautop($p->post_content),
|
484 |
|
485 |
public function parse_query($q)
|
486 |
{
|
487 |
+
if (is_admin() && !current_user_can('administrator') && empty($q->query['suppress_filters']) && $q->query['post_type'] === $this->post_type) {
|
488 |
+
$uid = get_current_user_id();
|
489 |
+
$q->set('author', $uid);
|
490 |
return $q;
|
491 |
} else {
|
492 |
return $q;
|