|
@@ 276-280 (lines=5) @@
|
| 273 |
|
|
| 274 |
|
// Keep the crop by using "resize". |
| 275 |
|
if ( ! empty( $wpcom_args['crop'] ) ) { |
| 276 |
|
if ( is_array( $args ) ) { |
| 277 |
|
$args = array_merge( array( 'resize' => array( $wpcom_args['w'], $wpcom_args['h'] ) ), $args ); |
| 278 |
|
} else { |
| 279 |
|
$args = 'resize=' . rawurlencode( absint( $wpcom_args['w'] ) . ',' . absint( $wpcom_args['h'] ) ) . '&' . $args; |
| 280 |
|
} |
| 281 |
|
} else { |
| 282 |
|
if ( is_array( $args ) ) { |
| 283 |
|
$args = array_merge( array( 'fit' => array( $wpcom_args['w'], $wpcom_args['h'] ) ), $args ); |
|
@@ 281-287 (lines=7) @@
|
| 278 |
|
} else { |
| 279 |
|
$args = 'resize=' . rawurlencode( absint( $wpcom_args['w'] ) . ',' . absint( $wpcom_args['h'] ) ) . '&' . $args; |
| 280 |
|
} |
| 281 |
|
} else { |
| 282 |
|
if ( is_array( $args ) ) { |
| 283 |
|
$args = array_merge( array( 'fit' => array( $wpcom_args['w'], $wpcom_args['h'] ) ), $args ); |
| 284 |
|
} else { |
| 285 |
|
$args = 'fit=' . rawurlencode( absint( $wpcom_args['w'] ) . ',' . absint( $wpcom_args['h'] ) ) . '&' . $args; |
| 286 |
|
} |
| 287 |
|
} |
| 288 |
|
|
| 289 |
|
return $args; |
| 290 |
|
} |