Plugin Directory

Changeset 3372411


Ignore:
Timestamp:
10/03/2025 02:13:03 PM (5 months ago)
Author:
sided
Message:

implode error Fixed

Location:
sided/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sided/trunk/partials/functions.php

    r3370080 r3372411  
    145145        }
    146146
     147        // added this on 2025-10-03 start
     148        // if (count($names) > 0) {
     149        //     echo "<script>
     150        //         window.sidedScriptPayload = window.sidedScriptPayload || {};
     151        //         window.sidedScriptPayload.categories = ['" . implode("', '", esc_js($names)) . "'];
     152        //     </script>";
     153        // }
    147154        if (count($names) > 0) {
     155            $escaped_names = array_map('esc_js', $names); // apply esc_js to each name
    148156            echo "<script>
    149157                window.sidedScriptPayload = window.sidedScriptPayload || {};
    150                 window.sidedScriptPayload.categories = ['" . implode("', '", esc_js($names)) . "'];
     158                window.sidedScriptPayload.categories = ['" . implode("', '", $escaped_names) . "'];
    151159            </script>";
    152160        }
     161        // added this on 2025-10-03 end
    153162    }
    154163}
  • sided/trunk/readme.txt

    r3370080 r3372411  
    55Requires at least: 4.7
    66Tested up to: 6.5.3
    7 Stable tag: 1.4.8
     7Stable tag: 1.4.9
    88Requires PHP: 7.0
    99License: GPLv2 or later
  • sided/trunk/sided.php

    r3370080 r3372411  
    44* Plugin URI: https://sided.co/
    55* Description: It is a wordpress plugin to embed sided polls in your Wordpress website.
    6 * Version: 1.4.8
     6* Version: 1.4.9
    77* Author: Sided
    88**/
    99
    10 define( 'SIDED_VERSION', '1.4.8' );
     10define( 'SIDED_VERSION', '1.4.9' );
    1111define( 'SIDED_PLUGIN', __FILE__ );
    1212define( 'SIDED_PLUGIN_DIR', untrailingslashit( dirname( SIDED_PLUGIN ) ) );
Note: See TracChangeset for help on using the changeset viewer.