Make WordPress Core

Ticket #43415: 43415.patch

File 43415.patch, 3.3 KB (added by Shital Patel, 8 years ago)

I added patch for media.php

  • src/wp-admin/includes/media.php

     
    18281828
    18291829                $readonly      = ! $user_can_edit && ! empty( $field['taxonomy'] ) ? " readonly='readonly' " : '';
    18301830                $required      = $field['required'] ? '<span class="required">*</span>' : '';
    1831                 $required_attr = $field['required'] ? ' required' : '';
     1831                $required_attr = $field['required'] ? " required='required'" : '';
    18321832                $aria_required = $field['required'] ? " aria-required='true'" : '';
    18331833                $class         = 'compat-field-' . $id;
    18341834                $class        .= $field['required'] ? ' form-required' : '';
     
    20932093                <label class="screen-reader-text" for="async-upload"><?php _e( 'Upload' ); ?></label>
    20942094                <input type="file" name="async-upload" id="async-upload" />
    20952095                <?php submit_button( __( 'Upload' ), 'primary', 'html-upload', false ); ?>
    2096                 <a href="#" onclick="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>
    20972097        </p>
    20982098        <div class="clear"></div>
    20992099<?php
     
    27532753                                <label for="src"><span class="alignleft">' . __( 'URL' ) . '</span> <span class="required">*</span></label>
    27542754                                <span class="alignright" id="status_img"></span>
    27552755                        </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>
    27572757                </tr>
    27582758
    27592759                <tr>
     
    27602760                        <th scope="row" class="label">
    27612761                                <label for="title"><span class="alignleft">' . __( 'Title' ) . '</span> <span class="required">*</span></label>
    27622762                        </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>
    27642764                </tr>
    27652765
    27662766                <tr class="not-image"><td></td><td><p class="help">' . __( 'Link text, e.g. &#8220;Ransom Demands (PDF)&#8221;' ) . '</p></td></tr>
     
    27692769                        <th scope="row" class="label">
    27702770                                <label for="alt"><span class="alignleft">' . __( 'Alternative Text' ) . '</span></label>
    27712771                        </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" />
    27732773                        <p class="help">' . __( 'Alt text for the image, e.g. &#8220;The Mona Lisa&#8221;' ) . '</p></td>
    27742774                </tr>
    27752775                ' . $caption . '
     
    30603060?>
    30613061        <div class="misc-pub-section misc-pub-attachment">
    30623062                <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 ); ?>" />
    30643064        </div>
    30653065        <div class="misc-pub-section misc-pub-filename">
    30663066                <?php _e( 'File name:' ); ?> <strong><?php echo $filename; ?></strong>