Changeset 2893349
- Timestamp:
- 04/04/2023 07:19:30 AM (3 years ago)
- Location:
- dropdown-multisite-selector/trunk
- Files:
-
- 3 edited
-
dropdown-multisite-selector.php (modified) (1 diff)
-
functions/functions.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dropdown-multisite-selector/trunk/dropdown-multisite-selector.php
r2707718 r2893349 4 4 * Plugin URI: https://wordpress.org/plugins/dropdown-multisite-selector/ 5 5 * Description: Allows you to configure a select option of redirecting to different webpages. 6 * Version: 0.9. 16 * Version: 0.9.2 7 7 * Author: alordiel 8 * Requires PHP: 7.4.0 9 * Requires at least: 3.8 8 10 * Author URI: http://profiles.wordpress.org/alordiel 9 11 * Text Domain: dropdown-multisite-selector -
dropdown-multisite-selector/trunk/functions/functions.php
r2707661 r2893349 118 118 $search = array( 119 119 '@<script[^>]*?>.*?</script>@si', 120 '@<[ \/\!]*?[^<>]*?>@si',120 '@<[/!]*?[^<>]*?>@si', 121 121 '@<![\s\S]*?--[ \t\n\r]*>@' 122 122 ); … … 169 169 } 170 170 if ( $i > mb_strlen( $b_string ) ) { 171 return true;171 return 1; 172 172 } 173 174 return ( mb_strpos( $alphabet, mb_substr( $a, $i, 1 ) ) > mb_strpos( $alphabet, mb_substr( $b, $i, 1 ) ) );173 $compared = ( mb_strpos( $alphabet, mb_substr( $a_string, $i, 1 ) ) > mb_strpos( $alphabet, mb_substr( $b_string, $i, 1 ) ) ); 174 return $compared ? 1 : -1; 175 175 } 176 176 177 return false;177 return -1; 178 178 } 179 179 … … 187 187 $b_string = mb_strtolower( $b['name'] ); 188 188 189 return $a_string > $b_string ;189 return $a_string > $b_string ? 1 : -1; 190 190 } -
dropdown-multisite-selector/trunk/readme.txt
r2707718 r2893349 1 === Plugin Name===1 === Dropdown Multisite selector === 2 2 3 3 Tags: multisite, dropdown menu, flexible select, edit select options, redirect 4 4 Requires at least: 3.8 5 5 Contributors: alordiel 6 Tested up to: 5.9.3 7 Stable tag: 0.9.1 6 Tested up to: 6.2.0 7 Stable tag: 0.9.2 8 Requires PHP: 7.4.0 8 9 License: GPLv2 or later 9 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 69 70 70 71 == Changelog == 72 73 = 0.9.2 = 74 * Date: 03 Apr 2023 75 * [Fix] PHP8 deprecation notice 76 * [Fix] PHP8 fatal error on saving a content with [dms] shortcode (solved by @zodiac1978) 77 71 78 = 0.9.1 = 72 79 * Date: 10 Apr 2022 73 80 * [Fix] issue with dms_manual shortcode 74 75 81 76 82 = 0.9.0 =
Note: See TracChangeset
for help on using the changeset viewer.