| @@ 1541-1548 (lines=8) @@ | ||
| 1538 | * When on the edit screen, make sure the custom content width |
|
| 1539 | * setting is applied to the large image size. |
|
| 1540 | */ |
|
| 1541 | static function editor_max_image_size( $dims, $size = 'medium', $context = null ) { |
|
| 1542 | list( $width, $height ) = $dims; |
|
| 1543 | ||
| 1544 | if ( 'large' == $size && 'edit' == $context ) |
|
| 1545 | $width = Jetpack::get_content_width(); |
|
| 1546 | ||
| 1547 | return array( $width, $height ); |
|
| 1548 | } |
|
| 1549 | ||
| 1550 | /** |
|
| 1551 | * Override the content_width with a custom value if one is set. |
|
| @@ 673-681 (lines=9) @@ | ||
| 670 | * When on the edit screen, make sure the custom content width |
|
| 671 | * setting is applied to the large image size. |
|
| 672 | */ |
|
| 673 | static function editor_max_image_size( $dims, $size = 'medium', $context = null ) { |
|
| 674 | list( $width, $height ) = $dims; |
|
| 675 | ||
| 676 | if ( 'large' === $size && 'edit' === $context ) { |
|
| 677 | $width = Jetpack::get_content_width(); |
|
| 678 | } |
|
| 679 | ||
| 680 | return array( $width, $height ); |
|
| 681 | } |
|
| 682 | ||
| 683 | /** |
|
| 684 | * Override the content_width with a custom value if one is set. |
|