Merge pull request #6891 from antoscarface/master

Moved deprecated action inside IF
This commit is contained in:
Mike Jolley 2014-12-02 09:58:59 +00:00
commit 9137fa49fb
1 changed files with 1 additions and 1 deletions

View File

@ -60,9 +60,9 @@ class WC_Admin_Assets {
/**
* @deprecated 2.3
*/
do_action( 'woocommerce_admin_css' );
if ( has_action( 'woocommerce_admin_css' ) ) {
do_action( 'woocommerce_admin_css' );
_deprecated_function( 'The woocommerce_admin_css action', '2.3', 'admin_enqueue_scripts' );
}
}