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:
parent
9928e82e36
commit
de4a0edb94
|
@ -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">
|
||||
|
|
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue