Plugin Directory

Changeset 3383044


Ignore:
Timestamp:
10/23/2025 04:19:14 AM (5 months ago)
Author:
themepoints
Message:
  • Fix: Fix Vulnerability Issue.
  • Update: Update Options Page.
Location:
logo-showcase/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • logo-showcase/trunk/inc/logo-showcase-admin-info.php

    r3328079 r3383044  
    44    }
    55?>
    6 
    76<div class="wraper doc-suport">
    87    <div class="doc-support-header">
  • logo-showcase/trunk/inc/logo-showcase-metabox.php

    r3354397 r3383044  
    10751075    }
    10761076
    1077     #Checks for input and sanitizes/saves if needed   
    1078     if ( isset( $_POST['logo_showcase_columns_radius'] ) && ( $_POST['logo_showcase_columns_radius'] != '' ) ) {
    1079         update_post_meta( $post_id, 'logo_showcase_columns_radius', esc_html( $_POST['logo_showcase_columns_radius'] ) );
    1080     }
     1077    #Checks for input and sanitizes/saves if needed
     1078    if ( isset( $_POST['logo_showcase_columns_radius'] ) ) {
     1079        $logo_showcase_columns_radius = absint( $_POST['logo_showcase_columns_radius'] ); // ensures non-negative integer
     1080        update_post_meta( $post_id, 'logo_showcase_columns_radius', $logo_showcase_columns_radius );
     1081    }
    10811082
    10821083    // Checks for input and sanitizes/saves if needed
     
    11341135    }
    11351136
    1136     #Checks for input and sanitizes/saves if needed   
    1137     if ( isset( $_POST['logo_showcase_free_open_link'] ) && ( $_POST['logo_showcase_free_open_link'] != '' ) ) {
    1138         update_post_meta( $post_id, 'logo_showcase_free_open_link', esc_html( $_POST['logo_showcase_free_open_link'] ) );
    1139     }
     1137    #Checks for input and sanitizes/saves if needed
     1138    if ( isset( $_POST[ 'logo_showcase_free_open_link' ] ) ) {
     1139        $logo_showcase_free_open_link = sanitize_text_field( $_POST['logo_showcase_free_open_link'] );
     1140        update_post_meta( $post_id, 'logo_showcase_free_open_link', $logo_showcase_free_open_link );
     1141    }
    11401142
    11411143    // Checks for input and sanitizes/saves if needed
     
    11451147    }
    11461148
    1147     #Checks for input and sanitizes/saves if needed   
    1148     if ( isset( $_POST['logo_showcase_table_header_bg'] ) && ( $_POST['logo_showcase_table_header_bg'] != '' ) ) {
    1149         update_post_meta( $post_id, 'logo_showcase_table_header_bg', esc_html( $_POST['logo_showcase_table_header_bg'] ) );
    1150     }
    1151 
    1152     #Checks for input and sanitizes/saves if needed   
    1153     if ( isset( $_POST['logo_showcase_table_header_text'] ) && ( $_POST['logo_showcase_table_header_text'] != '' ) ) {
    1154         update_post_meta( $post_id, 'logo_showcase_table_header_text', esc_html( $_POST['logo_showcase_table_header_text'] ) );
    1155     }
    1156 
    1157     #Checks for input and sanitizes/saves if needed   
    1158     if ( isset( $_POST['logo_showcase_header_font_size'] ) && ( $_POST['logo_showcase_header_font_size'] != '' ) ) {
    1159         update_post_meta( $post_id, 'logo_showcase_header_font_size', esc_html( $_POST['logo_showcase_header_font_size'] ) );
    1160     }
     1149    // Checks for input and sanitizes/saves if needed
     1150    if ( isset( $_POST[ 'logo_showcase_table_header_bg' ] ) ) {
     1151        $logo_showcase_table_header_bg = sanitize_hex_color( $_POST['logo_showcase_table_header_bg'] );
     1152        update_post_meta( $post_id, 'logo_showcase_table_header_bg', $logo_showcase_table_header_bg );
     1153    }
     1154
     1155    // Checks for input and sanitizes/saves if needed
     1156    if ( isset( $_POST[ 'logo_showcase_table_header_text' ] ) ) {
     1157        $logo_showcase_table_header_text = sanitize_hex_color( $_POST['logo_showcase_table_header_text'] );
     1158        update_post_meta( $post_id, 'logo_showcase_table_header_text', $logo_showcase_table_header_text );
     1159    }
     1160
     1161    // Checks for input and sanitizes/saves if needed
     1162    if ( isset( $_POST[ 'logo_showcase_header_font_size' ] ) ) {
     1163        $logo_showcase_header_font_size = sanitize_text_field( $_POST['logo_showcase_header_font_size'] );
     1164        update_post_meta( $post_id, 'logo_showcase_header_font_size', $logo_showcase_header_font_size );
     1165    }
    11611166
    11621167    // Checks for input and sanitizes/saves if needed
     
    12261231    }
    12271232
    1228     #Checks for input and sanitizes/saves if needed   
    1229     if ( isset( $_POST['grid_normal_lists'] ) && ( $_POST['grid_normal_lists'] != '' ) ) {
    1230         update_post_meta( $post_id, 'grid_normal_lists', esc_html( $_POST['grid_normal_lists'] ) );
    1231     }
     1233    #Checks for input and sanitizes/saves if needed
     1234    if ( isset( $_POST[ 'grid_normal_lists' ] ) ) {
     1235        $grid_normal_lists = sanitize_text_field( $_POST['grid_normal_lists'] );
     1236        update_post_meta( $post_id, 'grid_normal_lists', $grid_normal_lists );
     1237    }
    12321238
    12331239    // Sanitize and save 'list_normal_column' field
     
    13511357    }
    13521358
     1359    // Checks for input and sanitizes/saves if needed 
     1360    if ( isset( $_POST['slide_center_mode'] ) && !empty( $_POST['slide_center_mode'] ) ) {
     1361        $slide_center_mode = sanitize_text_field( $_POST['slide_center_mode'] );
     1362        update_post_meta( $post_id, 'slide_center_mode', $slide_center_mode );
     1363    }   
     1364
    13531365    #Checks for input and sanitizes/saves if needed   
    1354     if ( isset( $_POST['slide_center_mode'] ) && ( $_POST['slide_center_mode'] != '' ) ) {
    1355         update_post_meta( $post_id, 'slide_center_mode', esc_html( $_POST['slide_center_mode'] ) );
    1356     }
    1357 
    1358     #Checks for input and sanitizes/saves if needed   
    1359     if ( isset( $_POST['logo_showcase_free_direction'] ) && ( $_POST['logo_showcase_free_direction'] != '' ) ) {
    1360         update_post_meta( $post_id, 'logo_showcase_free_direction', esc_html( $_POST['logo_showcase_free_direction'] ) );
     1366    if (isset($_POST['logo_showcase_free_direction'])) {
     1367        $logo_showcase_free_direction = sanitize_text_field($_POST['logo_showcase_free_direction']);
     1368        update_post_meta($post_id, 'logo_showcase_free_direction', $logo_showcase_free_direction);
    13611369    }
    13621370
     
    14731481        return;
    14741482    }
    1475 
    14761483    ?>
    14771484
  • logo-showcase/trunk/inc/logo-showcase-postytpe.php

    r3354397 r3383044  
    11<?php
    2 
    32    if ( ! defined( 'ABSPATH' ) ) {
    43        exit;
  • logo-showcase/trunk/logo-showcase-wordpress.php

    r3354397 r3383044  
    44 * Plugin URI: https://themepoints.com/logoshowcase/
    55 * Description: Logo Showcase plugin allow to Display a list of clients, supporters, partners or sponsors logos in your WordPress website easily.
    6  * Version: 3.0.9
     6 * Version: 4.0.0
    77 * Author: Themepoints
    88 * Author URI: https://themepoints.com
     
    1616
    1717// Define constants for plugin paths
    18 define( 'LOGO_SHOWCASE_VERSION', '3.0.9' );
     18define( 'LOGO_SHOWCASE_VERSION', '4.0.0' );
    1919define( 'LOGO_SHOWCASE_WP_PLUGIN_PATH', WP_PLUGIN_URL . '/' . plugin_basename( dirname( __FILE__ ) ) . '/' );
    2020define( 'logo_showcase_wp_plugin_dir', plugin_dir_path( __FILE__ ) );
  • logo-showcase/trunk/readme.txt

    r3354397 r3383044  
    44Tags:  logo, logo showcase, logo slider, logo carousel, slider, responsive carousel, showcase logo, image carousel, logo showcase, logo slide, logo slide show, logo slideshow, sponsors, carousel
    55Requires at least: 4.0
    6 Tested up to: 6.8.2
    7 Stable tag: 3.0.9
     6Tested up to: 6.8.3
     7Stable tag: 4.0.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    195195== Changelog ==
    196196
     197= 4.0.0 =
     198* Fix: Fix Vulnerability Issue.
     199* Update: Update Options Page.
     200
    197201= 3.0.9 =
    198202* Added New Styles.
Note: See TracChangeset for help on using the changeset viewer.