Version Description
- Updated function for php7 and backwards compatibility (to rid php warning). Thanks @kendawes!
Download this release
Release Info
Developer | josh401 |
Plugin | WP Edit |
Version | 4.0.4 |
Comparing to | |
See all releases |
Code changes from version 4.0.3 to 4.0.4
- includes/functions.php +10 -1
- main.php +1 -2
- readme.txt +5 -5
includes/functions.php
CHANGED
@@ -761,7 +761,16 @@ function wp_edit_user_specific_init() {
|
|
761 |
// Default Visual Tab
|
762 |
if(isset($opts_user_meta['default_visual_tab']) && $opts_user_meta['default_visual_tab'] === '1') {
|
763 |
|
764 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
765 |
}
|
766 |
|
767 |
// Disable Dashboard Widget
|
761 |
// Default Visual Tab
|
762 |
if(isset($opts_user_meta['default_visual_tab']) && $opts_user_meta['default_visual_tab'] === '1') {
|
763 |
|
764 |
+
// If php version 7 or higher
|
765 |
+
if ( strnatcmp( phpversion(),'7.0.0') >= 0 ) {
|
766 |
+
|
767 |
+
add_filter( 'wp_default_editor', function() { return 'tmce'; } );
|
768 |
+
}
|
769 |
+
// Else using php below version 7
|
770 |
+
else {
|
771 |
+
|
772 |
+
add_filter( 'wp_default_editor', create_function('', 'return "tmce";') );
|
773 |
+
}
|
774 |
}
|
775 |
|
776 |
// Disable Dashboard Widget
|
main.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WP Edit
|
4 |
* Plugin URI: https://wpeditpro.com
|
5 |
* Description: Ultimate WordPress Content Editing.
|
6 |
-
* Version: 4.0.
|
7 |
* Author: Josh Lobe
|
8 |
* Author URI: https://wpeditpro.com
|
9 |
* License: GPL2
|
@@ -1951,7 +1951,6 @@ class wp_edit_class {
|
|
1951 |
$ratings = $call_api->ratings;
|
1952 |
|
1953 |
echo '<table><tbody>';
|
1954 |
-
echo '<tr><td>Downloaded:</td><td>' . number_format( $call_api->downloaded ) . ' times</td></tr>';
|
1955 |
echo '<tr><td>Active Installs:</td><td>' . number_format( $call_api->active_installs ) . '+</td></tr>';
|
1956 |
echo '<tr><td>Number of Ratings:</td><td>' . $call_api->num_ratings . '</td></tr>';
|
1957 |
echo '</tbody></table>';
|
3 |
* Plugin Name: WP Edit
|
4 |
* Plugin URI: https://wpeditpro.com
|
5 |
* Description: Ultimate WordPress Content Editing.
|
6 |
+
* Version: 4.0.4
|
7 |
* Author: Josh Lobe
|
8 |
* Author URI: https://wpeditpro.com
|
9 |
* License: GPL2
|
1951 |
$ratings = $call_api->ratings;
|
1952 |
|
1953 |
echo '<table><tbody>';
|
|
|
1954 |
echo '<tr><td>Active Installs:</td><td>' . number_format( $call_api->active_installs ) . '+</td></tr>';
|
1955 |
echo '<tr><td>Number of Ratings:</td><td>' . $call_api->num_ratings . '</td></tr>';
|
1956 |
echo '</tbody></table>';
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: josh401
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A9E5VNRBMVBCS
|
4 |
Tags: wpedit, wp edit, 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 css, borders, pages, posts, colorful, php, php widget, shortcode, shortcodes, style, styles, plugin, login, excerpt, id, post, page, youtube, tinymce
|
5 |
Requires at least: 3.9
|
6 |
-
Tested up to: 4.9.
|
7 |
-
Stable tag: 4.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -20,9 +20,6 @@ WP Edit now uses a custom buttons API which allows other plugin/theme developers
|
|
20 |
|
21 |
Refer your favorite plugin/theme developers to the [WP Edit Custom Buttons API](http://learn.wpeditpro.com/custom-buttons-api/) documentation to get your favorite buttons added to WP Edit.
|
22 |
|
23 |
-
= Introduction =
|
24 |
-
For a riveting video introduction into the possibilities available with WP Edit; please visit [Jupiter Jim's Marketing Team](http://jupiterjim.club/wordpress/tutorials/change-font-family-font-size-wordpress-4-4-1/).
|
25 |
-
|
26 |
= Description =
|
27 |
|
28 |
WP Edit is built around three years of custom WordPress development. WP Edit adds extensive, additional editing functionality to the default WordPress editor. Begin creating content like the pros; without knowing a single bit of HTML or CSS.
|
@@ -106,6 +103,9 @@ OR...
|
|
106 |
|
107 |
== Changelog ==
|
108 |
|
|
|
|
|
|
|
109 |
= 4.0.3 =
|
110 |
* Updated readme.
|
111 |
* Ensured plugin not generating any errors/warnings/notices with current version of WordPress.
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A9E5VNRBMVBCS
|
4 |
Tags: wpedit, wp edit, 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 css, borders, pages, posts, colorful, php, php widget, shortcode, shortcodes, style, styles, plugin, login, excerpt, id, post, page, youtube, tinymce
|
5 |
Requires at least: 3.9
|
6 |
+
Tested up to: 4.9.8
|
7 |
+
Stable tag: 4.0.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
20 |
|
21 |
Refer your favorite plugin/theme developers to the [WP Edit Custom Buttons API](http://learn.wpeditpro.com/custom-buttons-api/) documentation to get your favorite buttons added to WP Edit.
|
22 |
|
|
|
|
|
|
|
23 |
= Description =
|
24 |
|
25 |
WP Edit is built around three years of custom WordPress development. WP Edit adds extensive, additional editing functionality to the default WordPress editor. Begin creating content like the pros; without knowing a single bit of HTML or CSS.
|
103 |
|
104 |
== Changelog ==
|
105 |
|
106 |
+
= 4.0.4 =
|
107 |
+
* Updated function for php7 and backwards compatibility (to rid php warning). Thanks @kendawes!
|
108 |
+
|
109 |
= 4.0.3 =
|
110 |
* Updated readme.
|
111 |
* Ensured plugin not generating any errors/warnings/notices with current version of WordPress.
|