Changeset 3143
- Timestamp:
- 05/14/2016 12:57:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/style/trac/trac-security.js
r3135 r3143 17 17 'escape', 'unescape', 'escaped', 'unescaped', 'escapes', 'escaping', 'unescaping', 'esc_', 18 18 'sanitize', 'unsanitize', 'sanitizes', 'unsanitizes', 'sanitized', 'unsanitized', 'sanitization', 19 'valid', 'invalid', 'validate', 'validates', 'validation','hack', 'vulnerable', 'attack', 20 'compromise', 'escalation', 'injection', 'forgery', 'password', 'passwords', 'cross-site' , 21 'secure' 19 'valid', 'invalid', 'validate', 'validates', 'validation','hack', 'vulnerable', 'attack', 20 'compromise', 'escalation', 'injection', 'forgery', 'password', 'passwords', 'cross-site' , 21 'secure' 22 22 ], 23 23 … … 37 37 38 38 function show_box() { 39 // We have a potential problem here 40 submit.prop( 'disabled', true ); 39 // Disable submit only if the box isn't already checked. 40 if ( false === $( '#security-question input' ).is( ':checked' ) ) { 41 submit.prop( 'disabled', true ); 42 } 43 41 44 if ( $( '#security-question' ).length !== 0 ) { 42 45 // We've already created the checkbox … … 58 61 jQuery( '#field-summary, #field-description, #field-keywords' ).on( 'keyup', function() { 59 62 var entry = $(this).val(); 60 63 61 64 if ( wp.trac_security.has_overlap( entry, wp.trac_security.badwords ) ) { 62 65 show_box();
Note: See TracChangeset
for help on using the changeset viewer.