WordPress.org

Make WordPress Core

Ticket #15631: 15631.diff

File 15631.diff, 1.1 KB (added by batmoo, 4 years ago)
  • wp-admin/includes/template.php

     
    546546?> 
    547547</select> 
    548548<input class="hide-if-js" type="text" id="metakeyinput" name="metakeyinput" tabindex="7" value="" /> 
    549 <a href="#postcustomstuff" class="hide-if-no-js" onclick="jQuery('#metakeyinput, #metakeyselect, #enternew, #cancelnew').toggle();return false;"> 
     549<a href="#postcustomstuff" class="hide-if-no-js"> 
    550550<span id="enternew"><?php _e('Enter new'); ?></span> 
    551551<span id="cancelnew" class="hidden"><?php _e('Cancel'); ?></span></a> 
    552552<?php } else { ?> 
  • wp-admin/js/post.dev.js

     
    337337                        return s; 
    338338                } 
    339339                }); 
     340                 
     341                $('a[href=#postcustomstuff]').click(function(e) { 
     342                        $('#metakeyinput, #metakeyselect, #enternew, #cancelnew').toggle().focus(); 
     343                        return false; 
     344                });      
    340345        } 
    341346 
    342347        // submitdiv