This file contains hidden or 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
| #!/bin/bash | |
| # args | |
| MSG=${1-'deploy from git'} | |
| BRANCH=${2-'trunk'} | |
| # paths | |
| SRC_DIR=$(git rev-parse --show-toplevel) | |
| DIR_NAME=$(basename $SRC_DIR) | |
| DEST_DIR=~/svn/wp-plugins/$DIR_NAME/$BRANCH |
This file contains hidden or 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
| #!/usr/bin/ruby | |
| # | |
| # The MIT License (MIT) | |
| # Copyright (c) 2013 Mark Jaquith | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains hidden or 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: No "New WordPress Site" E-mail | |
| Description: Prevents the "New WordPress Site" e-mail from being sent out | |
| Version: 0.1 | |
| Author: Mark Jaquith | |
| Author URI: http://coveredwebservices.com/ | |
| */ | |
| class CWS_No_New_WordPress_Site_Email { |
This file contains hidden or 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: Sane Adjacent Images queries | |
| Description: Makes adjacent image queries saner if you have a huge number of images attached to a post. | |
| Version: 0.2 | |
| Author: Mark Jaquith | |
| Author URI: http://coveredwebservices.com/ | |
| */ | |
| class CWS_Sane_Adjacent_Images { |
This file contains hidden or 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
| #!/usr/bin/ruby | |
| multisitism = [ | |
| :single_site, | |
| :multisite_subdirs, | |
| :multisite_subdomains | |
| ] | |
| permalinks = [ | |
| :default_permalinks, |
This file contains hidden or 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
| <!-- | |
| `-/+osssssssssssso+/-` | |
| ./oys+:.` `.:+syo/. | |
| .+ys:. .:/osyyhhhhyyso/:. ./sy+. | |
| /ys: -+ydmmmmmmmmmmmmmmmmmmdy+- :sy/ | |
| /h+` -odmmmmmmmmmmmmmmmmmmmmmmmmmmdo- `+h/ | |
| :ho` /hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmds/ `oh: | |
| `sy. /hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmd+ .ys` | |
| .ho `sdddhhhyhmmmdyyhhhdddddhhhyydmmmmy oh. |
This file contains hidden or 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
| function subl() { | |
| if [[ ! -p /dev/stdin ]]; then | |
| command subl > /dev/null 2>&1 | |
| fi | |
| command subl "$@" | |
| } |
This file contains hidden or 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 | |
| if ( !class_exists( 'WP_Smart_Cache_v1' ) ) : | |
| Class WP_Smart_Cache_v1 { | |
| static $instances = array(); | |
| public function __construct() { | |
| if ( function_exists( 'wp_cache_add_global_groups' ) ) | |
| wp_cache_add_global_groups( array( 'wp_smart_cache_global' ) ); | |
| } |
This file contains hidden or 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 | |
| add_filter( 'template_include', 'ja_template_check' ); | |
| function ja_template_check( $template ) { | |
| if ( is_category() ){ | |
| // Get category information | |
| $cat = get_query_var( 'cat' ); | |
| $category_info = get_category( $cat ); | |
| // News sub-categories, where 7 is the ID for News |
This file contains hidden or 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 | |
| class CWS_Jetpack_Modules { | |
| function __construct() { | |
| add_filter( 'option_jetpack_active_modules', array( $this, 'active_modules' ) ); | |
| } | |
| function active_modules( $modules ) { | |
| $allowed_modules = array( | |
| 'enhanced-distribution', |