Skip to content

Commit 1341c1e

Browse files
authored
Merge pull request #396 from MiguelRoot/master
fix: type casting for msls_id in render_option call
2 parents 35fab8d + bf8503a commit 1341c1e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

css/msls.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ select.msls-translations {
103103
margin: 0 1px !important;
104104
}
105105

106+
107+
.column-mslscol {
108+
width: 56px;
109+
}
110+
106111
#wpadminbar .language-badge,
107112
#wpadminbar * .language-badge {
108113
position: relative;

includes/MslsMetaBox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public function render_options( $type, $msls_id ): string {
257257
);
258258

259259
foreach ( $posts as $post ) {
260-
$options[] = $this->render_option( $post->ID, $msls_id );
260+
$options[] = $this->render_option( $post->ID, intval($msls_id) );
261261
}
262262

263263
return implode( PHP_EOL, $options );

0 commit comments

Comments
 (0)