Changeset 2513537
- Timestamp:
- 04/12/2021 07:17:43 PM (5 years ago)
- Location:
- social-sharing-9/tags/1.0.1
- Files:
-
- 2 edited
-
js/admin_functions.js (modified) (1 diff)
-
social_sharing_9.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
social-sharing-9/tags/1.0.1/js/admin_functions.js
r2064601 r2513537 60 60 social_data['placement'] = $('[name="placement[]"]').val(); 61 61 62 //console.log( social_data );62 console.log( social_data ); 63 63 64 64 var data = { -
social-sharing-9/tags/1.0.1/social_sharing_9.php
r2512739 r2513537 344 344 { 345 345 346 $key = sanitize_text_field($key); // Sanitize the key 347 346 348 // Repeat this 6 times (6 socials). It's like if($key == 'Facebok' || 'Twitter' || .....) 347 349 if($i <=6) 348 350 { 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'] ); 349 355 350 356 // Check if the social exists to determine if we do update or insert … … 382 388 if($key == 'post_types') 383 389 { 390 391 foreach($val as $key_pt=>$value_pt) { 392 $val[$key_pt] = sanitize_text_field( $value_pt ); // Sanitize the Values 393 } 394 384 395 $post_types_array = implode(',', $val); 385 396 … … 411 422 if($key == 'placement') 412 423 { 424 425 foreach($val as $key_p=>$value_p) { 426 $val[$key_p] = sanitize_text_field( $value_p ); // Sanitize the Values 427 } 428 413 429 $placement_array = implode(',', $val); 414 430 … … 439 455 if($key == 'size') 440 456 { 457 458 $val = sanitize_text_field($val); 459 441 460 // Check if the social exists to determine if we do update or insert 442 461 $already_exists = $wpdb->get_var( "SELECT COUNT(*) FROM $table_name WHERE social_name = '$key'" );
Note: See TracChangeset
for help on using the changeset viewer.