Skip to content

Instantly share code, notes, and snippets.

View paulgibbs's full-sized avatar

Paul Wong-Gibbs paulgibbs

View GitHub Profile
@paulgibbs
paulgibbs / test.php
Last active December 14, 2016 12:48
get_post_galleries bug in WP 4.7 branch and PHP 7.1
<?php
public function test_this_breaks_on_php71() {
$post_id = $this->factory->post->create( array(
'post_content' => 'blah [gallery] blah',
) );
$gallery = get_post_galleries( $post_id, false );
$this->assertSame( array( array( 'src' => array() ) ), $gallery );
}
https://paulgibbs.github.io/usat.html
http://mmajwasabi.lrnc-qa.usatodaysports.com/2014/12/dallas-cowboys-tony-romo-demarco-murray-nine-wins-nfl-playoffs
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
http://www.buddyboss.com/BuddyPress-Wall-Plugin?gclid=CL3thMr2ptACFQEM0wodOwAJPQ
@paulgibbs
paulgibbs / -
Created October 26, 2016 11:04
diff --git a/config.yaml b/config.yaml
index 6c3e0ce..b73558b 100644
--- a/config.yaml
+++ b/config.yaml
@@ -15,7 +15,7 @@
#
# (When overriding, include vagrant.local if you need it)
hosts:
- - vagrant.local
+ - colt.dev
@paulgibbs
paulgibbs / -
Created October 21, 2016 15:24
Index: src/wp-includes/capabilities.php
===================================================================
--- src/wp-includes/capabilities.php (revision 38699)
+++ src/wp-includes/capabilities.php (working copy)
@@ -470,7 +470,7 @@
$current_user = wp_get_current_user();
- if ( empty( $current_user ) ) {
+ if ( ! $current_user->ID ) {
<item>
<title>Digital Transformation</title>
<link>http://www.colt.net/blog/2015/10/01/digital-transformation/</link>
<pubDate>Thu, 01 Oct 2015 22:11:18 +0000</pubDate>
<dc:creator><![CDATA[Colt Technology Services]]></dc:creator>
<guid isPermaLink="false">http://www.colt.net/?p=8885</guid>
<description><![CDATA[<p>The post <a rel="nofollow" href="http://www.colt.net/blog/2015/10/01/digital-transformation/">Digital Transformation</a> appeared first on <a rel="nofollow" href="http://www.colt.net">Colt</a></p>
]]></description>
<content:encoded><![CDATA[<div class="wistia_responsive_padding" style="padding: 56.25% 0 28px 0; position: relative;">
# Background
The adventure is "Storm King's Thunder", a new adventure for characters level 1-11+.
Players of all experience levels are welcome. The group size will be >= 4 players.
As a Player, you don't *need* to buy anything. However, a good set of dice will always help! [0]
# Required info
We will be using audio to communicate (webcams optional but recommended) over something like Skype or Discord.
We will play on https://roll20.net/, which is a virtual table top. In-person play will still be possible, though laptops will have to be shared (etc).
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 4.1.3 by Sebastian Bergmann.
Configuration read from /srv/www/buddypress.dev/src/wp-content/plugins/buddypress/phpunit.xml.dist
............................................................. 61 / 1391 ( 4%)
.....................................F....................... 122 / 1391 ( 8%)
...................................F......................... 183 / 1391 ( 13%)
array(23) {
'bp-deactivated-components' =>
array(0) {
}
'bb-config-location' =>
string(41) "/srv/www/buddypress.dev/src/bb-config.php"
'bp-xprofile-base-group-name' =>
string(4) "Base"
'bp-xprofile-fullname-field-name' =>
string(4) "Name"