Skip to content

Instantly share code, notes, and snippets.

@wpsmith
Last active August 26, 2015 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpsmith/1c5bc2807c1aacc34476 to your computer and use it in GitHub Desktop.
Save wpsmith/1c5bc2807c1aacc34476 to your computer and use it in GitHub Desktop.
PHP: Creates debug suffix for CSS & JS.
<?php
$suffix = ( ( defined( 'WP_DEBUG' ) && WP_DEBUG ) || ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ) ? '.css' : '.min.css';
<?php
$suffix = ( ( defined( 'WP_DEBUG' ) && WP_DEBUG ) || ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ) ? '.js' : '.min.js';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment