Changeset 48375 for trunk/src/wp-admin/includes/image-edit.php
- Timestamp:
- 07/07/2020 01:43:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image-edit.php
r48265 r48375 39 39 if ( $msg ) { 40 40 if ( isset( $msg->error ) ) { 41 $note = "<div class=' error'><p>$msg->error</p></div>";41 $note = "<div class='notice notice-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='notice notice-success' tabindex='-1' role='alert'><p>$msg->msg</p></div>"; 44 44 } 45 45 } … … 104 104 <div class="imgedit-group-top"> 105 105 <h2><?php _e( 'Scale Image' ); ?></h2> 106 <button type="button" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this); return false;" aria-expanded="false"><span class="screen-reader-text"><?php esc_html_e( 'Scale Image Help' ); ?></span></button>106 <button type="button" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);" aria-expanded="false"><span class="screen-reader-text"><?php esc_html_e( 'Scale Image Help' ); ?></span></button> 107 107 <div class="imgedit-help"> 108 108 <p><?php _e( 'You can proportionally scale the original image. For best results, scaling should be done before you crop, flip, or rotate. Images can only be scaled down, not up.' ); ?></p> … … 142 142 <div class="imgedit-group"> 143 143 <div class="imgedit-group-top"> 144 <h2><button type="button" onclick="imageEdit.toggleHelp(this);" class="button-link" ><?php _e( 'Restore Original Image' ); ?> <span class="dashicons dashicons-arrow-down imgedit-help-toggle"></span></button></h2>144 <h2><button type="button" onclick="imageEdit.toggleHelp(this);" class="button-link" aria-expanded="false"><?php _e( 'Restore original image' ); ?> <span class="dashicons dashicons-arrow-down imgedit-help-toggle"></span></button></h2> 145 145 <div class="imgedit-help imgedit-restore"> 146 146 <p> … … 165 165 <div class="imgedit-group-top"> 166 166 <h2><?php _e( 'Image Crop' ); ?></h2> 167 <button type="button" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this); return false;" aria-expanded="false"><span class="screen-reader-text"><?php esc_html_e( 'Image Crop Help' ); ?></span></button>167 <button type="button" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);" aria-expanded="false"><span class="screen-reader-text"><?php esc_html_e( 'Image Crop Help' ); ?></span></button> 168 168 169 169 <div class="imgedit-help"> … … 210 210 <div class="imgedit-group-top"> 211 211 <h2><?php _e( 'Thumbnail Settings' ); ?></h2> 212 <button type="button" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this); return false;" aria-expanded="false"><span class="screen-reader-text"><?php esc_html_e( 'Thumbnail Settings Help' ); ?></span></button>212 <button type="button" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);" aria-expanded="false"><span class="screen-reader-text"><?php esc_html_e( 'Thumbnail Settings Help' ); ?></span></button> 213 213 <div class="imgedit-help"> 214 214 <p><?php _e( 'You can edit the image while preserving the thumbnail. For example, you may wish to have a square thumbnail that displays just a section of the image.' ); ?></p>
Note: See TracChangeset
for help on using the changeset viewer.