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
<?php | |
/* | |
Plugin Name: Attachment Categories | |
Description: Allows attachments to be categorised | |
Version: 1.0 | |
Author: Human Made Limited | |
Author URI: http://hmn.md | |
*/ |
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
/** | |
* Adds sticky posts to your category archive | |
* pages. | |
* | |
* Works in exactly the same way as sticky posts work | |
* on the homepage, including all the negatives like | |
* breaking the posts_per_page and only showing | |
* them on page 1 etc. | |
* | |
* @param array $posts |
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
<?php | |
// Don't activate on anything less than PHP 5.2.4 | |
if ( version_compare( phpversion(), '5.2.4', '<' ) ) { | |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); | |
deactivate_plugins( WPRP_PLUGIN_SLUG . '/plugin.php' ); | |
if ( isset( $_GET['action'] ) && ( $_GET['action'] == 'activate' || $_GET['action'] == 'error_scrape' ) ) | |
die( __( 'WP Remote requires PHP version 5.2.4 or greater.', 'wpremote' ) ); |
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
require 'formula' | |
def mysql_installed? | |
`which mysql_config`.length > 0 | |
end | |
class Php < Formula | |
url 'http://museum.php.net/php5/php-5.2.4.tar.gz' | |
homepage '' | |
md5 '0826e231c3148b29fd039d7a8c893ad3' |
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
/.htaccess | |
/wp-config.php | |
/wp-content/uploads/ |
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
<?php | |
// Don't disable on dev | |
if ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) { | |
// Disable core update checking | |
add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) ); | |
remove_action( 'admin_init', '_maybe_update_core' ); | |
remove_action( 'wp_version_check', 'wp_version_check' ); |
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
<?php | |
/** | |
* Setup the termmeta table | |
* | |
* Use <code>add_theme_support( 'term-meta' );</code> to enable support for term meta | |
*/ | |
function hm_add_term_meta_table() { | |
global $wpdb; |
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
<?php | |
// TODO Handle tagged releases | |
// TODO Check current branch is checked out before pulling | |
// TODO Store sites in separate config file | |
// TODO Allow config file to be in folder above root. | |
// TODO Allow updating via $_GET? | |
// TODO Make sure sane git status before pulling? | |
// You can't view this file directly |
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
backend default { | |
.host = "127.0.0.1"; | |
.port = "8444"; | |
} | |
sub vcl_recv { | |
# Allow the back-end to serve up stale content if it is responding slowly. | |
set req.grace = 2m; |
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
<IfModule mod_mime.c> | |
AddType text/css .css | |
AddType application/x-javascript .js | |
AddType text/x-component .htc | |
AddType text/html .html .htm | |
AddType text/richtext .rtf .rtx | |
AddType image/svg+xml .svg .svgz | |
AddType text/plain .txt | |
AddType text/xsd .xsd | |
AddType text/xsl .xsl |
OlderNewer