Permalink
Browse files

Fix for WP 3.3 - do not load styles on post type admin page

  • Loading branch information...
1 parent 920362d commit ddb203388a90a9dce0d4fe8fef68504d7909b9f9 @jeherve committed Dec 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-fb-applications.php
View
@@ -191,7 +191,7 @@ function werewp_fbapp_template() {
function werewp_fbapps_style() {
$fbapps_style = WPFBAPPS_URL . 'css/fblayout.css';
- if ( 'werewp_fbapp' == get_post_type() ) {
+ if ( 'werewp_fbapp' == get_post_type() && !is_admin() ) {
wp_register_style('werewp-fbapps', $fbapps_style);
wp_enqueue_style( 'werewp-fbapps');
}

0 comments on commit ddb2033

Please sign in to comment.