@@ 198-202 (lines=5) @@ | ||
195 | ||
196 | // Keep the crop by using "resize" |
|
197 | if ( ! empty( $wpcom_args['crop'] ) ) { |
|
198 | if ( is_array( $args ) ) { |
|
199 | $args = array_merge( array( 'resize' => array( $wpcom_args['w'], $wpcom_args['h'] ) ), $args ); |
|
200 | } else { |
|
201 | $args = 'resize=' . rawurlencode( absint( $wpcom_args['w'] ) . ',' . absint( $wpcom_args['h'] ) ) . '&' . $args; |
|
202 | } |
|
203 | } else { |
|
204 | if ( is_array( $args ) ) { |
|
205 | $args = array_merge( array( 'fit' => array( $wpcom_args['w'], $wpcom_args['h'] ) ), $args ); |
|
@@ 203-209 (lines=7) @@ | ||
200 | } else { |
|
201 | $args = 'resize=' . rawurlencode( absint( $wpcom_args['w'] ) . ',' . absint( $wpcom_args['h'] ) ) . '&' . $args; |
|
202 | } |
|
203 | } else { |
|
204 | if ( is_array( $args ) ) { |
|
205 | $args = array_merge( array( 'fit' => array( $wpcom_args['w'], $wpcom_args['h'] ) ), $args ); |
|
206 | } else { |
|
207 | $args = 'fit=' . rawurlencode( absint( $wpcom_args['w'] ) . ',' . absint( $wpcom_args['h'] ) ) . '&' . $args; |
|
208 | } |
|
209 | } |
|
210 | ||
211 | return $args; |
|
212 | } |