Skip to content

Instantly share code, notes, and snippets.

View desrosj's full-sized avatar

Jonathan Desrosiers desrosj

View GitHub Profile
vagrant@vvv:/srv/www/wordpress-develop/public_html$ phpunit --group dbdelta
Installing...
Running as single site... To run multisite, use -c tests/phpunit/multisite.xml
Not running ajax tests. To execute these, use --group ajax.
Not running ms-files tests. To execute these, use --group ms-files.
Not running external-http tests. To execute these, use --group external-http.
PHPUnit 5.7.16 by Sebastian Bergmann and contributors.
WordPress database error Specified key was too long; max key length is 1000 bytes for query
CREATE TABLE wptests_dbdelta_test (
<?php
$posts = array();
$args = array(
'posts_per_page' => 100,
'offset' => 0,
'post_type' => 'post',
'post_status' => 'publish',
);
@desrosj
desrosj / heartbeat_allowed.php
Last active February 10, 2016 18:36 — forked from JPry/heartbeat_allowed.php
Note that you must change "plugins.php" to match whatever page you want to allow.
<?php
/**
* Plugin Name: Allow Heartbeat for Gravity Forms on WP Enting
* Plugin URI: https://gist.github.com/desrosj/409a17b718f07d1190b7
* Description: Allow the Heartbeat API on Gravity Form related edit pages on WP Engine. Fork of https://gist.github.com/JPry/b1f6c55a5d5337557f97
* Version: 1.0
* Author: Jonathan Desrosiers
* Author URI: http://jonathandesrosiers.com/
* License: GPL2
*/