Tests run on an HGV Vagrant using siege
(3.0.5) with 25 concurrent users for 5 minutes.
TL;DR: PHP 7 was 2.6 times faster than PHP 5.5
Tests run on an HGV Vagrant using siege
(3.0.5) with 25 concurrent users for 5 minutes.
TL;DR: PHP 7 was 2.6 times faster than PHP 5.5
<?php | |
add_action('admin_init', function () { | |
// Redirect any user trying to access comments page | |
global $pagenow; | |
if ($pagenow === 'edit-comments.php') { | |
wp_redirect(admin_url()); | |
exit; | |
} |
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |
<?php | |
/* | |
Plugin Name: A faster load_textdomain | |
Version: 0.0.1 | |
Description: While we're wating for https://core.trac.wordpress.org/ticket/32052. | |
Author: Per Soderlind | |
Author URI: https://soderlind.no | |
Plugin URI: https://gist.github.com/soderlind/610a9b24dbf95a678c3e | |
License: GPL |
<?php | |
/** | |
* wp_register_script wrapper with local fallback | |
* | |
* @param $handle | |
* @param $src | |
* @param $js_test JavaScript code to test for availability of object | |
* @param bool|false $local_src Load source file if test fails | |
* @param array $deps |
This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
<?php | |
function ewp_remove_script_version( $src ){ | |
return remove_query_arg( 'ver', $src ); | |
} | |
add_filter( 'script_loader_src', 'ewp_remove_script_version', 15, 1 ); | |
add_filter( 'style_loader_src', 'ewp_remove_script_version', 15, 1 ); |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.25882352941176467</real> | |
<key>Green Component</key> | |
<real>0.21176470588235294</real> |
/** | |
* Utilities | |
* see http://youmightnotneedjquery.com/ | |
* @type {Object} | |
*/ | |
var U = { | |
/** | |
* Call a function when DOM is ready | |
* @param {Function} fn Function to call when DOM is ready | |
*/ |