Skip to content

Commit

Permalink
Fix default image validation error (issue #1650) (#1670)
Browse files Browse the repository at this point in the history
Attribute value not allowed on element input type file
  • Loading branch information
dac514 committed Apr 17, 2019
1 parent d17b6c4 commit 1ddb245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/image/namespace.php
Expand Up @@ -482,7 +482,7 @@ function render_cover_image_box( $form_id, $cover_pid, $image_url, $ajax_action,
<input type="hidden" id="cover_pid" name="cover_pid" value="<?php echo $cover_pid; ?>"/>
<?php } else { ?>
<p><img id="cover_image_preview" src="<?php echo \Pressbooks\Image\default_cover_url(); ?>" style="width:auto;height:100px;" alt="cover_image"/></p>
<p><input type="file" name="<?php echo $form_id; ?>" value="<?php echo $image_url; ?>" id="<?php echo $form_id; ?>"/></p>
<p><input type="file" name="<?php echo $form_id; ?>" id="<?php echo $form_id; ?>"/></p>
<?php } ?>
<?php
if ( $description ) :
Expand Down

0 comments on commit 1ddb245

Please sign in to comment.