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
<?php | |
/* | |
* Plugin Name: CSP | |
* Description: Uses inline_js() to make CSP happen | |
*/ | |
add_filter('inline_js_attributes', function ($attr) { | |
$nonce = wp_create_nonce('csp'); | |
return $attr . ' nonce="'.esc_attr($nonce).'" '; |
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
javascript:var f=document.querySelectorAll('form');for(var i=0;i<f.length;i++){f[i].noValidate=true} |
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
javascript:var f=document.querySelectorAll('form');for(var i=0;i<f.length;i++){f[i].noValidate=true} |
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
From 6fe847423069d9bed7e6bc6c4fb4a9a12687c562 Mon Sep 17 00:00:00 2001 | |
From: Tom Adams <tom@dxw.com> | |
Date: Tue, 4 Mar 2014 15:36:16 -0500 | |
Subject: [PATCH] s/$_POST/stripslashes_deep($_POST)/ | |
--- | |
by-email/by-email.php | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/by-email/by-email.php b/by-email/by-email.php |
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
#!/bin/ruby | |
# Read an XML document on STDIN, write an XML document on STDOUT | |
# | |
# Replace | |
# <wxr_version xmlns="http://wordpress.org/export/1.2/">1.2</wxr_version> | |
# with | |
# <wp:wxr_version>1.2</wp:wxr_version> | |
# and add xmlns:wp=... to the root node |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'csv' | |
require 'roo' | |
excel = Roo::Excelx.new('filename.xlsx') | |
CSV do |csv| # (stdout) |
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
From 157cc551cbe2bbdbd836976fa43bb249e2608e30 Mon Sep 17 00:00:00 2001 | |
From: Tom Adams <tom@dxw.com> | |
Date: Fri, 7 Jun 2013 09:01:33 -0400 | |
Subject: [PATCH] s/$_POST/stripslashes_deep($_POST)/ | |
--- | |
by-email/by-email.php | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/by-email/by-email.php b/by-email/by-email.php |
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
// IE img width/height polyfill | |
jQuery(function ($) { | |
$('img').each(function () { | |
var $this = $(this) | |
if ($this.attr('width') !== undefined) { | |
$this.css('width', $this.attr('width')+'px') | |
} | |
if ($this.attr('height') !== undefined) { | |
$this.css('height', $this.attr('height')+'px') |
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
From f549fafe7510e10c4201674e679aeed89bbef3cb Mon Sep 17 00:00:00 2001 | |
From: Tom Adams <tom@dxw.com> | |
Date: Thu, 24 Jan 2013 16:39:19 -0500 | |
Subject: [PATCH] [#919] IE compatible JS syntax | |
--- | |
mailchimp.php | 8 ++++---- | |
1 file changed, 4 insertions(+), 4 deletions(-) | |
diff --git a/mailchimp.php b/mailchimp.php |
NewerOlder