7
7
* @wordpress-plugin
8
8
*
9
9
* Plugin Name: Multisite Language Switcher
10
- * Version: 2.6.4
10
+ * Version: 2.7.0
11
11
* Plugin URI: http://msls.co/
12
12
* Description: A simple but powerful plugin that will help you to manage the relations of your contents in a multilingual multisite-installation.
13
13
* Author: Dennis Ploetner
30
30
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
31
31
*/
32
32
33
- if ( file_exists (__DIR__ . '/vendor/autoload.php ' ) ) {
33
+ if ( file_exists ( __DIR__ . '/vendor/autoload.php ' ) ) {
34
34
require __DIR__ . '/vendor/autoload.php ' ;
35
35
}
36
36
40
40
* @author Dennis Ploetner <[email protected] >
41
41
*/
42
42
if ( ! defined ( 'MSLS_PLUGIN_VERSION ' ) ) {
43
- define ( 'MSLS_PLUGIN_VERSION ' , '2.6.4 ' );
43
+ define ( 'MSLS_PLUGIN_VERSION ' , '2.7.0 ' );
44
44
define ( 'MSLS_PLUGIN_PATH ' , plugin_basename ( __FILE__ ) );
45
45
define ( 'MSLS_PLUGIN__FILE__ ' , __FILE__ );
46
46
54
54
* @return string
55
55
*/
56
56
function get_the_msls ( $ attr ): string {
57
- $ arr = is_array ( $ attr ) ? $ attr : [] ;
57
+ $ arr = is_array ( $ attr ) ? $ attr : array () ;
58
58
$ obj = apply_filters ( 'msls_get_output ' , null );
59
59
60
60
return ! is_null ( $ obj ) ? strval ( $ obj ->set_tags ( $ arr ) ) : '' ;
@@ -77,7 +77,7 @@ function get_the_msls( $attr ): string {
77
77
*
78
78
* @param string[] $arr
79
79
*/
80
- function the_msls ( array $ arr = [] ): void {
80
+ function the_msls ( array $ arr = array () ): void {
81
81
echo get_the_msls ( $ arr );
82
82
}
83
83
@@ -89,7 +89,7 @@ function the_msls( array $arr = [] ): void {
89
89
* @return string
90
90
*/
91
91
function get_msls_flag_url ( string $ locale ): string {
92
- return ( new \lloc \Msls \MslsOptions )->get_flag_url ( $ locale );
92
+ return ( new \lloc \Msls \MslsOptions () )->get_flag_url ( $ locale );
93
93
}
94
94
95
95
/**
@@ -126,8 +126,8 @@ function get_msls_permalink( string $locale, string $default = '' ): string {
126
126
}
127
127
128
128
/**
129
- * Looks for the MslsBlog instance for a specific locale
130
- *
129
+ * Looks for the MslsBlog instance for a specific locale
130
+ *
131
131
* @param string $locale
132
132
*
133
133
* @return \lloc\Msls\MslsBlog|null
@@ -145,14 +145,14 @@ function msls_blog_collection(): \lloc\Msls\MslsBlogCollection {
145
145
return \lloc \Msls \MslsBlogCollection::instance ();
146
146
}
147
147
148
- /**
149
- * Gets the MslsOptions instance
150
- *
151
- * @return \lloc\Msls\MslsOptions
152
- */
153
- function msls_options (): \lloc \Msls \MslsOptions {
154
- return \lloc \Msls \MslsOptions::instance ();
155
- }
148
+ /**
149
+ * Gets the MslsOptions instance
150
+ *
151
+ * @return \lloc\Msls\MslsOptions
152
+ */
153
+ function msls_options (): \lloc \Msls \MslsOptions {
154
+ return \lloc \Msls \MslsOptions::instance ();
155
+ }
156
156
157
- lloc \Msls \MslsPlugin::init ();
157
+ lloc \Msls \MslsPlugin::init ();
158
158
}
0 commit comments