Permalink
Browse files

Ensure uploads function when post content is disabled.

  • Loading branch information...
1 parent 576dba3 commit 5eaf7c23c30a4e22db4ede446e88d296cd8ba59e Michael Sisk committed Jan 31, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 -/php/posts.php
View
@@ -62,7 +62,7 @@ public function admin_footer() {
if ( preg_match( '/^edit-webcomic\d+$/', $screen->id ) ) {
printf( "<script>webcomic_quick_save( '%s' );webcomic_quick_edit( '%s' );</script>", admin_url(), admin_url() );
} elseif ( isset( self::$config[ 'collections' ][ $screen->id ] ) ) {
- printf( "<script>webcomic_media_meta('%s');webcomic_prints_meta('%s','%s');</script>", admin_url(), self::$config[ 'collections' ][ $screen->id ][ 'commerce' ][ 'currency' ], __( '- SOLD -', 'webcomic' ) );
+ printf( "<script>webcomic_media_meta('%s');webcomic_prints_meta('%s','%s');if(!window.wpActiveEditor)window.wpActiveEditor=false</script>", admin_url(), self::$config[ 'collections' ][ $screen->id ][ 'commerce' ][ 'currency' ], __( '- SOLD -', 'webcomic' ) );
}
}

0 comments on commit 5eaf7c2

Please sign in to comment.