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
// The rest of the grunt file goes here | |
watch: { | |
// The rest of your watch tasks go here | |
livereload: { | |
options: { | |
livereload: '<%= connect.options.livereload %>' | |
}, | |
files: [ | |
// YOUR LIST OF FILES TO WATCH |
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
watch: { | |
options: { | |
livereload: { | |
options: {livereload: '<%= connect.options.livereload %>'}, | |
files: [ | |
'public/**/*' | |
] | |
} | |
}, | |
html: { |
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
<?php | |
/** | |
* Add custom user fields/meta info | |
*/ | |
add_action( 'show_user_profile', 'wu_custom_user_meta', 9 ); | |
add_action( 'edit_user_profile', 'wu_custom_user_meta', 9 ); | |
function wu_custom_user_meta( $user ) { | |
// create nonce field |
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
# Attempt to load files from production if they're not in our local version | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
# Replace http://productionsite.com with your production site's domain name | |
RewriteRule (.*) http://productionsite.com/wp-content/uploads/$1 | |
</IfModule> |
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
// SVG Test | |
(function () { | |
function supportsSVG() { | |
return !!document.createElementNS && !! document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect; | |
} | |
if (!supportsSVG()) { | |
document.documentElement.className += ' no-svg'; | |
// optional .png fallback for .svg files inlined as <img> elements | |
$("img[src$='.svg']").attr("src", function() { | |
return $(this).attr('src').replace('.svg', '.png'); |
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 | |
/** | |
* Avoid widows in text by replacing the final space in each paragraph with a | |
* | |
* Inspired by David Walsh (http://davidwalsh.name/word-wrap-mootools-php) | |
* | |
* @param string $content Content passed into the filter | |
* @return string the filtered content | |
*/ | |
function wustl_widow_buster ($content) { |
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
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/User/base16-ocean.dark (SL).tmTheme", | |
"detect_slow_plugins": false, | |
"folder_exclude_patterns": | |
[ | |
".git", | |
".sass-cache", | |
"bower_components" | |
], |
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
/* Overrides the database for development URLs */ | |
define('WP_SITEURL', 'http://my.domain.dev'); | |
define('WP_HOME', 'http://my.domain.dev'); |
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
function no_responsive_image_feeds() { | |
add_filter( 'max_srcset_image_width', function() { | |
return 1; | |
} ); | |
} | |
add_action('rss2_head', 'no_responsive_image_feeds' ); | |
add_action('atom_head', 'no_responsive_image_feeds' ); | |
add_action('rss_head', 'no_responsive_image_feeds' ); |
OlderNewer