bp_core_get_minified_asset_suffix()
Get the correct filename suffix for minified assets.
Description Description
Return Return
(string)
Source Source
File: bp-core/bp-core-functions.php
function bp_core_get_minified_asset_suffix() { $ext = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; // Ensure the assets can be located when running from /src/. if ( defined( 'BP_SOURCE_SUBDIRECTORY' ) && BP_SOURCE_SUBDIRECTORY === 'src' ) { $ext = str_replace( '.min', '', $ext ); } return $ext; }
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |