Skip to content

Instantly share code, notes, and snippets.

View jwenerd's full-sized avatar
workin'

Jared Wenerd jwenerd

workin'
View GitHub Profile
@jwenerd
jwenerd / wp-multisite-db-upgrade.php
Last active August 29, 2015 14:20
with changes for our 4.2.2 mb upgrade
<?php
/**
* WordPress Multisite upgrade script
*
*
* @author Mo Jangda [email protected],
* Jared Wenerd [email protected]
* @license GPL2
*/
@jwenerd
jwenerd / gist:87a10a7ae74e4931ac96
Created April 22, 2015 15:22
Co Authores Plus WP plugin - set template tags auto
<?php
add_filter('coauthors_auto_apply_template_tags', '__return_true');
{
"method": "GET",
"path": "\/steps\/72\/earn",
"format": "html",
"controller": "steps",
"action": "earn",
"status": 200,
"duration": 310.31,
"view": 293.87,
"db": 4.94,
<% if ENV['TEXAS_STATE'] %>
// Texas state CSS over rides go here
<% end %>
Array
(
[0] => Array
(
[function] => {closure}
[args] => Array
(
[0] => https://sites.psu.edu/wp-admin/admin.php?page=jetpack
)
$(document).on('tk:thing-start', function() {
$('#something').addClass('whatever');
});
function start_thing() {
$(document).trigger('tk:thing-start');
/// do the computing
@jwenerd
jwenerd / foo.rb
Created February 23, 2015 15:53
testing out instance define methods for models
class Foo
def self.set_foo
@foo = 1
end
def self.print_foo
puts "class isntance foo = #{@foo}"
end
<?php
/*
Plugin Name: PageLines Security Patcher
Description: Blocks the recent exploits for legacy themes in the event you cant update the themes.
Version: 1.0
Author: PageLines
*/
class Fix_Pagelines_Legacy {
function __construct() {
@jwenerd
jwenerd / show-all-categorys.php
Created December 9, 2014 23:45
The following PHP is a plugin that shows all categories (including non-empty categories) in the Jetpack Widget Visibility dropdown. It typically hides empty by default...
<?php
if( ! defined('ABSPATH') ) {
exit;
}
// inlcude this seperately from the other jetpack fixes
// because of widget visiability being loaded independently
// of actual jetpack
@jwenerd
jwenerd / gist:ce9b5b5939c4065994dc
Created October 3, 2014 18:28
CIC member school domains
psu.edu
uchicago.edu
illinois.edu
iub.edu
uiowa.edu
umd.edu
umich.edu
msu.edu
umn.edu
unl.edu