I hereby claim:
- I am jbrinley on github.
- I am jbrinley (https://keybase.io/jbrinley) on keybase.
- I have a public key whose fingerprint is C697 B2D2 BE92 218A 8008 BA4B 66AD FFFF 3754 7705
To claim this, I am signing this object:
<?php | |
function action_scheduler_load_testing() { | |
/** @var wpdb $wpdb */ | |
global $wpdb; | |
$sql = "INSERT INTO {$wpdb->posts} (post_author, post_date, post_date_gmt, post_content, post_title, post_status, post_name, post_modified, post_modified_gmt, post_type) VALUES "; | |
for ( $i = -200 ; $i < 9800 ; $i++ ) { | |
$date = new DateTime($i.' minutes'); | |
$action = md5($i); |
<?php | |
require_once( 'wp-includes/class-wp-hook.php' ); | |
require_once( 'wp-includes/class-wp-hook-iterator.php' ); | |
function _wp_filter_build_unique_id($tag, $function, $priority) { | |
global $wp_filter; | |
static $filter_id_count = 0; | |
if ( is_string($function) ) |
<?php | |
function tribe_filter_import_data_before( $post ) { | |
if ( $post['post_type'] == TribeEvents::POSTTYPE && !empty($post['post_parent']) ) { | |
$start_date = ''; | |
if ( isset($post['postmeta']) && is_array($post['postmeta']) ) { | |
foreach ( $post['postmeta'] as $meta ) { | |
if ( $meta['key'] == '_EventStartDate' ) { | |
$start_date = $meta['value']; |
<?php | |
/* | |
Plugin Name: The Events Calendar - Cleanup Recurrence Duplicates | |
Description: Some users upgrading from an earlier version of Events Calendar PRO may, in rare circumstances, end up with duplicates of recurring events. | |
Version: 3.5 | |
Author: Modern Tribe, Inc. | |
Author URI: http://tri.be?ref=tec-plugin | |
Text Domain: tribe-events-calendar-recurrence-cleanup | |
License: GPLv2 or later |
<?php | |
$tags_string = ''; | |
if ( isset($_POST['tax_input']) && isset($_POST['tax_input']['post_tag']) ) { | |
$tags_string = $_POST['tax_input']['post_tag']; | |
} elseif ( get_post() && get_the_ID() ) { // is there a current post? | |
$current_tags = get_the_terms(get_the_ID(), 'post_tag'); | |
$current_tags = wp_list_pluck( $current_tags, 'name' ); | |
$tags_string = implode(', ', $current_tags); |
I hereby claim:
To claim this, I am signing this object:
WordPress 4.2 introduces a significant reworking of action and filter iteration to address bugs that arose from recursive callbacks and from callbacks that changed the hooked callbacks on currently running actions/filters.
What does this mean for you, the plugin or theme developer? In almost all cases, nothing. Everything should continue to run as expected, and this should fix a number of hard-to-trace bugs when different plugins are stepping on each others callbacks.
If your plugin directly accesses the $wp_filter
global rather than using the public hooks API, you might run into compatibility issues.
location / { | |
proxy_http_version 1.1; | |
proxy_buffering off; | |
proxy_set_header Host $http_host; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection $proxy_connection; | |
proxy_set_header X-Real-IP $proxy_remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_remote_addr; |
<?php | |
/* | |
Plugin Name: Mail to Text | |
Description: Sends all WP emails to text files in the uploads directory | |
*/ | |
if ( !function_exists( 'wp_mail' ) ) : |
<?php | |
/* | |
Plugin Name: Memcached Redux | |
Description: The real Memcached (not Memcache) backend for the WP Object Cache. | |
Version: 0.2 | |
Plugin URI: http://wordpress.org/extend/plugins/memcached/ | |
Author: Scott Taylor - uses code from Ryan Boren, Denis de Bernardy, Matt Martz | |
Contributors: jbrinley, Modern Tribe | |
Install this file to wp-content/object-cache.php |