protected function maybe_convert_size_to_string($attachment_id, $size) { if (is_array($size)) { return $this->convert_dimensions_to_size_name($attachment_id, $size); } return $size; }