Version Description
09/05/2016
Added functionality to enable visual editor on BBPress forums ("Editor" tab).
Fixed strict standards error on wp_widget_rss_output() function (final fix will be done upstream when WordPress 4.7 is released).
Adjusted plugin css file.
Download this release
Release Info
Developer | josh401 |
Plugin | WP Edit |
Version | 3.9 |
Comparing to | |
See all releases |
Code changes from version 3.8.1 to 3.9
- includes/functions.php +59 -2
- main.php +29 -5
- readme.txt +12 -2
includes/functions.php
CHANGED
@@ -594,6 +594,64 @@ if(!empty($plugin_options_posts['hide_admin_pages']) && $plugin_options_posts['h
|
|
594 |
add_action( 'pre_get_posts' ,'wp_edit_hide_admin_pages' );
|
595 |
}
|
596 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
597 |
/*
|
598 |
****************************************************************
|
599 |
Extras Functions
|
@@ -729,8 +787,7 @@ function wp_edit_user_specific_init() {
|
|
729 |
echo '<p><a href="//www.feedblitz.com/f/?Sub=950320"><img title="Subscribe to get updates by email and more!" border="0" src="//assets.feedblitz.com/chicklets/email/i/25/950320.bmp"></a><br />News updates for WP Edit Pro and Stable versions.</p>';
|
730 |
echo '<p style="border-bottom:#000 1px solid;">Showing ('.$jwl_total_items.') Posts</p>';
|
731 |
echo '<div class="rss-widget">';
|
732 |
-
wp_widget_rss_output(array(
|
733 |
-
'url' => $protocol . '//feeds.feedblitz.com/wpeditpro&x=1',
|
734 |
'title' => '',
|
735 |
'items' => $jwl_total_items,
|
736 |
'show_author' => 0,
|
594 |
add_action( 'pre_get_posts' ,'wp_edit_hide_admin_pages' );
|
595 |
}
|
596 |
|
597 |
+
/*
|
598 |
+
****************************************************************
|
599 |
+
Editor Functions
|
600 |
+
****************************************************************
|
601 |
+
*/
|
602 |
+
$plugin_options_editor = get_option('wp_edit_editor');
|
603 |
+
|
604 |
+
// BBPress editor
|
605 |
+
if(isset($plugin_options_editor['bbpress_editor']) && $plugin_options_editor['bbpress_editor'] === '1') {
|
606 |
+
|
607 |
+
// Add visual editor
|
608 |
+
function wp_edit_enable_bbpress_visual_editor( $args = array() ) {
|
609 |
+
|
610 |
+
$args['tinymce'] = true;
|
611 |
+
$args['teeny'] = false;
|
612 |
+
return $args;
|
613 |
+
}
|
614 |
+
add_filter( 'bbp_after_get_the_content_parse_args', 'wp_edit_enable_bbpress_visual_editor' );
|
615 |
+
|
616 |
+
// Replace kses funtion (to allow more tags)
|
617 |
+
function wp_edit_enable_bbpress_custom_kses_allowed_tags() {
|
618 |
+
|
619 |
+
return array(
|
620 |
+
|
621 |
+
// Links
|
622 |
+
'a' => array( 'class' => true, 'href' => true, 'title' => true, 'rel' => true, 'class' => true, 'target' => true ),
|
623 |
+
// Quotes
|
624 |
+
'blockquote' => array( 'cite' => true ),
|
625 |
+
// Div
|
626 |
+
'div' => array( 'class' => true ),
|
627 |
+
// Span
|
628 |
+
'span' => array( 'class' => true ),
|
629 |
+
// Code
|
630 |
+
'code' => array(),
|
631 |
+
'pre' => array( 'class' => true ),
|
632 |
+
// Formatting
|
633 |
+
'em' => array(),
|
634 |
+
'strong' => array(),
|
635 |
+
'del' => array( 'datetime' => true ),
|
636 |
+
// Lists
|
637 |
+
'ul' => array(),
|
638 |
+
'ol' => array( 'start' => true ),
|
639 |
+
'li' => array(),
|
640 |
+
// Images
|
641 |
+
'img' => array( 'class' => true, 'src' => true, 'border' => true, 'alt' => true, 'height' => true, 'width' => true ),
|
642 |
+
// Tables
|
643 |
+
'table' => array( 'align' => true, 'bgcolor' => true, 'border' => true ),
|
644 |
+
'tbody' => array( 'align' => true, 'valign' => true ),
|
645 |
+
'td' => array( 'align' => true, 'valign' => true ),
|
646 |
+
'tfoot' => array( 'align' => true, 'valign' => true ),
|
647 |
+
'th' => array( 'align' => true, 'valign' => true ),
|
648 |
+
'thead' => array( 'align' => true, 'valign' => true ),
|
649 |
+
'tr' => array( 'align' => true, 'valign' => true )
|
650 |
+
);
|
651 |
+
}
|
652 |
+
add_filter( 'bbp_kses_allowed_tags', 'wp_edit_enable_bbpress_custom_kses_allowed_tags' );
|
653 |
+
}
|
654 |
+
|
655 |
/*
|
656 |
****************************************************************
|
657 |
Extras Functions
|
787 |
echo '<p><a href="//www.feedblitz.com/f/?Sub=950320"><img title="Subscribe to get updates by email and more!" border="0" src="//assets.feedblitz.com/chicklets/email/i/25/950320.bmp"></a><br />News updates for WP Edit Pro and Stable versions.</p>';
|
788 |
echo '<p style="border-bottom:#000 1px solid;">Showing ('.$jwl_total_items.') Posts</p>';
|
789 |
echo '<div class="rss-widget">';
|
790 |
+
wp_widget_rss_output( $protocol . '//feeds.feedblitz.com/wpeditpro&x=1', array(
|
|
|
791 |
'title' => '',
|
792 |
'items' => $jwl_total_items,
|
793 |
'show_author' => 0,
|
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: 3.
|
7 |
* Author: Josh Lobe
|
8 |
* Author URI: https://wpeditpro.com
|
9 |
* License: GPL2
|
@@ -66,7 +66,8 @@ class wp_edit_class {
|
|
66 |
public $global_options_editor = array(
|
67 |
'editor_add_pre_styles' => '0',
|
68 |
'default_editor_fontsize_type' => 'pt',
|
69 |
-
'default_editor_fontsize_values' => ''
|
|
|
70 |
);
|
71 |
public $global_options_extras = array(
|
72 |
'signoff_text' => 'Please enter text here...'
|
@@ -407,7 +408,7 @@ class wp_edit_class {
|
|
407 |
<div class="postbox">
|
408 |
|
409 |
<div class="inside wpep_act_button_area" id="inside_button_hover">
|
410 |
-
<h3
|
411 |
|
412 |
<?php
|
413 |
$no_tooltips = false;
|
@@ -422,7 +423,7 @@ class wp_edit_class {
|
|
422 |
foreach ($options_buttons as $toolbar => $icons) {
|
423 |
|
424 |
if($toolbar === 'tmce_container') {
|
425 |
-
?><h3
|
426 |
}
|
427 |
|
428 |
// Disregard rows 3 and 4
|
@@ -1236,6 +1237,7 @@ class wp_edit_class {
|
|
1236 |
$editor_add_pre_styles = isset($options_editor['editor_add_pre_styles']) && $options_editor['editor_add_pre_styles'] === '1' ? 'checked="checked"' : '';
|
1237 |
$default_editor_fontsize_type = isset($options_editor['default_editor_fontsize_type']) ? $options_editor['default_editor_fontsize_type'] : 'pt';
|
1238 |
$default_editor_fontsize_values = isset($options_editor['default_editor_fontsize_values']) ? $options_editor['default_editor_fontsize_values'] : '';
|
|
|
1239 |
?>
|
1240 |
|
1241 |
<table cellpadding="8">
|
@@ -1283,6 +1285,27 @@ class wp_edit_class {
|
|
1283 |
</div>
|
1284 |
</div>
|
1285 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1286 |
<input type="submit" value="<?php _e('Save Editor Options', 'wp-edit'); ?>" class="button button-primary" id="submit_editor" name="submit_editor">
|
1287 |
</div>
|
1288 |
</form>
|
@@ -1610,7 +1633,7 @@ class wp_edit_class {
|
|
1610 |
<tbody>
|
1611 |
<tr><td><?php _e('Support Forum:','wp-edit'); ?></td>
|
1612 |
<td>
|
1613 |
-
<?php echo '<a target="_blank" href="
|
1614 |
</td>
|
1615 |
</tr>
|
1616 |
<tr><td><?php _e('Knowledge Base:','wp-edit'); ?></td>
|
@@ -2078,6 +2101,7 @@ class wp_edit_class {
|
|
2078 |
$options_editor['editor_add_pre_styles'] = isset($_POST['editor_add_pre_styles']) ? '1' : '0';
|
2079 |
$options_editor['default_editor_fontsize_type'] = isset($_POST['default_editor_fontsize_type']) ? $_POST['default_editor_fontsize_type'] : 'pt';
|
2080 |
$options_editor['default_editor_fontsize_values'] = isset($_POST['default_editor_fontsize_values']) ? sanitize_text_field($_POST['default_editor_fontsize_values']) : '';
|
|
|
2081 |
|
2082 |
update_option('wp_edit_editor', $options_editor);
|
2083 |
|
3 |
* Plugin Name: WP Edit
|
4 |
* Plugin URI: https://wpeditpro.com
|
5 |
* Description: Ultimate WordPress Content Editing.
|
6 |
+
* Version: 3.9
|
7 |
* Author: Josh Lobe
|
8 |
* Author URI: https://wpeditpro.com
|
9 |
* License: GPL2
|
66 |
public $global_options_editor = array(
|
67 |
'editor_add_pre_styles' => '0',
|
68 |
'default_editor_fontsize_type' => 'pt',
|
69 |
+
'default_editor_fontsize_values' => '',
|
70 |
+
'bbpress_editor' => '0'
|
71 |
);
|
72 |
public $global_options_extras = array(
|
73 |
'signoff_text' => 'Please enter text here...'
|
408 |
<div class="postbox">
|
409 |
|
410 |
<div class="inside wpep_act_button_area" id="inside_button_hover">
|
411 |
+
<h3><?php _e('Button Rows', 'wp-edit'); ?></h3>
|
412 |
|
413 |
<?php
|
414 |
$no_tooltips = false;
|
423 |
foreach ($options_buttons as $toolbar => $icons) {
|
424 |
|
425 |
if($toolbar === 'tmce_container') {
|
426 |
+
?><h3><?php _e('Button Container', 'wp-edit'); ?></h3><?php
|
427 |
}
|
428 |
|
429 |
// Disregard rows 3 and 4
|
1237 |
$editor_add_pre_styles = isset($options_editor['editor_add_pre_styles']) && $options_editor['editor_add_pre_styles'] === '1' ? 'checked="checked"' : '';
|
1238 |
$default_editor_fontsize_type = isset($options_editor['default_editor_fontsize_type']) ? $options_editor['default_editor_fontsize_type'] : 'pt';
|
1239 |
$default_editor_fontsize_values = isset($options_editor['default_editor_fontsize_values']) ? $options_editor['default_editor_fontsize_values'] : '';
|
1240 |
+
$bbpress_editor = isset($options_editor['bbpress_editor']) && $options_editor['bbpress_editor'] === '1' ? 'checked="checked"' : '';
|
1241 |
?>
|
1242 |
|
1243 |
<table cellpadding="8">
|
1285 |
</div>
|
1286 |
</div>
|
1287 |
</div>
|
1288 |
+
|
1289 |
+
<h3><?php _e('BBPress Options', 'wp-edit'); ?></h3>
|
1290 |
+
<div class="metabox-holder">
|
1291 |
+
<div class="postbox">
|
1292 |
+
<div class="inside">
|
1293 |
+
|
1294 |
+
<p style="margin-left:10px;"><?php _e('Options for the editor used in the BBPress forums.', 'wp-edit'); ?></p>
|
1295 |
+
|
1296 |
+
<table cellpadding="8">
|
1297 |
+
<tbody>
|
1298 |
+
<tr><td><?php _e('Enable Visual BBPRess Editor', 'wp-edit'); ?></td>
|
1299 |
+
<td>
|
1300 |
+
<input id="bbpress_editor" type="checkbox" value="1" name="bbpress_editor" <?php echo $bbpress_editor; ?> />
|
1301 |
+
<label for="bbpress_editor"><?php _e('Replaces default textarea with modified visual editor.', 'wp-edit'); ?></label>
|
1302 |
+
</td>
|
1303 |
+
</tr>
|
1304 |
+
</tbody>
|
1305 |
+
</table>
|
1306 |
+
</div>
|
1307 |
+
</div>
|
1308 |
+
</div>
|
1309 |
<input type="submit" value="<?php _e('Save Editor Options', 'wp-edit'); ?>" class="button button-primary" id="submit_editor" name="submit_editor">
|
1310 |
</div>
|
1311 |
</form>
|
1633 |
<tbody>
|
1634 |
<tr><td><?php _e('Support Forum:','wp-edit'); ?></td>
|
1635 |
<td>
|
1636 |
+
<?php echo '<a target="_blank" href="https://wordpress.org/support/plugin/wp-edit">'.__('Support Forum', 'wp-edit').'</a>'; ?>
|
1637 |
</td>
|
1638 |
</tr>
|
1639 |
<tr><td><?php _e('Knowledge Base:','wp-edit'); ?></td>
|
2101 |
$options_editor['editor_add_pre_styles'] = isset($_POST['editor_add_pre_styles']) ? '1' : '0';
|
2102 |
$options_editor['default_editor_fontsize_type'] = isset($_POST['default_editor_fontsize_type']) ? $_POST['default_editor_fontsize_type'] : 'pt';
|
2103 |
$options_editor['default_editor_fontsize_values'] = isset($_POST['default_editor_fontsize_values']) ? sanitize_text_field($_POST['default_editor_fontsize_values']) : '';
|
2104 |
+
$options_editor['bbpress_editor'] = isset($_POST['bbpress_editor']) ? '1' : '0';
|
2105 |
|
2106 |
update_option('wp_edit_editor', $options_editor);
|
2107 |
|
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.
|
7 |
-
Stable tag: 3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -97,12 +97,21 @@ OR...
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
= 3.8.1 =
|
101 |
* 05/11/16
|
|
|
102 |
* Removed a stray var_dump() function.
|
103 |
|
104 |
= 3.8 =
|
105 |
* 05/11/16
|
|
|
106 |
* Added support for WP Edit toolbars in custom post types excerpt areas.
|
107 |
* Fixed deprecated function. (htmledit_pre changed to format_for_editor) (main.php ~line 115).
|
108 |
* Updated introduction video link.
|
@@ -111,6 +120,7 @@ OR...
|
|
111 |
|
112 |
= 3.7 =
|
113 |
* 01/11/16
|
|
|
114 |
* Fixed Feedblitz image loading insecure over https.
|
115 |
* Fixed WP_PLUGIN_URL constant; switched to using plugins_url() function.
|
116 |
* Fixed profile biography editor.
|
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.7
|
7 |
+
Stable tag: 3.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
+
= 3.9 =
|
101 |
+
* 09/05/2016
|
102 |
+
|
103 |
+
* Added functionality to enable visual editor on BBPress forums ("Editor" tab).
|
104 |
+
* Fixed strict standards error on wp_widget_rss_output() function (final fix will be done upstream when WordPress 4.7 is released).
|
105 |
+
* Adjusted plugin css file.
|
106 |
+
|
107 |
= 3.8.1 =
|
108 |
* 05/11/16
|
109 |
+
|
110 |
* Removed a stray var_dump() function.
|
111 |
|
112 |
= 3.8 =
|
113 |
* 05/11/16
|
114 |
+
|
115 |
* Added support for WP Edit toolbars in custom post types excerpt areas.
|
116 |
* Fixed deprecated function. (htmledit_pre changed to format_for_editor) (main.php ~line 115).
|
117 |
* Updated introduction video link.
|
120 |
|
121 |
= 3.7 =
|
122 |
* 01/11/16
|
123 |
+
|
124 |
* Fixed Feedblitz image loading insecure over https.
|
125 |
* Fixed WP_PLUGIN_URL constant; switched to using plugins_url() function.
|
126 |
* Fixed profile biography editor.
|