Plugin Directory

Changeset 2513537


Ignore:
Timestamp:
04/12/2021 07:17:43 PM (5 years ago)
Author:
platcatheo
Message:

'Fixed-Inconsistencies'

Location:
social-sharing-9/tags/1.0.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • social-sharing-9/tags/1.0.1/js/admin_functions.js

    r2064601 r2513537  
    6060            social_data['placement'] = $('[name="placement[]"]').val();
    6161
    62                 // console.log( social_data );
     62                console.log( social_data );
    6363
    6464                var data = {
  • social-sharing-9/tags/1.0.1/social_sharing_9.php

    r2512739 r2513537  
    344344            {
    345345
     346                $key = sanitize_text_field($key); // Sanitize the key
     347
    346348                // Repeat this 6 times (6 socials). It's like if($key == 'Facebok' || 'Twitter' || .....)
    347349                if($i <=6)
    348350                {
     351
     352                    $val['order_id'] = sanitize_text_field( $val['order_id'] );
     353                    $val['color'] = sanitize_hex_color( $val['color'] );
     354                    $val['status'] = sanitize_text_field( $val['status'] );
    349355
    350356                    // Check if the social exists to determine if we do update or insert
     
    382388                if($key == 'post_types')
    383389                {
     390
     391                    foreach($val as $key_pt=>$value_pt) {
     392                        $val[$key_pt] = sanitize_text_field( $value_pt ); // Sanitize the Values
     393                    }
     394
    384395                    $post_types_array = implode(',', $val);
    385396
     
    411422                if($key == 'placement')
    412423                {
     424
     425                    foreach($val as $key_p=>$value_p) {
     426                        $val[$key_p] = sanitize_text_field( $value_p ); // Sanitize the Values
     427                    }
     428
    413429                    $placement_array = implode(',', $val);
    414430
     
    439455                if($key == 'size')
    440456                {
     457
     458                    $val = sanitize_text_field($val);
     459
    441460                    // Check if the social exists to determine if we do update or insert
    442461                    $already_exists = $wpdb->get_var( "SELECT COUNT(*) FROM $table_name WHERE social_name = '$key'" );
Note: See TracChangeset for help on using the changeset viewer.