Version Description
- Fix - "Insert button" icon added for custom post types
- Tested up to WP 4.4
Download this release
Release Info
Developer | DesignsAndCode |
Plugin | Forget About Shortcode Buttons |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- forget-about-shortcode-buttons.php +10 -4
- readme.txt +6 -2
forget-about-shortcode-buttons.php
CHANGED
@@ -6,7 +6,7 @@ Description: A visual way to add CSS buttons in the post editor screen.
|
|
6 |
Author: Designs & Code
|
7 |
Author URI: http://www.designsandcode.com/
|
8 |
License: GPL v3
|
9 |
-
Version: 1.1.
|
10 |
Text Domain: fascbuttons
|
11 |
*/
|
12 |
|
@@ -14,7 +14,7 @@ Text Domain: fascbuttons
|
|
14 |
* Set up Plugin Globals
|
15 |
*/
|
16 |
if (!defined('FASC_BUTTONS_VERSION_NUM'))
|
17 |
-
define('FASC_BUTTONS_VERSION_NUM', '1.1.
|
18 |
|
19 |
if (!defined('PLUGIN_SLUG'))
|
20 |
define('PLUGIN_SLUG', 'fasc-buttons');
|
@@ -72,8 +72,14 @@ if ( ! class_exists( 'FascButtons' ) )
|
|
72 |
|
73 |
global $current_screen;
|
74 |
$type = $current_screen->post_type;
|
75 |
-
|
76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
?>
|
78 |
<script type="text/javascript">
|
79 |
var fasc_ajaxurl = '<?php echo admin_url( 'admin-ajax.php' ); ?>';
|
6 |
Author: Designs & Code
|
7 |
Author URI: http://www.designsandcode.com/
|
8 |
License: GPL v3
|
9 |
+
Version: 1.1.1
|
10 |
Text Domain: fascbuttons
|
11 |
*/
|
12 |
|
14 |
* Set up Plugin Globals
|
15 |
*/
|
16 |
if (!defined('FASC_BUTTONS_VERSION_NUM'))
|
17 |
+
define('FASC_BUTTONS_VERSION_NUM', '1.1.1');
|
18 |
|
19 |
if (!defined('PLUGIN_SLUG'))
|
20 |
define('PLUGIN_SLUG', 'fasc-buttons');
|
72 |
|
73 |
global $current_screen;
|
74 |
$type = $current_screen->post_type;
|
75 |
+
|
76 |
+
$args = array(
|
77 |
+
'public' => true
|
78 |
+
);
|
79 |
+
|
80 |
+
$post_types = get_post_types( $args, 'names' );
|
81 |
+
|
82 |
+
if (is_admin() && in_array($type, $post_types) ) {
|
83 |
?>
|
84 |
<script type="text/javascript">
|
85 |
var fasc_ajaxurl = '<?php echo admin_url( 'admin-ajax.php' ); ?>';
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: DesignsAndCode
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZAHPNUHNUBQJY&lc=GB&item_name=Ross%20Morsali&item_number=wordpress%2dplugin¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted
|
4 |
Tags: css, button, shortcode, edit, visual editor, buttons, wysiwyg, post editor, tinymce, shortcodes, button editor
|
5 |
Requires at least: 3.9
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -31,6 +31,10 @@ Ask me some questions!
|
|
31 |
|
32 |
== Changelog ==
|
33 |
|
|
|
|
|
|
|
|
|
34 |
= 1.1.0 =
|
35 |
* Save buttons!
|
36 |
* Prevent directory listing of folders by adding blank index.php files to all folders - silence is golden!
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZAHPNUHNUBQJY&lc=GB&item_name=Ross%20Morsali&item_number=wordpress%2dplugin¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted
|
4 |
Tags: css, button, shortcode, edit, visual editor, buttons, wysiwyg, post editor, tinymce, shortcodes, button editor
|
5 |
Requires at least: 3.9
|
6 |
+
Tested up to: 4.4
|
7 |
+
Stable tag: 1.1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
31 |
|
32 |
== Changelog ==
|
33 |
|
34 |
+
= 1.1.1 =
|
35 |
+
* Fix - "Insert button" icon added for custom post types
|
36 |
+
* Tested up to WP 4.4
|
37 |
+
|
38 |
= 1.1.0 =
|
39 |
* Save buttons!
|
40 |
* Prevent directory listing of folders by adding blank index.php files to all folders - silence is golden!
|