Changeset 46355
- Timestamp:
- 09/30/2019 05:11:14 PM (6 years ago)
- Location:
- trunk/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/lib/image-edit.js
r46354 r46355 504 504 // If a response is returned, close the editor and show an error. 505 505 if ( ret.error ) { 506 $('#imgedit-response-' + postid).html('<div class="error" role="alert"><p>' + ret.error + '</p></div>');506 $('#imgedit-response-' + postid).html('<div class="error"><p>' + ret.error + '</p></div>'); 507 507 imageEdit.close(postid); 508 508 return; … … 518 518 519 519 if ( ret.msg ) { 520 $('#imgedit-response-' + postid).html('<div class="updated" role="alert"><p>' + ret.msg + '</p></div>');520 $('#imgedit-response-' + postid).html('<div class="updated"><p>' + ret.msg + '</p></div>'); 521 521 } 522 522 -
trunk/src/js/media/views/frame/select.js
r46354 r46355 63 63 */ 64 64 createStates: function() { 65 console.log("test");66 this.on( 'content:render:edit-image', this.editState, this );67 65 var options = this.options; 68 66 … … 79 77 title: options.title, 80 78 priority: 20 81 }), 82 new wp.media.controller.EditImage( { model: this.options.editImage } ), 79 }) 83 80 ]); 84 81 }, -
trunk/src/wp-admin/css/edit.css
r46354 r46355 654 654 .edit-form-section { 655 655 margin-bottom: 20px; 656 }657 658 .wp_attachment_details .attachment-content-description {659 margin-top: 0.5385em;660 display: inline-block;661 min-height: 1.6923em;662 656 } 663 657 -
trunk/src/wp-admin/css/media.css
r46354 r46355 801 801 } 802 802 803 .attachment-details .setting + .description a:focus {804 /* Only visible in Windows High Contrast mode */805 outline: 1px solid transparent;806 }807 808 803 .wp_attachment_details .attachment-alt-text-description { 809 804 margin-top: 5px; … … 1120 1115 } 1121 1116 1122 .imgedit-settings .imgedit-original-dimensions {1123 display: inline-block;1124 }1125 1126 1117 .imgedit-settings .imgedit-scale input[type="text"], 1127 1118 .imgedit-settings .imgedit-crop-ratio input[type="text"], 1128 1119 .imgedit-settings .imgedit-crop-sel input[type="text"] { 1129 width: 80px;1120 width: 50px; 1130 1121 font-size: 14px; 1131 1122 padding: 5px 8px; … … 1138 1129 font-size: 13px; 1139 1130 color: #444; 1140 }1141 1142 .imgedit-settings .imgedit-scale-button-wrapper {1143 margin-top: 0.3077em;1144 display: block;1145 1131 } 1146 1132 -
trunk/src/wp-admin/includes/image-edit.php
r46354 r46355 39 39 if ( $msg ) { 40 40 if ( isset( $msg->error ) ) { 41 $note = "<div class='error' tabindex='-1' role='alert'><p>$msg->error</p></div>";41 $note = "<div class='error'><p>$msg->error</p></div>"; 42 42 } elseif ( isset( $msg->msg ) ) { 43 $note = "<div class='updated' tabindex='-1' role='alert'><p>$msg->msg</p></div>";43 $note = "<div class='updated'><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 '<span class="imgedit-original-dimensions">' . $meta['width'] . ' × ' . $meta['height'] . '</span>'65 $meta['width'] . ' × ' . $meta['height'] 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 < 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>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' ); ?>" /> 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; ?>" 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; ?>" 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="" /> 239 239 </div> 240 240 -
trunk/src/wp-admin/includes/media.php
r46354 r46355 3208 3208 ?> 3209 3209 3210 <label for="attachment_content" class="attachment-content-description"><strong><?php _e( 'Description' ); ?></strong>3210 <label for="attachment_content"><strong><?php _e( 'Description' ); ?></strong> 3211 3211 <?php 3212 3212 -
trunk/src/wp-admin/privacy.php
- Property svn:mergeinfo deleted
-
trunk/src/wp-includes/css/editor.css
r46354 r46355 1323 1323 /* .button-small is normally 11px, but a bit too small for these buttons. */ 1324 1324 font-size: 12px; 1325 min-height: 26px;1325 height: 26px; 1326 1326 line-height: 2; 1327 1327 }
Note: See TracChangeset
for help on using the changeset viewer.