Skip to content

Commit

Permalink
Use the same font weight for label as WP does in settings page. Fix c…
Browse files Browse the repository at this point in the history
…oding standards.
  • Loading branch information
Anh committed Apr 3, 2017
1 parent 5385aba commit b10251c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
width: 25%;
}
.rwmb-label > label {
font-weight: bold;
font-weight: 600;
}
.rwmb-label.required > span {
color: #c00;
Expand Down
4 changes: 2 additions & 2 deletions inc/field.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,12 @@ public static function meta( $post_id, $saved, $field ) {
// Use $field['std'] only when the meta box hasn't been saved (i.e. the first time we run).
$meta = ! $saved ? $field['std'] : $meta;

//Ensue multiple fields are arrays
// Ensue multiple fields are arrays.
if ( $field['multiple'] ) {
if ( $field['clone'] ) {
$meta = (array) $meta;
foreach ( $meta as $key => $m ) {
$meta[$key] = (array) $m;
$meta[ $key ] = (array) $m;
}
} else {
$meta = (array) $meta;
Expand Down

0 comments on commit b10251c

Please sign in to comment.