Permalink
Browse files

same witdh on tables + don't show deleted field groups added to conne…

…ctor
  • Loading branch information...
1 parent 9925454 commit d29349fb5b2056d078c3cef910e9094fbb615eaf Pär Thernström committed Mar 31, 2013
Showing with 9 additions and 3 deletions.
  1. +7 −2 inc-admin-options.php
  2. +2 −1 readme.txt
View
@@ -680,6 +680,7 @@ class="regular-text"
<?php
$field_groups_output = "";
foreach ( $one_post_connector["field_groups"] as $one_field_group ) {
+ if ( $one_field_group["deleted"] ) continue;
$field_groups_output .= sprintf( '%1$s, ', esc_attr( $one_field_group["name"] ) );
}
$field_groups_output = preg_replace('/, $/', '', $field_groups_output);
@@ -712,12 +713,14 @@ class="regular-text"
<h3><?php _e('Post type defaults', 'simple-fields') ?></h3>
- <table class="wp-list-table widefat xfixed">
+ <table class="wp-list-table widefat fixed">
<thead>
<tr>
<th>Post type</th>
<th>Default connector</th>
+ <th></th><!-- two empty to make table widths same as the other tables -->
+ <th></th>
</tr>
</thead>
@@ -761,6 +764,8 @@ class="regular-text"
<td>
<span><?php echo $default_connector_str ?></span>
</td>
+ <td></td>
+ <td></td>
</tr>
<?php
@@ -771,7 +776,7 @@ class="regular-text"
</tbody>
</table>
-
+
</div>
View
@@ -287,10 +287,11 @@ See that "Add"-link above "Article images"? That means that it is repeatable, so
- Added "meta_key" as key to all fields when using get_field_by_slug() somewhere.
Makes it easy to know/get the meta key if you need it. returns the meta key for the first field in that field group.
If group is repeatable you must add number to numInSet yourself. Will contain a value like "_simple_fields_fieldGroupID_1_fieldID_2_numInSet_0"
-- Lotsa code cleanups and stuff
- Fixed so plugin works with jQuery 1.9, because now jQuery(htmlString) requires first char to be < for string to be considered HTML. Was not working due to spaces before first HMTL tag.
- Added Slovak translation by Branco. Thanks a lot!
- Added nonces to admin to prevent CSRF
+- Added table view to admin instead of ul-li-lists. Makes the admin looks nicer and more WordPress-ish.
+- Lotsa code cleanups and stuff
#### Version 1.1.6
- Fixed bug that could lead to memoryleak. Thanks to plux/angry creative for patch.

0 comments on commit d29349f

Please sign in to comment.