Moved do action of 'woocommerce_admin_css' to avoid possible add action from debug plugin as "Debug Bar" and "Debug Bar Slow Actions"

See screen: http://d.pr/i/1fYX1/7ZiItezr
This commit is contained in:
antoscarface 2014-12-02 10:26:17 +01:00
parent fc8b020c03
commit 78047959f4
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' );
}
}