But in your code I saw the following, includes/MslsBlogCollection.php:
public function get_filtered( $filter = false ) {
if ( ! $filter && $this->current_blog_output ) {
return $this->get_objects();
}
return $this->get();
}
If $filter was supposed to be false, it should be executed.
return $this->get_objects();
And this does show all, including the current language… but it does not work, I must modify it this way:
public function get_filtered( $filter = false ) {
if ( $filter == false ) {
return $this->get_objects();
}
return $this->get();
}
And use
$links = ( new MslsOutput() )->get( 0, false );
print_r($links);
With this it does show all the languages… But I don’t want to modify the code of your plugin and then I would lose the changes once updated. Could you fix it in the next version, please?
It seems that you had it in your code but it should not work, since there is a class css that is added to the current language “current_language” but never shows the current language… So I figured it was a bug
$arr[] = sprintf(
'<a href="%s" title="%s"%s>%s</a>',
$url,
$link->txt,
( $current ? ' class="current_language"' : '' ),
$link
);
Thanks.