Groups - Version 1.0.0-beta-2

Version Description

  • Increased length of capability.capability, capability.class, capability.object columns to support long capabilities.
  • Improved admin CSS.
Download this release

Release Info

Developer itthinx
Plugin Icon 128x128 Groups
Version 1.0.0-beta-2
Comparing to
See all releases

Code changes from version 1.0.0-beta-1 to 1.0.0-beta-2

css/groups_admin.css CHANGED
@@ -40,22 +40,36 @@
40
  height: 20px;
41
  vertical-align: middle;
42
  }
 
 
 
 
 
 
43
  label.group-id-filter,
44
  label.group-name-filter,
45
  label.capability-id-filter,
46
- label.capability-filter {
 
47
  padding-right: 0.62em;
48
  }
49
  input.group-id-filter,
50
  input.group-name-filter,
51
  input.capability-id-filter,
52
  input.capability-filter {
53
- margin-right: 1em;
54
  }
55
  input[name="clear_filters"] {
56
  float:right;
57
  }
58
 
 
 
 
 
 
 
 
59
  .groups-overview .page-options,
60
  .capabilities-overview .page-options {
61
  float: left;
@@ -68,3 +82,9 @@ input[name="clear_filters"] {
68
  display: inline;
69
  width: 250px;
70
  }
 
 
 
 
 
 
40
  height: 20px;
41
  vertical-align: middle;
42
  }
43
+ div.field {
44
+ padding-bottom: 0.62em;
45
+ }
46
+ div.field input[type="submit"] {
47
+ margin-right: 1em;
48
+ }
49
  label.group-id-filter,
50
  label.group-name-filter,
51
  label.capability-id-filter,
52
+ label.capability-filter,
53
+ label.field-label {
54
  padding-right: 0.62em;
55
  }
56
  input.group-id-filter,
57
  input.group-name-filter,
58
  input.capability-id-filter,
59
  input.capability-filter {
60
+ margin-right: 1em;
61
  }
62
  input[name="clear_filters"] {
63
  float:right;
64
  }
65
 
66
+ div.group.new label.description-field,
67
+ div.group.edit label.description-field,
68
+ div.capability.new label.description-field,
69
+ div.capability.edit label.description-field {
70
+ vertical-align: top;
71
+ }
72
+
73
  .groups-overview .page-options,
74
  .capabilities-overview .page-options {
75
  float: left;
82
  display: inline;
83
  width: 250px;
84
  }
85
+
86
+ .manage-groups .required,
87
+ .manage-capabilities .required {
88
+ background: url(../images/required.png) transparent no-repeat left center;
89
+ padding-left: 16px ! important;
90
+ }
groups.php CHANGED
@@ -21,7 +21,7 @@
21
  * Plugin Name: Groups
22
  * Plugin URI: http://www.itthinx.com/plugins/groups
23
  * Description: Groups provides important generic group- and capability-handling features.
24
- * Version: 1.0.0-beta-1
25
  * Author: itthinx (Karim Rahimpur)
26
  * Author URI: http://www.itthinx.com
27
  * Donate-Link: http://www.itthinx.com
21
  * Plugin Name: Groups
22
  * Plugin URI: http://www.itthinx.com/plugins/groups
23
  * Description: Groups provides important generic group- and capability-handling features.
24
+ * Version: 1.0.0-beta-2
25
  * Author: itthinx (Karim Rahimpur)
26
  * Author URI: http://www.itthinx.com
27
  * Donate-Link: http://www.itthinx.com
lib/admin/groups-admin-capabilities-add.php CHANGED
@@ -57,7 +57,7 @@ function groups_admin_capabilities_add() {
57
  '</div>' .
58
 
59
  '<div class="field">' .
60
- '<label for="description-field" class="field-label">' .__( 'Description', GROUPS_PLUGIN_DOMAIN ) . '</label>' .
61
  '<textarea id="description-field" name="description-field" rows="5" cols="45">' . wp_filter_nohtml_kses( $description ) . '</textarea>' .
62
  '</div>' .
63
 
57
  '</div>' .
58
 
59
  '<div class="field">' .
60
+ '<label for="description-field" class="field-label description-field">' .__( 'Description', GROUPS_PLUGIN_DOMAIN ) . '</label>' .
61
  '<textarea id="description-field" name="description-field" rows="5" cols="45">' . wp_filter_nohtml_kses( $description ) . '</textarea>' .
62
  '</div>' .
63
 
lib/admin/groups-admin-capabilities-edit.php CHANGED
@@ -64,7 +64,7 @@ function groups_admin_capabilities_edit( $capability_id ) {
64
  '</div>' .
65
 
66
  '<div class="field">' .
67
- '<label for="description-field" class="field-label">' .__( 'Description', GROUPS_PLUGIN_DOMAIN ) . '</label>' .
68
  '<textarea id="description-field" name="description-field" rows="5" cols="45">' . wp_filter_nohtml_kses( $description ) . '</textarea>' .
69
  '</div>' .
70
 
64
  '</div>' .
65
 
66
  '<div class="field">' .
67
+ '<label for="description-field" class="field-label description-field">' .__( 'Description', GROUPS_PLUGIN_DOMAIN ) . '</label>' .
68
  '<textarea id="description-field" name="description-field" rows="5" cols="45">' . wp_filter_nohtml_kses( $description ) . '</textarea>' .
69
  '</div>' .
70
 
lib/admin/groups-admin-groups-add.php CHANGED
@@ -70,7 +70,7 @@ function groups_admin_groups_add() {
70
  '</div>' .
71
 
72
  '<div class="field">' .
73
- '<label for="description-field" class="field-label">' .__( 'Description', GROUPS_PLUGIN_DOMAIN ) . '</label>' .
74
  '<textarea id="description-field" name="description-field" rows="5" cols="45">' . wp_filter_nohtml_kses( $description ) . '</textarea>' .
75
  '</div>' .
76
 
70
  '</div>' .
71
 
72
  '<div class="field">' .
73
+ '<label for="description-field" class="field-label description-field">' .__( 'Description', GROUPS_PLUGIN_DOMAIN ) . '</label>' .
74
  '<textarea id="description-field" name="description-field" rows="5" cols="45">' . wp_filter_nohtml_kses( $description ) . '</textarea>' .
75
  '</div>' .
76
 
lib/admin/groups-admin-groups-edit.php CHANGED
@@ -80,7 +80,7 @@ function groups_admin_groups_edit( $group_id ) {
80
  '</div>' .
81
 
82
  '<div class="field">' .
83
- '<label for="description-field" class="field-label">' .__( 'Description', GROUPS_PLUGIN_DOMAIN ) . '</label>' .
84
  '<textarea id="description-field" name="description-field" rows="5" cols="45">' . wp_filter_nohtml_kses( $description ) . '</textarea>' .
85
  '</div>' .
86
 
80
  '</div>' .
81
 
82
  '<div class="field">' .
83
+ '<label for="description-field" class="field-label description-field">' .__( 'Description', GROUPS_PLUGIN_DOMAIN ) . '</label>' .
84
  '<textarea id="description-field" name="description-field" rows="5" cols="45">' . wp_filter_nohtml_kses( $description ) . '</textarea>' .
85
  '</div>' .
86
 
lib/core/class-groups-controller.php CHANGED
@@ -124,9 +124,9 @@ class Groups_Controller {
124
  $capability_table = _groups_get_tablename( 'capability' );
125
  $queries[] = "CREATE TABLE " . $capability_table . "(
126
  capability_id BIGINT(20) UNSIGNED NOT NULL auto_increment,
127
- capability VARCHAR(20) UNIQUE NOT NULL,
128
- class VARCHAR(100) DEFAULT NULL,
129
- object VARCHAR(100) DEFAULT NULL,
130
  name VARCHAR(100) DEFAULT NULL,
131
  description LONGTEXT DEFAULT NULL,
132
  PRIMARY KEY (capability_id),
124
  $capability_table = _groups_get_tablename( 'capability' );
125
  $queries[] = "CREATE TABLE " . $capability_table . "(
126
  capability_id BIGINT(20) UNSIGNED NOT NULL auto_increment,
127
+ capability VARCHAR(255) UNIQUE NOT NULL,
128
+ class VARCHAR(255) DEFAULT NULL,
129
+ object VARCHAR(255) DEFAULT NULL,
130
  name VARCHAR(100) DEFAULT NULL,
131
  description LONGTEXT DEFAULT NULL,
132
  PRIMARY KEY (capability_id),
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.itthinx.com/plugins/groups
4
  Tags: access, access control, capability, capabilities, content, group, groups, member, members, membership, permission, permissions
5
  Requires at least: 3.0
6
  Tested up to: 3.3.1
7
- Stable tag: 1.0.0-beta-1
8
 
9
  Groups provides group-based user membership management, group-based capabilities and content access control.
10
 
@@ -202,11 +202,19 @@ See also [Groups](http://www.itthinx.com/plugins/groups/)
202
 
203
  == Changelog ==
204
 
 
 
 
 
205
  = 1.0.0-beta-1 =
206
  * This is the first public beta release.
207
 
208
  == Upgrade Notice ==
209
 
 
 
 
 
210
  = 1.0.0-beta-1 =
211
  * This is the first public beta release.
212
 
4
  Tags: access, access control, capability, capabilities, content, group, groups, member, members, membership, permission, permissions
5
  Requires at least: 3.0
6
  Tested up to: 3.3.1
7
+ Stable tag: 1.0.0-beta-2
8
 
9
  Groups provides group-based user membership management, group-based capabilities and content access control.
10
 
202
 
203
  == Changelog ==
204
 
205
+ = 1.0.0-beta-2 =
206
+ * Increased length of capability.capability, capability.class, capability.object columns to support long capabilities.
207
+ * Improved admin CSS.
208
+
209
  = 1.0.0-beta-1 =
210
  * This is the first public beta release.
211
 
212
  == Upgrade Notice ==
213
 
214
+ = 1.0.0-beta-2 =
215
+ * Increased length of capability.capability, capability.class and capability.object columns from to 255 => you need to update your DB manually if you want that updated.
216
+ * Improved some admin CSS.
217
+
218
  = 1.0.0-beta-1 =
219
  * This is the first public beta release.
220