Permalink
Browse files

Altering how we include assets in plugins.

  • Loading branch information...
1 parent 180b15b commit ba43f063fe45b91ac38ac9df87b5ce397e9a434e @grok grok committed Sep 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 staff-listing.php
View
@@ -286,14 +286,14 @@ function add_custom_fields( $post_id , $post = null ) {
# Display styling on the front end.
function front_styling() {
- wp_register_style( 'staff_listing_style' , WP_PLUGIN_URL . '/' . basename( dirname( __FILE__ ) ) . '/library/styles/staff-listings-front.css' , 5 , NULL );
+ wp_register_style( 'staff_listing_style' , plugins_url( '' , __FILE__ ) . '/' . basename( dirname( __FILE__ ) ) . '/library/styles/staff-listings-front.css' , 5 , NULL );
wp_enqueue_style( 'staff_listing_style' );
} # End front-styling()
function admin_styling() {
- wp_register_style( 'staff_listing_style' , WP_PLUGIN_URL . '/' . basename( dirname( __FILE__ ) ) . '/library/styles/staff-listings-admin.css' , 5 , NULL );
+ wp_register_style( 'staff_listing_style' , plugins_url( '' , __FILE__ ) . '/' . basename( dirname( __FILE__ ) ) . '/library/styles/staff-listings-admin.css' , 5 , NULL );
wp_enqueue_style( 'staff_listing_style' );
}

0 comments on commit ba43f06

Please sign in to comment.