Changeset 3262082
- Timestamp:
- 03/26/2025 10:17:58 AM (12 months ago)
- Location:
- dropdown-multisite-selector
- Files:
-
- 8 added
- 7 edited
- 1 copied
-
assets/screenshot-1.jpg (modified) (1 prop) (previous)
-
tags/0.9.5 (copied) (copied from dropdown-multisite-selector/trunk)
-
tags/0.9.5/README.md (added)
-
tags/0.9.5/dropdown-multisite-selector.php (modified) (2 diffs)
-
tags/0.9.5/functions/shortcodes.php (modified) (4 diffs)
-
tags/0.9.5/languages/dropdown-multisite-selector-en_US.mo (added)
-
tags/0.9.5/languages/dropdown-multisite-selector-en_US.po (added)
-
tags/0.9.5/languages/dropdown-multisite-selector.pot (added)
-
tags/0.9.5/readme.txt (modified) (2 diffs)
-
trunk/README.md (added)
-
trunk/dropdown-multisite-selector.php (modified) (2 diffs)
-
trunk/functions/shortcodes.php (modified) (4 diffs)
-
trunk/languages/dropdown-multisite-selector-en_US.mo (added)
-
trunk/languages/dropdown-multisite-selector-en_US.po (added)
-
trunk/languages/dropdown-multisite-selector.pot (added)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dropdown-multisite-selector/assets/screenshot-1.jpg
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/jpeg
-
Property
svn:mime-type
changed from
-
dropdown-multisite-selector/tags/0.9.5/dropdown-multisite-selector.php
r3024441 r3262082 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. 2.16 * Version: 0.9.4 7 7 * Author: alordiel 8 8 * Requires PHP: 7.4.0 … … 16 16 */ 17 17 18 /* Copyright 2014-202 1 Alexander Vasilev (email : alexander.vasilev@protonmail.com)18 /* Copyright 2014-2025 Alexander Vasilev (email : alex@timelinedev.com) 19 19 20 20 This program is free software; you can redistribute it and/or modify -
dropdown-multisite-selector/tags/0.9.5/functions/shortcodes.php
r3024441 r3262082 51 51 52 52 add_shortcode( 'dms_manual', 'dms_build_select_manual' ); 53 function dms_build_select_manual( $attributes ) { 53 function dms_build_select_manual( $attributes ): string 54 { 54 55 $output_error = ''; 55 56 $output = ''; … … 65 66 //Hide the label 66 67 if ( ! empty( $a['name'] ) ) { 67 $output .= "<label for='dms-select'>" . $a['name']. '</label>';68 $output .= "<label for='dms-select'>" . esc_html($a['name']) . '</label>'; 68 69 } 69 70 … … 75 76 } 76 77 77 $output .= "<option value=''>" . $a['placeholder']. '</option>';78 $output .= "<option value=''>" . esc_html($a['placeholder']) . '</option>'; 78 79 79 80 //load the options for the site … … 86 87 // check if positions are not switched 87 88 $name_is_a_link = ( strpos( $name, 'https://' ) !== false || strpos( $name, 'http://' ) !== false ); 88 $url_is_not_a_link = ( strpos( $url, 'https://' ) === false && strpos( $url, 'http s://' ) === false );89 $url_is_not_a_link = ( strpos( $url, 'https://' ) === false && strpos( $url, 'http://' ) === false ); 89 90 if ( $name_is_a_link && $url_is_not_a_link ) { 90 91 list( $name, $url ) = $one_site; -
dropdown-multisite-selector/tags/0.9.5/readme.txt
r3024441 r3262082 4 4 Requires at least: 3.8 5 5 Contributors: alordiel 6 Tested up to: 6. 4.27 Stable tag: 0.9. 2.16 Tested up to: 6.7.2 7 Stable tag: 0.9.4 8 8 Requires PHP: 7.4.0 9 9 License: GPLv2 or later … … 70 70 71 71 == Changelog == 72 73 = 0.9.4 = 74 * Date: 25 March 2025 75 * Security patch 72 76 73 77 = 0.9.2 = -
dropdown-multisite-selector/trunk/dropdown-multisite-selector.php
r3024441 r3262082 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. 2.16 * Version: 0.9.4 7 7 * Author: alordiel 8 8 * Requires PHP: 7.4.0 … … 16 16 */ 17 17 18 /* Copyright 2014-202 1 Alexander Vasilev (email : alexander.vasilev@protonmail.com)18 /* Copyright 2014-2025 Alexander Vasilev (email : alex@timelinedev.com) 19 19 20 20 This program is free software; you can redistribute it and/or modify -
dropdown-multisite-selector/trunk/functions/shortcodes.php
r3024441 r3262082 51 51 52 52 add_shortcode( 'dms_manual', 'dms_build_select_manual' ); 53 function dms_build_select_manual( $attributes ) { 53 function dms_build_select_manual( $attributes ): string 54 { 54 55 $output_error = ''; 55 56 $output = ''; … … 65 66 //Hide the label 66 67 if ( ! empty( $a['name'] ) ) { 67 $output .= "<label for='dms-select'>" . $a['name']. '</label>';68 $output .= "<label for='dms-select'>" . esc_html($a['name']) . '</label>'; 68 69 } 69 70 … … 75 76 } 76 77 77 $output .= "<option value=''>" . $a['placeholder']. '</option>';78 $output .= "<option value=''>" . esc_html($a['placeholder']) . '</option>'; 78 79 79 80 //load the options for the site … … 86 87 // check if positions are not switched 87 88 $name_is_a_link = ( strpos( $name, 'https://' ) !== false || strpos( $name, 'http://' ) !== false ); 88 $url_is_not_a_link = ( strpos( $url, 'https://' ) === false && strpos( $url, 'http s://' ) === false );89 $url_is_not_a_link = ( strpos( $url, 'https://' ) === false && strpos( $url, 'http://' ) === false ); 89 90 if ( $name_is_a_link && $url_is_not_a_link ) { 90 91 list( $name, $url ) = $one_site; -
dropdown-multisite-selector/trunk/readme.txt
r3024441 r3262082 4 4 Requires at least: 3.8 5 5 Contributors: alordiel 6 Tested up to: 6. 4.27 Stable tag: 0.9. 2.16 Tested up to: 6.7.2 7 Stable tag: 0.9.4 8 8 Requires PHP: 7.4.0 9 9 License: GPLv2 or later … … 70 70 71 71 == Changelog == 72 73 = 0.9.4 = 74 * Date: 25 March 2025 75 * Security patch 72 76 73 77 = 0.9.2 =
Note: See TracChangeset
for help on using the changeset viewer.