I hereby claim:
- I am timwhitlock on github.
- I am timwhitlock (https://keybase.io/timwhitlock) on keybase.
- I have a public key ASAqRSGF2gFgfMTquG-FBo71hJ229f0ZOlYS8-SbbTp-8Qo
To claim this, I am signing this object:
<?php | |
function runTest( MongoDB\Driver\WriteConcern $writeConcern ){ | |
$bulk = new MongoDB\Driver\BulkWrite(['ordered'=>false]); | |
for( $i = 0; $i < 10000; $i++ ){ | |
$bulk->insert( [ | |
'time' => new MongoDB\BSON\UTCDateTime, | |
] ); | |
} |
<?php | |
/** | |
* MU plugins inside directories are not returned in `get_mu_plugins`. | |
* This filter modifies the array obtained from Wordpress when Loco grabs it. | |
* | |
* Note that this filter only runs once per script execution, because the value is cached. | |
* Define the function *before* Loco Translate plugin is even included by WP. | |
*/ | |
function add_unregistered_plugins_to_loco( array $plugins ){ |
<?php | |
/* | |
Plugin Name: Loco Webhook | |
Description: Monitors changes to PO files during save operations | |
Author: Tim Whitlock | |
*/ | |
class LocoWebhook { | |
private $path; |
<?php | |
/* | |
Plugin Name: Valencia variant | |
Description: Makes "ca" locale appear like "ca-valencia" in Loco Translate | |
Author: Tim Whitlock | |
Version: 1.0.0 | |
*/ | |
// Only running for admin screens |
#, fuzzy | |
msgid "" | |
msgstr "" | |
"Project-Id-Version: BuddyPress 2.9.3\n" | |
"Report-Msgid-Bugs-To: \n" | |
"POT-Creation-Date: 2018-02-10 15:18+0000\n" | |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | |
"Language-Team: \n" | |
"Language: \n" |
<?php | |
/* wp-config.php */ | |
/* use mysqli driver, WP>=3.9 */ | |
define('WP_USE_EXT_MYSQL', false ); |
<?php | |
/* | |
Plugin Name: Preload SSH class | |
Plugin URI: https://wordpress.org/support/topic/conflict-with-ssh-sftp-updater-support-ssh2-fs_method/ | |
Description: Ensures custom SSH2 class is loaded before autoloader is triggered by class_exists | |
Author: Tim Whitlock | |
*/ | |
function filter_filesystem_method( $method = '' ){ | |
if( 'ssh2' === $method && ! class_exists('WP_Filesystem_SSH2',false) ){ |
<?php | |
/** | |
* Plugin Name: Disable POSTing to REST API | |
* Version: 0 | |
*/ | |
add_filter( 'rest_authentication_errors', function( $access = null ){ | |
if( 'GET' !== $_SERVER['REQUEST_METHOD'] ){ | |
return new WP_Error( 'rest_cannot_access', 'Nope', array( 'status' => 405 ) ); | |
} |
I hereby claim:
To claim this, I am signing this object: