static function editor_max_image_size($dims, $size = 'medium', $context = null) { list($width, $height) = $dims; if ('large' === $size && 'edit' === $context) { $width = Jetpack::get_content_width(); } return array($width, $height); }