Version Description
11-30-2014
Fixed admin notice to be dismissable.
Download this release
Release Info
Developer | josh401 |
Plugin | Ultimate TinyMCE |
Version | 5.5 |
Comparing to | |
See all releases |
Code changes from version 5.4 to 5.5
- main.php +32 -16
- readme.txt +6 -1
main.php
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Ultimate TinyMCE
|
4 |
-
* @version 5.
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Ultimate TinyMCE
|
8 |
Plugin URI: http://www.plugins.joshlobe.com/
|
9 |
Description: Beef up your visual tinymce editor with a plethora of advanced options.
|
10 |
Author: Josh Lobe
|
11 |
-
Version: 5.
|
12 |
Author URI: http://joshlobe.com
|
13 |
|
14 |
*/
|
@@ -35,27 +35,43 @@ Author URI: http://joshlobe.com
|
|
35 |
// Check WP version... and alert user to switch to WP Edi
|
36 |
//
|
37 |
//********************************************************************************************
|
38 |
-
|
39 |
-
|
40 |
-
global $wp_version;
|
41 |
-
|
42 |
-
function alert_user_switch_wpedit_admin_notice() {
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
|
|
|
|
|
|
|
|
48 |
echo '<br />';
|
|
|
|
|
49 |
echo 'Please deactivate and delete Ultimate Tinymce; then download and activate WP Edit.';
|
50 |
echo '<br />';
|
51 |
-
echo 'If any issues are experienced during the transition,
|
52 |
echo '</p><p>';
|
53 |
-
echo 'Alternatively, please visit the <a title="WP Edit Pro" target="_blank" href="https://wpeditpro.com">WP Edit PRO</a> website.
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
}
|
56 |
-
add_action('admin_notices', 'alert_user_switch_wpedit_admin_notice');
|
57 |
}
|
58 |
-
add_action('
|
59 |
|
60 |
|
61 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Ultimate TinyMCE
|
4 |
+
* @version 5.5
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Ultimate TinyMCE
|
8 |
Plugin URI: http://www.plugins.joshlobe.com/
|
9 |
Description: Beef up your visual tinymce editor with a plethora of advanced options.
|
10 |
Author: Josh Lobe
|
11 |
+
Version: 5.5
|
12 |
Author URI: http://joshlobe.com
|
13 |
|
14 |
*/
|
35 |
// Check WP version... and alert user to switch to WP Edi
|
36 |
//
|
37 |
//********************************************************************************************
|
38 |
+
|
|
|
|
|
|
|
|
|
39 |
|
40 |
+
function alert_user_switch_wpedit_admin_notice() {
|
41 |
+
|
42 |
+
global $current_user;
|
43 |
+
$user_id = $current_user->ID;
|
44 |
+
if(!get_user_meta($user_id, 'switch_utmce_to_wpep')) {
|
45 |
+
|
46 |
+
echo '<div class="error"><p>';
|
47 |
+
echo 'The Ultimate Tinymce plugin is becoming outdated. Please consider switching to <a title="WP Edit" target="_blank" href="https://wordpress.org/plugins/wp-edit/">WP Edit</a>.';
|
48 |
echo '<br />';
|
49 |
+
echo 'WP Edit is the successor to Ultimate Tinymce.';
|
50 |
+
echo '<br /><br />';
|
51 |
echo 'Please deactivate and delete Ultimate Tinymce; then download and activate WP Edit.';
|
52 |
echo '<br />';
|
53 |
+
echo 'If any issues are experienced during the transition, support is offered on the <a title="WP Edit Support" target="_blank" href="https://wordpress.org/support/plugin/wp-edit">WP Edit Support Page</a>.';
|
54 |
echo '</p><p>';
|
55 |
+
echo 'Alternatively, please visit the <a title="WP Edit Pro" target="_blank" href="https://wpeditpro.com">WP Edit PRO</a> website.';
|
56 |
+
echo '<br />';
|
57 |
+
echo 'WP Edit PRO offers additional, powerful enhancements over the free version.';
|
58 |
+
echo '<br /><br />';
|
59 |
+
printf(__('<a href="%1$s">Hide Notice</a>'), '?switch_wpep_hide_notice=0');
|
60 |
+
echo '</p></div>';
|
61 |
+
}
|
62 |
+
}
|
63 |
+
add_action('admin_notices', 'alert_user_switch_wpedit_admin_notice');
|
64 |
+
|
65 |
+
function switch_wpep_hide_notice() {
|
66 |
+
|
67 |
+
global $current_user;
|
68 |
+
$user_id = $current_user->ID;
|
69 |
+
if(isset($_GET['switch_wpep_hide_notice']) && $_GET['switch_wpep_hide_notice'] == '0') {
|
70 |
+
|
71 |
+
add_user_meta($user_id, 'switch_utmce_to_wpep', 'true', true);
|
72 |
}
|
|
|
73 |
}
|
74 |
+
add_action('admin_init', 'switch_wpep_hide_notice');
|
75 |
|
76 |
|
77 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: editor, buttons, button, add, font, font style, font select, table, tables, visual editor, search, replace, colors, color, anchor, advance, advanced, links, link, popup, javascript, upgrade, update, admin, image, images, citations, preview, html, custom, custom css, css, borders, pages, posts, pretty, colorful, php, php widget, shortcode, shortcodes, style, styles, plugin, login, excerpt, id, post, page, youtube, syntax, highlight, highlighter, image maps, tinymce, Tinymce, ultimate, Ultimate Tinymce
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 3.8.3
|
7 |
-
Stable tag: 5.
|
8 |
License: GPLv2
|
9 |
|
10 |
Description: Beef up the WordPress TinyMCE content editor with a plethora of advanced options.
|
@@ -53,6 +53,11 @@ Rather than "bloat" the plugin with screenshots. Please check out tons of screen
|
|
53 |
|
54 |
== Changelog ==
|
55 |
|
|
|
|
|
|
|
|
|
|
|
56 |
= 5.4 =
|
57 |
* 11-24-2014
|
58 |
|
4 |
Tags: editor, buttons, button, add, font, font style, font select, table, tables, visual editor, search, replace, colors, color, anchor, advance, advanced, links, link, popup, javascript, upgrade, update, admin, image, images, citations, preview, html, custom, custom css, css, borders, pages, posts, pretty, colorful, php, php widget, shortcode, shortcodes, style, styles, plugin, login, excerpt, id, post, page, youtube, syntax, highlight, highlighter, image maps, tinymce, Tinymce, ultimate, Ultimate Tinymce
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 3.8.3
|
7 |
+
Stable tag: 5.5
|
8 |
License: GPLv2
|
9 |
|
10 |
Description: Beef up the WordPress TinyMCE content editor with a plethora of advanced options.
|
53 |
|
54 |
== Changelog ==
|
55 |
|
56 |
+
= 5.5 =
|
57 |
+
* 11-30-2014
|
58 |
+
|
59 |
+
* Fixed admin notice to be dismissable.
|
60 |
+
|
61 |
= 5.4 =
|
62 |
* 11-24-2014
|
63 |
|