Cast image sizes to ints. Explain that sizes are in pixels. fixes #8160

git-svn-id: https://develop.svn.wordpress.org/trunk@9661 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2008-11-13 07:54:27 +00:00
parent 634e2ab151
commit 82a39b97be
2 changed files with 7 additions and 1 deletions

View File

@ -49,7 +49,7 @@ include('admin-header.php');
</table>
<h3><?php _e('Image sizes') ?></h3>
<p><?php _e('The sizes listed below determine the maximum dimensions to use when inserting an image into the body of a post.'); ?></p>
<p><?php _e('The sizes listed below determine the maximum dimensions in pixels to use when inserting an image into the body of a post.'); ?></p>
<table class="form-table">
<tr valign="top">

View File

@ -1820,6 +1820,12 @@ function sanitize_option($option, $value) {
$value = sanitize_email($value);
break;
case 'thumbnail_size_w':
case 'thumbnail_size_h':
case 'medium_size_w':
case 'medium_size_h':
case 'large_size_w':
case 'large_size_h':
case 'default_post_edit_rows':
case 'mailserver_port':
case 'comment_max_links':