This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fix Trustwave Scan | |
// Non-HttpOnly Session Cookies Identified | |
// When you load the site you will see the security cookie twice, but the scan still passes. | |
function set_wordpress_test_cookie_httponly() { | |
setcookie( TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN, true, true ); | |
} | |
add_action('login_init','set_wordpress_test_cookie_httponly'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# References: | |
# | |
# Ruby Mime Type code - https://gist.github.com/colemanw/9c9a12aae16a4bfe2678de86b661d922 | |
# Microsoft Fabric Icons - https://developer.microsoft.com/en-us/fabric#/styles/icons | |
# | |
def icon_for_mimetype mime | |
mimes = { | |
'image': 'Photo2', | |
'audio': 'Speakers', |