Skip to content

Commit

Permalink
Merge pull request #396 from MiguelRoot/master
Browse files Browse the repository at this point in the history
fix: type casting for msls_id in render_option call
  • Loading branch information
lloc authored Oct 22, 2024
2 parents 35fab8d + bf8503a commit 1341c1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions css/msls.less
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ select.msls-translations {
margin: 0 1px !important;
}


.column-mslscol {
width: 56px;
}

#wpadminbar .language-badge,
#wpadminbar * .language-badge {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion includes/MslsMetaBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function render_options( $type, $msls_id ): string {
);

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

return implode( PHP_EOL, $options );
Expand Down

0 comments on commit 1341c1e

Please sign in to comment.