Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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