$ compass compile --environment production && compass compile
Afterwards you will have both the minified and non-minified versions in your output folder. Note that compass clean will not clean up your minified files.
| <?php | |
| add_action( 'init', function () { | |
| global $shortcode_tags; | |
| foreach ( $shortcode_tags as $tag => $function ) { | |
| $shortcode_tags[$tag] = function ( $attr, $content = null ) use ( $tag, $function ) { | |
| $expires = 60; | |
| $expires = apply_filters( 'shortcode_cache_expires', $expires, $tag ); | |
| $cache_key = $tag . md5( serialize( $attr ) ) . get_the_ID(); | |
| $cached = wp_cache_get( $cache_key ); |
$ compass compile --environment production && compass compile
Afterwards you will have both the minified and non-minified versions in your output folder. Note that compass clean will not clean up your minified files.
The old "built" repository:
svn checkout https://core.svn.wordpress.org/trunkThe new hotness repository:
svn checkout https://develop.svn.wordpress.org/trunk| What makes a good bug report: | |
| * Steps to reproduce, with earliest step Shouldnโt need to know code | |
| * Description of the bug. What you saw vs what you expected. | |
| * Error messages or error codes. | |
| * | |
| * PHP errors- | |
| * |
| sudo xcodebuild -license | |
| xcode-select --install # There will be a GUI prompt | |
| sudo cpan SVN::Core # use the "sudo" method when prompted | |
| # Then add this to your ~/.profile: | |
| # export PATH=/Library/Developer/CommandLineTools/usr/bin:$PATH | |
| # Then probably: | |
| brew reinstall git | |
| brew reinstall subversion |
| #!/bin/bash | |
| IFS=$(echo -en "\n\b") | |
| # Ensure we are in a git repo with gitignore. | |
| if [ ! -d .git ]; then echo "Current working directory is not a git repository."; exit -1; fi | |
| #if [ ! -f .gitignore ]; then echo "Current working directory has no .gitignore file."; exit -2; fi | |
| # Sort (by date) and save new files | |
| for file in `git status --porcelain --untracked-files=all | grep -v '.log$' | grep '^?? ' | sed 's/^?? //g'` | |
| do |
| #!/bin/bash | |
| allgits=`find ~/.cocoapods/CUSTOMERNAME ~/git/CUSTOMERNAME -name .git | sed 's_/.git__'` | |
| filter=$* | |
| filter="$filter --author=jerolimov" | |
| filter="$filter --date=iso" | |
| filter="$filter --after=2013-05-01" | |
| filter="$filter --before=2013-05-31" | |
| for i in $allgits |
| #!/bin/sh | |
| # A script that leverages Trac XML-RPC (I know, I know) to upload patches. | |
| # | |
| # This script is written specifically for the Mac, in that it reads from | |
| # your keychain to derive your SVN password. You can change the SVN_PASS | |
| # line below if you wanted to pull from ~/.svn/ or what not. | |
| # | |
| # Basic usage: `trac-attach.sh 12345` uploads a patch to ticket #12345, | |
| # using the name 12345.diff. If there exists a 12345.diff, the patch is |
| #!/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 |
| <?php | |
| /** | |
| * Plugin Name: T5 Log Queries | |
| * Description: Writes all queries to '/query-log.sql'. | |
| * Plugin URI: http://wordpress.stackexchange.com/a/70853/73 | |
| * Version: 2012.11.04 | |
| * Author: Thomas Scholz | |
| * Author URI: http://toscho.de | |
| * Licence: MIT | |
| */ |