| @@ 946-954 (lines=9) @@ | ||
| 943 | * |
|
| 944 | * @return array |
|
| 945 | */ |
|
| 946 | static function editor_max_image_size( $dims, $size = 'medium', $context = null ) { |
|
| 947 | list( $width, $height ) = $dims; |
|
| 948 | ||
| 949 | if ( 'large' === $size && 'edit' === $context ) { |
|
| 950 | $width = Jetpack::get_content_width(); |
|
| 951 | } |
|
| 952 | ||
| 953 | return array( $width, $height ); |
|
| 954 | } |
|
| 955 | ||
| 956 | /** |
|
| 957 | * Override the content_width with a custom value if one is set. |
|
| @@ 1579-1586 (lines=8) @@ | ||
| 1576 | * When on the edit screen, make sure the custom content width |
|
| 1577 | * setting is applied to the large image size. |
|
| 1578 | */ |
|
| 1579 | static function editor_max_image_size( $dims, $size = 'medium', $context = null ) { |
|
| 1580 | list( $width, $height ) = $dims; |
|
| 1581 | ||
| 1582 | if ( 'large' == $size && 'edit' == $context ) |
|
| 1583 | $width = Jetpack::get_content_width(); |
|
| 1584 | ||
| 1585 | return array( $width, $height ); |
|
| 1586 | } |
|
| 1587 | ||
| 1588 | /** |
|
| 1589 | * Override the content_width with a custom value if one is set. |
|