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
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
/* bling.js */ | |
window.$ = document.querySelector.bind(document); | |
window.$$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
NodeList.prototype.__proto__ = Array.prototype; | |
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
Hello,
Many times, we see smaller sized droplets run out of memory due to the number of processes that are running. This can cause slow connections, services to crash and overall unpredictable behavior.
Potential solutions are:
Upsize to a larger server. We recommend at least a 1GB droplet for any server utilizing a MySQL database.
Enable swap (search for 'swap' in our articles https://digitalocean.com/community)
#!/usr/bin/env sh | |
# Install the Beta Tester plugin and set it to "Bleeding Edge" releases. | |
# Note: after installing plugin and setting the option, you may need to visit | |
# the site once before updating core version. | |
wp-beta() { | |
wp plugin install wordpress-beta-tester --activate | |
wp option set wp_beta_tester_stream unstable | |
wp core update |
echo "Creating an SSH key for you..." | |
ssh-keygen -t rsa | |
echo "Please add this public key to Github \n" | |
echo "https://github.com/account/ssh \n" | |
read -p "Press [Enter] key after this..." | |
echo "Installing xcode-stuff" | |
xcode-select --install |
upstream phpfpm { | |
server unix:/var/run/php5-fpm.sock; | |
} | |
upstream hhvm { | |
server unix:/var/run/hhvm/hhvm.sock; | |
} | |
# SSL | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; |
/* | |
- .aesop-on-THEMENAME is a class that aesop applies to themes | |
- this breaks the width that sets on main column | |
- .single targeting only single posts | |
*/ | |
.aesop-on-make.single .container { | |
max-width:100%; | |
padding-left:0; | |
padding-right:0; | |
} |
# Install dependencies | |
# | |
# * checkinstall: package the .deb | |
# * libpcre3, libpcre3-dev: required for HTTP rewrite module | |
# * zlib1g zlib1g-dbg zlib1g-dev: required for HTTP gzip module | |
apt-get install checkinstall libpcre3 libpcre3-dev zlib1g zlib1g-dbg zlib1g-dev && \ | |
mkdir -p ~/sources/ && \ | |
# Compile against OpenSSL to enable NPN |
/*global wp, jQuery */ | |
wp.customize.ReadOnly = ( function ( $, api ) { | |
var self; | |
self = {}; | |
self.init = function () { | |
// Hide the save button | |
$( '#save' ).hide(); |
Google Chrome Developers says:
The new WOFF 2.0 Web Font compression format offers a 30% average gain over WOFF 1.0 (up to 50%+ in some cases). WOFF 2.0 is available since Chrome 36 and Opera 23.
Some examples of file size differences: WOFF vs. WOFF2