Plugin Directory

Changeset 3262082


Ignore:
Timestamp:
03/26/2025 10:17:58 AM (12 months ago)
Author:
alordiel
Message:

Update to version 0.9.5 from GitHub

Location:
dropdown-multisite-selector
Files:
8 added
7 edited
1 copied

Legend:

Unmodified
Added
Removed
  • dropdown-multisite-selector/assets/screenshot-1.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • dropdown-multisite-selector/tags/0.9.5/dropdown-multisite-selector.php

    r3024441 r3262082  
    44 * Plugin URI:        https://wordpress.org/plugins/dropdown-multisite-selector/
    55 * Description:       Allows you to configure a select option of redirecting to different webpages.
    6  * Version:           0.9.2.1
     6 * Version:           0.9.4
    77 * Author:            alordiel
    88 * Requires PHP:      7.4.0
     
    1616 */
    1717
    18 /*  Copyright 2014-2021 Alexander Vasilev  (email : alexander.vasilev@protonmail.com)
     18/*  Copyright 2014-2025 Alexander Vasilev  (email : alex@timelinedev.com)
    1919
    2020    This program is free software; you can redistribute it and/or modify
  • dropdown-multisite-selector/tags/0.9.5/functions/shortcodes.php

    r3024441 r3262082  
    5151
    5252add_shortcode( 'dms_manual', 'dms_build_select_manual' );
    53 function dms_build_select_manual( $attributes ) {
     53function dms_build_select_manual( $attributes ): string
     54{
    5455    $output_error = '';
    5556    $output       = '';
     
    6566    //Hide the label
    6667    if ( ! empty( $a['name'] ) ) {
    67         $output .= "<label for='dms-select'>" . $a['name'] . '</label>';
     68        $output .= "<label for='dms-select'>" . esc_html($a['name']) . '</label>';
    6869    }
    6970
     
    7576    }
    7677
    77     $output .= "<option value=''>" . $a['placeholder'] . '</option>';
     78    $output .= "<option value=''>" . esc_html($a['placeholder']) . '</option>';
    7879
    7980    //load the options for the site
     
    8687            // check if positions are not switched
    8788            $name_is_a_link    = ( strpos( $name, 'https://' ) !== false || strpos( $name, 'http://' ) !== false );
    88             $url_is_not_a_link = ( strpos( $url, 'https://' ) === false && strpos( $url, 'https://' ) === false );
     89            $url_is_not_a_link = ( strpos( $url, 'https://' ) === false && strpos( $url, 'http://' ) === false );
    8990            if ( $name_is_a_link && $url_is_not_a_link ) {
    9091                list( $name, $url ) = $one_site;
  • dropdown-multisite-selector/tags/0.9.5/readme.txt

    r3024441 r3262082  
    44Requires at least: 3.8
    55Contributors: alordiel
    6 Tested up to: 6.4.2
    7 Stable tag: 0.9.2.1
     6Tested up to: 6.7.2
     7Stable tag: 0.9.4
    88Requires PHP: 7.4.0
    99License: GPLv2 or later
     
    7070
    7171== Changelog ==
     72
     73= 0.9.4 =
     74* Date: 25 March 2025
     75* Security patch
    7276
    7377= 0.9.2 =
  • dropdown-multisite-selector/trunk/dropdown-multisite-selector.php

    r3024441 r3262082  
    44 * Plugin URI:        https://wordpress.org/plugins/dropdown-multisite-selector/
    55 * Description:       Allows you to configure a select option of redirecting to different webpages.
    6  * Version:           0.9.2.1
     6 * Version:           0.9.4
    77 * Author:            alordiel
    88 * Requires PHP:      7.4.0
     
    1616 */
    1717
    18 /*  Copyright 2014-2021 Alexander Vasilev  (email : alexander.vasilev@protonmail.com)
     18/*  Copyright 2014-2025 Alexander Vasilev  (email : alex@timelinedev.com)
    1919
    2020    This program is free software; you can redistribute it and/or modify
  • dropdown-multisite-selector/trunk/functions/shortcodes.php

    r3024441 r3262082  
    5151
    5252add_shortcode( 'dms_manual', 'dms_build_select_manual' );
    53 function dms_build_select_manual( $attributes ) {
     53function dms_build_select_manual( $attributes ): string
     54{
    5455    $output_error = '';
    5556    $output       = '';
     
    6566    //Hide the label
    6667    if ( ! empty( $a['name'] ) ) {
    67         $output .= "<label for='dms-select'>" . $a['name'] . '</label>';
     68        $output .= "<label for='dms-select'>" . esc_html($a['name']) . '</label>';
    6869    }
    6970
     
    7576    }
    7677
    77     $output .= "<option value=''>" . $a['placeholder'] . '</option>';
     78    $output .= "<option value=''>" . esc_html($a['placeholder']) . '</option>';
    7879
    7980    //load the options for the site
     
    8687            // check if positions are not switched
    8788            $name_is_a_link    = ( strpos( $name, 'https://' ) !== false || strpos( $name, 'http://' ) !== false );
    88             $url_is_not_a_link = ( strpos( $url, 'https://' ) === false && strpos( $url, 'https://' ) === false );
     89            $url_is_not_a_link = ( strpos( $url, 'https://' ) === false && strpos( $url, 'http://' ) === false );
    8990            if ( $name_is_a_link && $url_is_not_a_link ) {
    9091                list( $name, $url ) = $one_site;
  • dropdown-multisite-selector/trunk/readme.txt

    r3024441 r3262082  
    44Requires at least: 3.8
    55Contributors: alordiel
    6 Tested up to: 6.4.2
    7 Stable tag: 0.9.2.1
     6Tested up to: 6.7.2
     7Stable tag: 0.9.4
    88Requires PHP: 7.4.0
    99License: GPLv2 or later
     
    7070
    7171== Changelog ==
     72
     73= 0.9.4 =
     74* Date: 25 March 2025
     75* Security patch
    7276
    7377= 0.9.2 =
Note: See TracChangeset for help on using the changeset viewer.