WordPress.org

Make WordPress Core

Ticket #47318: 47318.2.diff

File 47318.2.diff, 850 bytes (added by audrasjb, 14 months ago)

Patch refresh and placeholder value escaping

  • src/wp-admin/edit-form-advanced.php

    diff --git a/src/wp-admin/edit-form-advanced.php b/src/wp-admin/edit-form-advanced.php
    index 977448a..4e6b73b 100644
    a b do_action( 'edit_form_top', $post ); 
    494494        $title_placeholder = apply_filters( 'enter_title_here', __( 'Add title' ), $post );
    495495        ?>
    496496        <label class="screen-reader-text" id="title-prompt-text" for="title"><?php echo $title_placeholder; ?></label>
    497         <input type="text" name="post_title" size="30" value="<?php echo esc_attr( $post->post_title ); ?>" id="title" spellcheck="true" autocomplete="off" />
     497        <input type="text" name="post_title" size="30" value="<?php echo esc_attr( $post->post_title ); ?>" id="title" placeholder="<?php echo esc_attr( $title_placeholder ); ?>" spellcheck="true" autocomplete="off" />
    498498</div>
    499499        <?php
    500500        /**