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
/* | |
* Request is to set up 301 redirects for permalink change. | |
* permalink changing from: | |
* http://vip.local/blog/2015/06/27/hello-world/ | |
* to: | |
* http://vip.local/blog/uncategorized/hello-world-1/ | |
*/ | |
// Successfully applies new url structure | |
wpcom_vip_load_permastruct( '/%category%/%postname%-%post_id%/' ); |
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
<!-- `the-neverending-homepage` is included in the concatenated jetpack.css --> | |
<link rel='stylesheet' id='mediaelement-css' href='http://goldenhourstudios.com/wp-includes/js/mediaelement/mediaelementplayer.min.css?ver=2.16.2' type='text/css' media='all' /> | |
<link rel='stylesheet' id='wp-mediaelement-css' href='http://goldenhourstudios.com/wp-includes/js/mediaelement/wp-mediaelement.css?ver=4.2.4' type='text/css' media='all' /> | |
<link rel='stylesheet' id='jetpack_css-css' href='http://goldenhourstudios.com/wp-content/plugins/jetpack/css/jetpack.css?ver=3.6.1' type='text/css' media='all' /> | |
<script type='text/javascript' src='http://goldenhourstudios.com/wp-includes/js/jquery/jquery.js?ver=1.11.2'></script> | |
<script type='text/javascript' src='http://goldenhourstudios.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1'></script> | |
<script type='text/javascript' src='http://goldenhourstudios.com/wp-content/plugins/jetpack/_inc/spin.js?ver=1.3'></script> | |
<script type='text/javascript' src='http://goldenhour |
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 short_url_replace( $matches ) { | |
return '>' . $matches[1] . '/' . $matches[2] . '<'; | |
} | |
function cv_short_url_truncator( $text ) { | |
$urls = apply_filters( 'cv_short_url_services', array( 't.co', 'bit.ly', 'ow.ly' ) ); | |
return preg_replace_callback( "/]*>http[s]?:\/\/(".implode("|", $urls).")\/([^<]{3})[^<]+</", "short_url_replace", $text ); | |
} | |
foreach($timeline as $tweet) { |
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
cdd() { | |
cd `php ~/bin/traverse $1` | |
} |
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
var gulp = require('gulp'); | |
var rename = require('gulp-rename'); | |
var postcss = require('gulp-postcss'); | |
var postcssImport = require('postcss-import'); | |
var postcssSimpleVars = require('postcss-simple-vars'); | |
var postcssCalc = require('postcss-calc'); | |
var colorFunction = require('postcss-color-function'); | |
var sprites = require('postcss-sprites'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var autoprefixer = require('autoprefixer'); |
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 | |
// Untested Gist | |
function remove_wp_rollback() { | |
if( class_exists( 'WP_Rollback' ) ) : | |
if( ! current_user_can( 'invented_cap' ) ) : | |
remove_action( 'plugins_loaded', array( 'WP_Rollback', 'load_textdomain' ) ); | |
//Admin | |
remove_action( 'admin_enqueue_scripts', array( 'WP_Rollback', 'scripts' ) ); | |
remove_action( 'admin_menu', array( 'WP_Rollback', 'admin_menu' ), 20 ); |
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
/*! | |
Theme Name: Joe & Patience | |
Theme URI: http://underscores.me/ | |
Author: Brandon Lavigne | |
Author URI: http://caavadesign.com | |
Description: Custom Theme developed for Joe & Patience Photography | |
Version: 1.0 | |
License: GNU General Public License | |
License URI: license.txt | |
Tags: |
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
{ | |
"name": "jpatience", | |
"private": true, | |
"dependencies": { | |
"bootstrap-sass-official": "~3.3.1", | |
"modernizr": "~2.8.1", | |
"fontawesome": "~4.3.0", | |
"matchHeight": "~0.5.2", | |
"jasny-bootstrap": "~3.1.3", | |
"smooth-scroll": "https://github.com/cferdinandi/smooth-scroll.git", |
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
# Require any additional compass plugins here. | |
# Set this to the root of your project when deployed: | |
http_path = "./" | |
css_dir = "/" | |
sass_dir = "scss" | |
images_dir = "img" | |
javascripts_dir = "js" | |
fonts_dir = "fonts" |
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
$post_data = implode('-', array_filter( array( get_post_type(), get_post_format() ) ) ); | |
get_template_part('header', $post_data ); |