WordPress.org

Make WordPress Core

Ticket #12429: 12429-onclick.patch

File 12429-onclick.patch, 6.1 KB (added by TobiasBg, 4 years ago)

Patch replaces "onClick" with "onclick" throughout core

  • 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> 
     
    14851485<?php do_action('pre-html-upload-ui'); ?> 
    14861486        <p id="async-upload-wrap"> 
    14871487        <label class="screen-reader-text" for="async-upload"><?php _e('Upload'); ?></label> 
    1488         <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php esc_attr_e('Upload'); ?>" /> <a href="#" onClick="try{top.tb_remove();}catch(e){}; return false;"><?php _e('Cancel'); ?></a> 
     1488        <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php esc_attr_e('Upload'); ?>" /> <a href="#" onclick="try{top.tb_remove();}catch(e){}; return false;"><?php _e('Cancel'); ?></a> 
    14891489        </p> 
    14901490        <div class="clear"></div> 
    14911491        <?php if ( is_lighttpd_before_150() ): ?> 
     
    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> 
  • template.php

     
    24552455?> 
    24562456</select> 
    24572457<input class="hide-if-js" type="text" id="metakeyinput" name="metakeyinput" tabindex="7" value="" /> 
    2458 <a href="#postcustomstuff" class="hide-if-no-js" onClick="jQuery('#metakeyinput, #metakeyselect, #enternew, #cancelnew').toggle();return false;"> 
     2458<a href="#postcustomstuff" class="hide-if-no-js" onclick="jQuery('#metakeyinput, #metakeyselect, #enternew, #cancelnew').toggle();return false;"> 
    24592459<span id="enternew"><?php _e('Enter new'); ?></span> 
    24602460<span id="cancelnew" class="hidden"><?php _e('Cancel'); ?></span></a> 
    24612461<?php } else { ?> 
     
    32883288                                <?php wp_nonce_field( 'find-posts', '_ajax_nonce', false ); ?> 
    32893289                                <label class="screen-reader-text" for="find-posts-input"><?php _e( 'Search' ); ?></label> 
    32903290                                <input type="text" id="find-posts-input" name="ps" value="" /> 
    3291                                 <input type="button" onClick="findPosts.send();" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /><br /> 
     3291                                <input type="button" onclick="findPosts.send();" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /><br /> 
    32923292 
    32933293                                <input type="radio" name="find-posts-what" id="find-posts-posts" checked="checked" value="posts" /> 
    32943294                                <label for="find-posts-posts"><?php _e( 'Posts' ); ?></label> 
     
    32983298                        <div id="find-posts-response"></div> 
    32993299                </div> 
    33003300                <div class="find-box-buttons"> 
    3301                         <input type="button" class="button alignleft" onClick="findPosts.close();" value="<?php esc_attr_e('Close'); ?>" /> 
     3301                        <input type="button" class="button alignleft" onclick="findPosts.close();" value="<?php esc_attr_e('Close'); ?>" /> 
    33023302                        <input id="find-posts-submit" type="submit" class="button-primary alignright" value="<?php esc_attr_e('Select'); ?>" /> 
    33033303                </div> 
    33043304        </div>