Spacer - Version 2.0.2

Version Description

  • Resolved 'dismiss notice' bug for users without access
Download this release

Release Info

Developer clevelandwebdeveloper
Plugin Icon 128x128 Spacer
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

Files changed (3) hide show
  1. images/Thumbs.db +0 -0
  2. index.php +3 -3
  3. readme.txt +6 -3
images/Thumbs.db DELETED
Binary file
index.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Spacer
5
  Description: Adds a spacer button to the WYSIWYG visual editor which allows you to add precise custom spacing between lines in your posts and pages.
6
- Version: 2.0.1
7
  Author: Justin Saad
8
  Author URI: http://www.clevelandwebdeveloper.com
9
  License: GPL2
@@ -67,7 +67,7 @@ class motech_spacer {
67
  $user_id = get_current_user_id();
68
  //there is no default spacer height set, and nag message not ignored...
69
  $checkdefault = get_option($this->plugin_slug . '_default_height_mobile','');
70
- if ( ( ! get_user_meta($user_id, 'spacer3001_nag_ignore') ) && ($checkdefault=='') ) {
71
  echo '<div id="message" class="updated fade notice"><p>';
72
  echo ("<b>You can now <a href=\"".get_bloginfo( 'wpurl' ) . "/wp-admin/options-general.php?page=".$this->plugin_slug."-setting-admin\">hide spacer on mobile screens</a>, or set a custom spacer height for mobile screens.</b>");
73
  echo "</p>";
@@ -350,7 +350,7 @@ class motech_spacer {
350
  $this->plugin_slug.'_setting_section',
351
  array( // The array of arguments to pass to the callback.
352
  "id" => $field_id, //sends field id to callback
353
- "desc" => 'Speed up your workfolow by setting a default height to apply to your spacers. Note that you can also enter negative spacing to shift the following content upwards.', //description of the field (optional)
354
  "placeholder" => 'eg: 20',
355
  "default" => '20' //sets the default field value (optional), when grabbing this option value later on remember to use get_option(option_name, default_value) so it will return default value if no value exists yet
356
  )
3
  /*
4
  Plugin Name: Spacer
5
  Description: Adds a spacer button to the WYSIWYG visual editor which allows you to add precise custom spacing between lines in your posts and pages.
6
+ Version: 2.0.2
7
  Author: Justin Saad
8
  Author URI: http://www.clevelandwebdeveloper.com
9
  License: GPL2
67
  $user_id = get_current_user_id();
68
  //there is no default spacer height set, and nag message not ignored...
69
  $checkdefault = get_option($this->plugin_slug . '_default_height_mobile','');
70
+ if ( ( ! get_user_meta($user_id, 'spacer3001_nag_ignore') ) && ($checkdefault=='') && (current_user_can( 'manage_options' )) ) {
71
  echo '<div id="message" class="updated fade notice"><p>';
72
  echo ("<b>You can now <a href=\"".get_bloginfo( 'wpurl' ) . "/wp-admin/options-general.php?page=".$this->plugin_slug."-setting-admin\">hide spacer on mobile screens</a>, or set a custom spacer height for mobile screens.</b>");
73
  echo "</p>";
350
  $this->plugin_slug.'_setting_section',
351
  array( // The array of arguments to pass to the callback.
352
  "id" => $field_id, //sends field id to callback
353
+ "desc" => 'Speed up your workflow by setting a default height to apply to your spacers. Note that you can also enter negative spacing to shift the following content upwards.', //description of the field (optional)
354
  "placeholder" => 'eg: 20',
355
  "default" => '20' //sets the default field value (optional), when grabbing this option value later on remember to use get_option(option_name, default_value) so it will return default value if no value exists yet
356
  )
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.clevelandwebdeveloper.com/wordpress-plugins/donate.php
4
  Tags: spacer, spacing, line space
5
  Requires at least: 2.9
6
  Tested up to: 4.4
7
- Stable tag: 2.0.1
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -63,6 +63,9 @@ Here's an example of how you could apply this:
63
 
64
  == Changelog ==
65
 
 
 
 
66
  = 2.0.1 =
67
  * Shortcode changed to use actual number (eg: [spacer height="20px"]), which will be easier to edit as you work
68
  * 'Dismiss notice' link changed to red to make it more visible.
@@ -78,5 +81,5 @@ Here's an example of how you could apply this:
78
 
79
  == Upgrade Notice ==
80
 
81
- = 2.0.1 =
82
- New: Shortcode changed to use actual number (eg: [spacer height="20px"]), which will be easier to edit as you work. 'Dismiss notice' link changed to red to make it more visible. Added compatibility with Beaver Page Builder's wysiswyg UI.
4
  Tags: spacer, spacing, line space
5
  Requires at least: 2.9
6
  Tested up to: 4.4
7
+ Stable tag: 2.0.2
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
63
 
64
  == Changelog ==
65
 
66
+ = 2.0.2 =
67
+ * Resolved 'dismiss notice' bug for users without access
68
+
69
  = 2.0.1 =
70
  * Shortcode changed to use actual number (eg: [spacer height="20px"]), which will be easier to edit as you work
71
  * 'Dismiss notice' link changed to red to make it more visible.
81
 
82
  == Upgrade Notice ==
83
 
84
+ = 2.0.2 =
85
+ New: Resolved 'dismiss notice' bug for users without access