Permalink
Browse files

Ensure media uploads are properly attached.

  • Loading branch information...
1 parent 7e31f6b commit d9f3bf5a4f0972a897238c2649a927dda7a72996 @mgsisk committed Jan 31, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 -/php/posts.php
View
@@ -140,7 +140,7 @@ public function admin_enqueue_scripts() {
wp_enqueue_script( 'webcomic-admin-meta' );
if ( !in_array( 'editor', self::$config[ 'collections' ][ $screen->id ][ 'supports' ] ) ) {
- wp_enqueue_media();
+ wp_enqueue_media( array( 'post' => get_post() ) );
}
}
}

0 comments on commit d9f3bf5

Please sign in to comment.