Skip to content

Commit 16a927d

Browse files
committed
Bugfix
1 parent 3e7d7d4 commit 16a927d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

includes/MslsCustomColumn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function td( $column_name, $item_id ) {
9797
$icon->set_icon_type( 'action' );
9898

9999
if ( $mydata->has_value( $language ) ) {
100-
$icon->set_href( $mydata->$language );
100+
$icon->set_href( (int) $mydata->$language );
101101
}
102102

103103
echo '<span class="msls-icon-wrapper ' . esc_attr( $this->options->admin_display ) . '">';

includes/MslsMetaBox.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public function render_select() {
185185
$icon = MslsAdminIcon::create( $type )->set_language( $language )->set_icon_type( $iconType );
186186

187187
if ( $mydata->has_value( $language ) ) {
188-
$icon->set_href( $mydata->$language );
188+
$icon->set_href( (int) $mydata->$language );
189189
}
190190

191191
$selects = '';
@@ -323,7 +323,7 @@ public function render_input( $echo = true ) {
323323
$value = $title = '';
324324

325325
if ( $my_data->has_value( $language ) ) {
326-
$icon->set_href( $my_data->$language );
326+
$icon->set_href( (int) $my_data->$language );
327327
$value = $my_data->$language;
328328
$title = get_the_title( $value );
329329
}

includes/MslsPostTag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function the_input( ?\WP_Term $tag, string $title_format, string $item_fo
183183
if ( $mydata->has_value( $language ) ) {
184184
$term = get_term( $mydata->$language, $type );
185185
if ( is_object( $term ) ) {
186-
$icon->set_href( $mydata->$language );
186+
$icon->set_href( (int) $mydata->$language );
187187
$value = $mydata->$language;
188188
$title = $term->name;
189189
}

includes/MslsPostTagClassic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function print_option( MslsBlog $blog, string $type, MslsOptionsTax $myda
109109
$icon = MslsAdminIcon::create()->set_language( $language )->set_icon_type( $icon_type );
110110

111111
if ( $mydata->has_value( $language ) ) {
112-
$icon->set_href( $mydata->$language );
112+
$icon->set_href( (int) $mydata->$language );
113113
}
114114

115115
$options = '';

0 commit comments

Comments
 (0)