Skip to content
Snippets Groups Projects
Commit ee96ff3b authored by Lauren's avatar Lauren
Browse files

Fixes loading TinyMCE filters on front end, breaking Job Manager form.

Updated to version 1.3.2.
parent 328d6b41
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
longname : 'LBDesign Button Shortcode', longname : 'LBDesign Button Shortcode',
author : 'Lauren Pittenger @ LBDesign', author : 'Lauren Pittenger @ LBDesign',
authorurl : 'http://lbdesign.tv', authorurl : 'http://lbdesign.tv',
version : "1.3.1" version : "1.3.2"
}; };
} }
}); });
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* Author: Lauren Pittenger @ LBDesign * Author: Lauren Pittenger @ LBDesign
* Author URI: http://laurenpittenger.com * Author URI: http://laurenpittenger.com
* License: GPL * License: GPL
* Version: 1.3.1 * Version: 1.3.2
*/ */
/* our main shortcode function */ /* our main shortcode function */
...@@ -59,8 +59,10 @@ add_action( 'wp_enqueue_scripts', 'lbdesign_button_styles' ); ...@@ -59,8 +59,10 @@ add_action( 'wp_enqueue_scripts', 'lbdesign_button_styles' );
function lbdesign_tinymce_buttons() { function lbdesign_tinymce_buttons() {
add_filter( 'mce_external_plugins', 'lbdesign_add_buttons' ); // hooks plugin to TinyMCE if ( is_admin() && current_user_can( 'edit_posts' ) && current_user_can( 'edit_pages' ) ) {
add_filter( 'mce_buttons', 'lbdesign_register_buttons' ); // used to show which buttons to show on TinyMCE add_filter( 'mce_external_plugins', 'lbdesign_add_buttons' ); // hooks plugin to TinyMCE
add_filter( 'mce_buttons', 'lbdesign_register_buttons' ); // used to show which buttons to show on TinyMCE
}
} }
add_action( 'init', 'lbdesign_tinymce_buttons' ); add_action( 'init', 'lbdesign_tinymce_buttons' );
......
...@@ -3,7 +3,7 @@ Contributors: lepittenger ...@@ -3,7 +3,7 @@ Contributors: lepittenger
Tags: shortcode, wordpress button plugin, wordpress buttons, button generator, button, buttons, simple buttons, button shortcode Tags: shortcode, wordpress button plugin, wordpress buttons, button generator, button, buttons, simple buttons, button shortcode
Requires at least: 3.0.1 Requires at least: 3.0.1
Tested up to: 4.8.2 Tested up to: 4.8.2
Stable tag: 1.3.1 Stable tag: 1.3.2
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment