Ticket #43415: 43415.patch
| File 43415.patch, 3.3 KB (added by , 8 years ago) |
|---|
-
src/wp-admin/includes/media.php
1828 1828 1829 1829 $readonly = ! $user_can_edit && ! empty( $field['taxonomy'] ) ? " readonly='readonly' " : ''; 1830 1830 $required = $field['required'] ? '<span class="required">*</span>' : ''; 1831 $required_attr = $field['required'] ? ' required': '';1831 $required_attr = $field['required'] ? " required='required'" : ''; 1832 1832 $aria_required = $field['required'] ? " aria-required='true'" : ''; 1833 1833 $class = 'compat-field-' . $id; 1834 1834 $class .= $field['required'] ? ' form-required' : ''; … … 2093 2093 <label class="screen-reader-text" for="async-upload"><?php _e( 'Upload' ); ?></label> 2094 2094 <input type="file" name="async-upload" id="async-upload" /> 2095 2095 <?php submit_button( __( 'Upload' ), 'primary', 'html-upload', false ); ?> 2096 <a href="#" on click="try{top.tb_remove();}catch(e){}; return false;"><?php _e( 'Cancel' ); ?></a>2096 <a href="#" onClick="try{top.tb_remove();}catch(e){}; return false;"><?php _e( 'Cancel' ); ?></a> 2097 2097 </p> 2098 2098 <div class="clear"></div> 2099 2099 <?php … … 2753 2753 <label for="src"><span class="alignleft">' . __( 'URL' ) . '</span> <span class="required">*</span></label> 2754 2754 <span class="alignright" id="status_img"></span> 2755 2755 </th> 2756 <td class="field"><input id="src" name="src" value="" type="text" required aria-required="true" onblur="addExtImage.getImageData()" /></td>2756 <td class="field"><input id="src" name="src" value="" type="text" required="required" onblur="addExtImage.getImageData()" /></td> 2757 2757 </tr> 2758 2758 2759 2759 <tr> … … 2760 2760 <th scope="row" class="label"> 2761 2761 <label for="title"><span class="alignleft">' . __( 'Title' ) . '</span> <span class="required">*</span></label> 2762 2762 </th> 2763 <td class="field"><input id="title" name="title" value="" type="text" required aria-required="true" /></td>2763 <td class="field"><input id="title" name="title" value="" type="text" required="required" /></td> 2764 2764 </tr> 2765 2765 2766 2766 <tr class="not-image"><td></td><td><p class="help">' . __( 'Link text, e.g. “Ransom Demands (PDF)”' ) . '</p></td></tr> … … 2769 2769 <th scope="row" class="label"> 2770 2770 <label for="alt"><span class="alignleft">' . __( 'Alternative Text' ) . '</span></label> 2771 2771 </th> 2772 <td class="field"><input id="alt" name="alt" value="" type="text" aria-required="true" />2772 <td class="field"><input id="alt" name="alt" value="" type="text" required="required" /> 2773 2773 <p class="help">' . __( 'Alt text for the image, e.g. “The Mona Lisa”' ) . '</p></td> 2774 2774 </tr> 2775 2775 ' . $caption . ' … … 3060 3060 ?> 3061 3061 <div class="misc-pub-section misc-pub-attachment"> 3062 3062 <label for="attachment_url"><?php _e( 'File URL:' ); ?></label> 3063 <input type="text" class="widefat urlfield" readonly ="readonly"name="attachment_url" id="attachment_url" value="<?php echo esc_attr( $att_url ); ?>" />3063 <input type="text" class="widefat urlfield" readonly name="attachment_url" id="attachment_url" value="<?php echo esc_attr( $att_url ); ?>" /> 3064 3064 </div> 3065 3065 <div class="misc-pub-section misc-pub-filename"> 3066 3066 <?php _e( 'File name:' ); ?> <strong><?php echo $filename; ?></strong>