| @@ 916-924 (lines=9) @@ | ||
| 913 | * |
|
| 914 | * @return array |
|
| 915 | */ |
|
| 916 | static function editor_max_image_size( $dims, $size = 'medium', $context = null ) { |
|
| 917 | list( $width, $height ) = $dims; |
|
| 918 | ||
| 919 | if ( 'large' === $size && 'edit' === $context ) { |
|
| 920 | $width = Jetpack::get_content_width(); |
|
| 921 | } |
|
| 922 | ||
| 923 | return array( $width, $height ); |
|
| 924 | } |
|
| 925 | ||
| 926 | /** |
|
| 927 | * Override the content_width with a custom value if one is set. |
|
| @@ 1531-1538 (lines=8) @@ | ||
| 1528 | * When on the edit screen, make sure the custom content width |
|
| 1529 | * setting is applied to the large image size. |
|
| 1530 | */ |
|
| 1531 | static function editor_max_image_size( $dims, $size = 'medium', $context = null ) { |
|
| 1532 | list( $width, $height ) = $dims; |
|
| 1533 | ||
| 1534 | if ( 'large' == $size && 'edit' == $context ) |
|
| 1535 | $width = Jetpack::get_content_width(); |
|
| 1536 | ||
| 1537 | return array( $width, $height ); |
|
| 1538 | } |
|
| 1539 | ||
| 1540 | /** |
|
| 1541 | * Override the content_width with a custom value if one is set. |
|