| @@ 938-946 (lines=9) @@ | ||
| 935 | * |
|
| 936 | * @return array |
|
| 937 | */ |
|
| 938 | static function editor_max_image_size( $dims, $size = 'medium', $context = null ) { |
|
| 939 | list( $width, $height ) = $dims; |
|
| 940 | ||
| 941 | if ( 'large' === $size && 'edit' === $context ) { |
|
| 942 | $width = Jetpack::get_content_width(); |
|
| 943 | } |
|
| 944 | ||
| 945 | return array( $width, $height ); |
|
| 946 | } |
|
| 947 | ||
| 948 | /** |
|
| 949 | * Override the content_width with a custom value if one is set. |
|
| @@ 1549-1556 (lines=8) @@ | ||
| 1546 | * When on the edit screen, make sure the custom content width |
|
| 1547 | * setting is applied to the large image size. |
|
| 1548 | */ |
|
| 1549 | static function editor_max_image_size( $dims, $size = 'medium', $context = null ) { |
|
| 1550 | list( $width, $height ) = $dims; |
|
| 1551 | ||
| 1552 | if ( 'large' == $size && 'edit' == $context ) |
|
| 1553 | $width = Jetpack::get_content_width(); |
|
| 1554 | ||
| 1555 | return array( $width, $height ); |
|
| 1556 | } |
|
| 1557 | ||
| 1558 | /** |
|
| 1559 | * Override the content_width with a custom value if one is set. |
|