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

git-svn-id: http://svn.automattic.com/wordpress/trunk@9661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2008-11-13 07:54:27 +00:00
parent 9928e82e36
commit de4a0edb94
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':