WordPress.org

Make WordPress Core

Ticket #12591: enter-title.diff

File enter-title.diff, 1.4 KB (added by meheranandk, 4 years ago)

Patch to Show "Enter title here" (Include enter-title.js as well)

  • wp-admin/post-new.php

     
    3434if ( user_can_richedit() ) 
    3535        wp_enqueue_script('editor'); 
    3636add_thickbox(); 
     37wp_enqueue_script('enter-title'); 
    3738wp_enqueue_script('media-upload'); 
    3839wp_enqueue_script('word-count'); 
    3940 
  • wp-includes/script-loader.php

     
    8787        $scripts->add( 'colorpicker', "/wp-includes/js/colorpicker$suffix.js", array('prototype'), '3517m' ); 
    8888 
    8989        $scripts->add( 'editor', "/wp-admin/js/editor$suffix.js", false, '20091124' ); 
    90  
     90         
    9191        $scripts->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6.1'); 
    9292 
    9393        $scripts->add( 'wp-ajax-response', "/wp-includes/js/wp-ajax-response$suffix.js", array('jquery'), '20091119' ); 
     
    166166 
    167167        $scripts->add( 'jquery-autocomplete', "/wp-includes/js/jquery/autocomplete$suffix.js", array('jquery'), '1.1' ); 
    168168        $scripts->add_data( 'jquery-autocomplete', 'group', 1 ); 
     169         
     170        $scripts->add( 'enter-title', "/wp-admin/js/enter-title.js", array('jquery'), '20091124' ); 
    169171 
    170172        $scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20100108'); 
    171173        $scripts->add_data( 'thickbox', 'group', 1 );