You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Media: Prevent scaling up of images in the Image Editor.
Previously, when scaling an image larger than the source size in the image edit states the image would silently fail the scaling action. This patch provides an error when someone attempts to scale an image larger than the source size while also disabling the button to initiate the action.
Props brookedot, joedolson, markoheijnen, mikeschroder, desrosj, Mista-Flo, costdev.
Fixes #26381.
git-svn-id: https://develop.svn.wordpress.org/trunk@55859 602fd350-edb4-49c9-b593-d223f7449a82
<span class="imgedit-scale-warn" id="imgedit-scale-warn-<?phpecho$post_id; ?>"><span class="dashicons dashicons-warning" aria-hidden="true"></span><?phpesc_html_e( 'Images cannot be scaled to a size larger than the original.' ); ?></span>
158
+
158
159
</fieldset>
159
160
160
161
</div>
@@ -893,23 +894,30 @@ function wp_save_image( $post_id ) {
0 commit comments