WordPress.org

Make WordPress Core

Ticket #12429: 12429.2.patch

File 12429.2.patch, 3.6 KB (added by TobiasBg, 5 years ago)

Patch to replace "onClick" with "onclick", introduced in [13600]

  • wp-admin/includes/media.php

     
    14741474        <div> 
    14751475        <?php _e( 'Choose files to upload' ); ?> 
    14761476        <div id="flash-browse-button"></div> 
    1477         <span><input id="cancel-upload" disabled="disabled" onClick="cancelUpload()" type="button" value="<?php esc_attr_e('Cancel Upload'); ?>" class="button" /></span> 
     1477        <span><input id="cancel-upload" disabled="disabled" onclick="cancelUpload()" type="button" value="<?php esc_attr_e('Cancel Upload'); ?>" class="button" /></span> 
    14781478        </div> 
    14791479<?php do_action('post-flash-upload-ui'); ?> 
    14801480        <p class="howto"><?php _e('After a file has been uploaded, you can add titles and descriptions.'); ?></p> 
     
    20342034                        <td class="field"> 
    20352035                                <input name="align" id="align-none" value="none" onclick="addExtImage.align=\'align\'+this.value" type="radio"' . ($default_align == 'none' ? ' checked="checked"' : '').' /> 
    20362036                                <label for="align-none" class="align image-align-none-label">' . __('None') . '</label> 
    2037                                 <input name="align" id="align-left" value="left" onClick="addExtImage.align=\'align\'+this.value" type="radio"' . ($default_align == 'left' ? ' checked="checked"' : '').' /> 
     2037                                <input name="align" id="align-left" value="left" onclick="addExtImage.align=\'align\'+this.value" type="radio"' . ($default_align == 'left' ? ' checked="checked"' : '').' /> 
    20382038                                <label for="align-left" class="align image-align-left-label">' . __('Left') . '</label> 
    2039                                 <input name="align" id="align-center" value="center" onClick="addExtImage.align=\'align\'+this.value" type="radio"' . ($default_align == 'center' ? ' checked="checked"' : '').' /> 
     2039                                <input name="align" id="align-center" value="center" onclick="addExtImage.align=\'align\'+this.value" type="radio"' . ($default_align == 'center' ? ' checked="checked"' : '').' /> 
    20402040                                <label for="align-center" class="align image-align-center-label">' . __('Center') . '</label> 
    2041                                 <input name="align" id="align-right" value="right" onClick="addExtImage.align=\'align\'+this.value" type="radio"' . ($default_align == 'right' ? ' checked="checked"' : '').' /> 
     2041                                <input name="align" id="align-right" value="right" onclick="addExtImage.align=\'align\'+this.value" type="radio"' . ($default_align == 'right' ? ' checked="checked"' : '').' /> 
    20422042                                <label for="align-right" class="align image-align-right-label">' . __('Right') . '</label> 
    20432043                        </td> 
    20442044                </tr> 
     
    20492049                        </th> 
    20502050                        <td class="field"><input id="url" name="url" value="" type="text" /><br /> 
    20512051 
    2052                         <button type="button" class="button" value="" onClick="document.forms[0].url.value=null">' . __('None') . '</button> 
    2053                         <button type="button" class="button" value="" onClick="document.forms[0].url.value=document.forms[0].src.value">' . __('Link to image') . '</button> 
     2052                        <button type="button" class="button" value="" onclick="document.forms[0].url.value=null">' . __('None') . '</button> 
     2053                        <button type="button" class="button" value="" onclick="document.forms[0].url.value=document.forms[0].src.value">' . __('Link to image') . '</button> 
    20542054                        <p class="help">' . __('Enter a link URL or click above for presets.') . '</p></td> 
    20552055                </tr> 
    20562056 
    20572057                <tr> 
    20582058                        <td></td> 
    20592059                        <td> 
    2060                                 <input type="button" class="button" id="go_button" style="color:#bbb;" onClick="addExtImage.insert()" value="' . esc_attr__('Insert into Post') . '" /> 
     2060                                <input type="button" class="button" id="go_button" style="color:#bbb;" onclick="addExtImage.insert()" value="' . esc_attr__('Insert into Post') . '" /> 
    20612061                        </td> 
    20622062                </tr> 
    20632063        </tbody></table>