Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lloc committed Jun 21, 2024
1 parent 00f50e1 commit 46715c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MslsMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function theme_location( array $args ) {
];

foreach ( array_keys( $menu_locations ) as $value ) {
$options[] = sprintf( '<option value="%1$s" %2$s>%1$s</option>', $value, $this->selected( $value, $theme_locations ) );
$options[] = sprintf( '<option value="%1$s" %2$s>%1$s</option>', esc_attr( $value ), $this->selected( $value, $theme_locations ) );
}

printf( '<select id="%1$s" name="msls[%1$s][]" multiple="multiple">%2$s</select>', 'mslsmenu_theme_location', implode( '', $options ) );
Expand Down
10 changes: 6 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Contributors: realloc
Donate link: http://www.greenpeace.org/international/
Tags: multilingual, multisite, language, switcher, international, localization, i18n, menu, nav_menu
Tags: multilingual, multisite, language, switcher, menu
Requires at least: 5.3
Tested up to: 6.5
Requires PHP: 7.4
Expand All @@ -20,11 +20,11 @@ But this can lead to fatal errors if you don't know much about PHP, or maybe the

== Installation ==

* Download the plugin and uncompress it with your preferred unzip programme
* Copy the entire directory in your plugin directory of your WordPress blog (/wp-content/plugins)
* Use the WordPress plugin installation and search for "MslsMenu".
* Alternatively, download the plugin, uncompress it with your preferred unzip programme and upload the folder `msls-menu` to the `/wp-content/plugins/` directory.
* Activate the plugin
* You will find the configuration of the plugin once in each blog in Settings -> Multisite Language Switcher
* Set the the menu specific options such as `<li class="mslsl-menu">` before the item-ouitput or the description. Please, check the Screenshots-section too!
* Set the menu specific options such as `<li class="mslsl-menu">` before the item-ouitput or the description. Please, check the Screenshots-section too!

== Screenshots ==

Expand All @@ -35,6 +35,8 @@ But this can lead to fatal errors if you don't know much about PHP, or maybe the

== Changelog ==

= 2.4.1 =

= 2.4.0 =
* WordPress 6.5 tested
* "Requires Plugins" added
Expand Down

0 comments on commit 46715c0

Please sign in to comment.