Index: wp-includes/media.php
===================================================================
--- wp-includes/media.php	(revision 23102)
+++ wp-includes/media.php	(working copy)
@@ -27,13 +27,13 @@
  * @since 2.5.0
  * @uses wp_constrain_dimensions() This function passes the widths and the heights.
  *
- * @param int $width Width of the image
- * @param int $height Height of the image
+ * @param int $width Width of the image.
+ * @param int $height Height of the image.
  * @param string|array $size Size of what the result image should be.
- * @param context Could be 'display' (like in a theme) or 'edit' (like inserting into a neditor)
+ * @param string $context Optional. Could be 'display' (like in a theme) or 'edit' (like inserting into an editor).
  * @return array Width and height of what the result image should resize to.
  */
-function image_constrain_size_for_editor($width, $height, $size = 'medium', $context = null ) {
+function image_constrain_size_for_editor( $width, $height, $size = 'medium', $context = null ) {
 	global $content_width, $_wp_additional_image_sizes;
 
 	if ( ! $context )
@@ -170,7 +170,7 @@
 		$height = $meta['height'];
 	}
 
-	if ( $img_url) {
+	if ( $img_url ) {
 		// we have the actual image size, but might need to further constrain it if content_width is narrower
 		list( $width, $height ) = image_constrain_size_for_editor( $width, $height, $size );
 
