Deprecate woocommerce_admin_css action - it's pointless

Will be removed in 2.4. Closes #6456
This commit is contained in:
Mike Jolley 2014-10-03 10:07:25 +01:00
parent 0fa63d6da0
commit 3d36f446d3
1 changed files with 7 additions and 0 deletions

View File

@ -53,7 +53,14 @@ class WC_Admin_Assets {
wp_enqueue_style( 'woocommerce_admin_dashboard_styles', WC()->plugin_url() . '/assets/css/dashboard.css', array(), WC_VERSION );
}
/**
* @deprecated 2.3
*/
do_action( 'woocommerce_admin_css' );
if ( has_action( 'woocommerce_admin_css' ) ) {
_deprecated_function( 'The woocommerce_admin_css action', '2.3', 'admin_enqueue_scripts' );
}
}