WordPress.org

Make WordPress Core

Ticket #16538: 16538.diff

File 16538.diff, 2.2 KB (added by solarissmoke, 3 years ago)
  • wp-includes/general-template.php

     
    156156                require($search_form_template); 
    157157                return; 
    158158        } 
    159  
     159         
     160        $search_str = esc_attr__('Search'); 
    160161        $form = '<form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" > 
    161162        <div><label class="screen-reader-text" for="s">' . __('Search for:') . '</label> 
    162         <input type="text" value="' . get_search_query() . '" name="s" id="s" /> 
    163         <input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" /> 
     163        <input type="search" value="' . get_search_query() . '" name="s" id="s" placeholder="' . $search_str . '" /> 
     164        <input type="submit" id="searchsubmit" value="'. $search_str .'" /> 
    164165        </div> 
    165166        </form>'; 
    166167 
  • wp-admin/js/post.dev.js

     
    591591                                real_slug.attr('value', this.value); 
    592592                        }).focus(); 
    593593                } 
     594                 
     595                // fire editPermalink when page parent is modified 
     596                $("#parent_id").change( function() { 
     597                        editPermalink( $("#post_ID").val() ); 
     598                }); 
    594599 
    595600                makeSlugeditClickable = function() { 
    596601                        $('#editable-post-name').click(function() { 
  • wp-admin/edit-form-advanced.php

     
    210210<?php endif; ?> 
    211211<form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag'); ?>> 
    212212<?php wp_nonce_field($nonce_action); ?> 
    213 <input type="hidden" id="parent_id" name="parent_id" value="<?php echo esc_attr( $post->post_parent ); ?>" /> 
     213<input type="hidden" name="parent_id" value="<?php echo esc_attr( $post->post_parent ); ?>" /> 
    214214<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" /> 
    215215<input type="hidden" id="hiddenaction" name="action" value="<?php echo esc_attr( $form_action ) ?>" /> 
    216216<input type="hidden" id="originalaction" name="originalaction" value="<?php echo esc_attr( $form_action ) ?>" />