This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Enable unpublished pages in page lists and dropdowns | |
* | |
* @param array $args | |
* @return array $args | |
*/ | |
function scl_list_pages_args( $args ) { | |
$args['post_status'] = array( 'publish', 'private' ); | |
return $args; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a template .gitignore file for git-managed WordPress projects. | |
# | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. | |
# | |
# See the comments below for more info on how to add exceptions for your |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PAGESPEED_VERSION=v1.12.34.2-stable | |
apt-get remove nginx nginx-full -y | |
apt-get install dpkg-dev build-essential zlib1g-dev libpcre3 libpcre3-dev -y | |
sed -i "s/# deb-src/deb-src/" /etc/apt/sources.list.d/nginx-ubuntu-development-xenial.list | |
apt-get update | |
apt-get build-dep nginx -y | |
cd /tmp | |
apt-get source nginx |