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