Skip to content

Instantly share code, notes, and snippets.

@ridinghoodmedia
ridinghoodmedia / camila-validation.js
Last active February 18, 2022 19:15
Camila validation example
const name = document.getElementById('userName');
const email = document.getElementById('userEmail');
const form = document.getElementById('form');
const modal = document.querySelector('.modal');
const overlay = document.querySelector('.overlay');
const openBtn = document.querySelector('.openBtn');
const closeBtn = document.querySelector('.closeBtn');
/**
<?php
/**
* file: wp-content/plugins/gravityforms/includes/query/class-gf-query.php
* lines: 331 - 333
* Line 331: Here is where the bug starts, $value = [1, 2, 3], input type = 'number', and condition = 'in'. Despite $value being
* an array, the conditions pass.
* Line 332: The array is not numeric, so the condition passes
* Line 333: The value is converted to a float (1.0) so the filter doesn't work
*/
<!-- wp:group {"templateLock": "contentOnly","layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:stellar/columns {"uniqueId":"bb4037f","hasBackground":true,"blockBackgroundMediaUrl":"http://modernrecoveryservices.local/wp-content/uploads/2023/09/clearconvert_f79079bfd3d1206f13_crxs3b.png","rawCss":"\u003cstyle\u003e.str-bb4037f{background-image:url(http://modernrecoveryservices.local/wp-content/uploads/2023/09/clearconvert_f79079bfd3d1206f13_crxs3b.png) !important;z-index:2 !important}.str-bb4037f-column{max-width:970px !important}\u003c/style\u003e","zIndex":2,"generatedClasses":{"blockBorderRadius2":{"type":"blockDiv","desktop":{"value":"custom","class":""}},"blockPadding":{"type":"blockDiv"},"blockMargin":{"type":"blockDiv"}},"containerWidth":970} -->
<!-- wp:stellar/column {"uniqueId":"9a2769f","blockPadding":{"top":300,"right":"","bottom":60,"left":""},"rawCss":"\u003cstyle\u003e.str-9a2769f{padding-top:300px !important;padding-bottom:60px !important}@media screen and (min-width:768p