Changeset 46354 for trunk/src/wp-admin/includes/image-edit.php
- Timestamp:
- 09/30/2019 04:33:39 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image-edit.php
r46326 r46354 39 39 if ( $msg ) { 40 40 if ( isset( $msg->error ) ) { 41 $note = "<div class='error' ><p>$msg->error</p></div>";41 $note = "<div class='error' tabindex='-1' role='alert'><p>$msg->error</p></div>"; 42 42 } elseif ( isset( $msg->msg ) ) { 43 $note = "<div class='updated' ><p>$msg->msg</p></div>";43 $note = "<div class='updated' tabindex='-1' role='alert'><p>$msg->msg</p></div>"; 44 44 } 45 45 } … … 63 63 /* translators: %s: Image width and height in pixels. */ 64 64 __( 'Original dimensions %s' ), 65 $meta['width'] . ' × ' . $meta['height']65 '<span class="imgedit-original-dimensions">' . $meta['width'] . ' × ' . $meta['height'] . '</span>' 66 66 ); 67 67 ?> … … 79 79 <input type="text" id="imgedit-scale-height-<?php echo $post_id; ?>" onkeyup="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" onblur="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" value="<?php echo isset( $meta['height'] ) ? $meta['height'] : 0; ?>" /> 80 80 <span class="imgedit-scale-warn" id="imgedit-scale-warn-<?php echo $post_id; ?>">!</span> 81 < input id="imgedit-scale-button" type="button" onclick="imageEdit.action(<?php echo "$post_id, '$nonce'"; ?>, 'scale')" class="button button-primary" value="<?php esc_attr_e( 'Scale' ); ?>" />81 <div class="imgedit-scale-button-wrapper"><input id="imgedit-scale-button" type="button" onclick="imageEdit.action(<?php echo "$post_id, '$nonce'"; ?>, 'scale')" class="button button-primary" value="<?php esc_attr_e( 'Scale' ); ?>" /></div> 82 82 </div> 83 83 </fieldset> … … 236 236 237 237 <div id="imgedit-crop-<?php echo $post_id; ?>" class="imgedit-crop-wrap"> 238 <img id="image-preview-<?php echo $post_id; ?>" onload="imageEdit.imgLoaded('<?php echo $post_id; ?>')"src="<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>?action=imgedit-preview&_ajax_nonce=<?php echo $nonce; ?>&postid=<?php echo $post_id; ?>&rand=<?php echo rand( 1, 99999 ); ?>" alt="" />238 <img id="image-preview-<?php echo $post_id; ?>" src="<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>?action=imgedit-preview&_ajax_nonce=<?php echo $nonce; ?>&postid=<?php echo $post_id; ?>&rand=<?php echo rand( 1, 99999 ); ?>" alt="" /> 239 239 </div> 240 240
Note: See TracChangeset
for help on using the changeset viewer.