Make WordPress Core

Ticket #21754: 21754.patch

File 21754.patch, 4.1 KB (added by ocean90, 12 years ago)
  • wp-admin/includes/dashboard.php

     
    503503?>
    504504
    505505        <form name="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press">
    506                 <h4 id="quick-post-title"><label for="title"><?php _e('Title') ?></label></h4>
    507506                <div class="input-text-wrap">
    508                         <input type="text" name="post_title" id="title" autocomplete="off" value="<?php echo esc_attr( $post->post_title ); ?>" />
     507                        <label class="screen-reader-text" for="title"><?php _e( 'Enter title here' ); ?></label>
     508                        <input type="text" name="post_title" id="title" placeholder="<?php esc_attr_e( 'Enter title here' ) ?>" autocomplete="off" value="<?php echo esc_attr( $post->post_title ); ?>" />
    509509                </div>
    510510
    511511                <?php if ( current_user_can( 'upload_files' ) ) : ?>
     
    514514                </div>
    515515                <?php endif; ?>
    516516
    517                 <h4 id="content-label"><label for="content"><?php _e('Content') ?></label></h4>
    518517                <div class="textarea-wrap">
     518                        <label class="screen-reader-text" for="content"><?php _e( 'Content' ); ?></label>
    519519                        <textarea name="content" id="content" class="mceEditor" rows="3" cols="15"><?php echo esc_textarea( $post->post_content ); ?></textarea>
    520520                </div>
    521521
    522522                <script type="text/javascript">edCanvas = document.getElementById('content');edInsertContent = null;</script>
    523523
    524                 <h4><label for="tags-input"><?php _e('Tags') ?></label></h4>
    525524                <div class="input-text-wrap">
    526                         <input type="text" name="tags_input" id="tags-input" value="<?php echo get_tags_to_edit( $post->ID ); ?>" />
     525                        <label class="screen-reader-text" for="tags-input"><?php _e( 'Tags (separate with commas)' ); ?></label>
     526                        <input type="text" name="tags_input" id="tags-input" placeholder="<?php esc_attr_e( 'Tags (separate with commas)' ) ?>" value="<?php echo get_tags_to_edit( $post->ID ); ?>" />
    527527                </div>
    528528
    529529                <p class="submit">
  • wp-admin/css/wp-admin.css

     
    60186018}
    60196019
    60206020/* QuickPress */
    6021 #dashboard_quick_press h4 {
    6022         font-family: sans-serif;
    6023         float: left;
    6024         width: 5em;
    6025         clear: both;
    6026         font-weight: normal;
    6027         text-align: right;
    6028         font-size: 12px;
     6021#dashboard_quick_press #title {
     6022        padding: 1px 5px;
     6023        font-size: 1.5em;
     6024        line-height: 100%;
    60296025}
    60306026
    6031 #dashboard_quick_press h4 label {
    6032         margin-right: 10px;
    6033 }
    6034 
    60356027#dashboard_quick_press .input-text-wrap,
    60366028#dashboard_quick_press .textarea-wrap {
    6037         margin: 0 0 1em 5em;
     6029        margin: 0 0 1em 0;
    60386030}
    60396031
    60406032#dashboard_quick_press .wp-media-buttons {
    6041         margin: 0 0 .5em 5em;
     6033        margin: 0 0 .5em 0;
    60426034        padding: 0;
    60436035}
    60446036
     
    60466038        color: #777;
    60476039}
    60486040
    6049 #dashboard-widgets #dashboard_quick_press form p.submit {
    6050         margin-left: 4.6em;
    6051 }
    6052 
    60536041#dashboard-widgets #dashboard_quick_press form p.submit input {
    60546042        float: left;
    60556043}
    60566044
    60576045#dashboard-widgets #dashboard_quick_press form p.submit #save-post {
    6058         margin: 0 1em 0 10px;
     6046        margin: 0 1em 0 0;
    60596047}
    60606048
    60616049#dashboard-widgets #dashboard_quick_press form p.submit #publish {
  • wp-admin/css/wp-admin-rtl.css

     
    18501850}
    18511851
    18521852/* QuickPress */
    1853 #dashboard_quick_press h4 {
    1854         float: right;
    1855         text-align: left;
    1856 }
    1857 
    1858 #dashboard_quick_press .wp-media-buttons {
    1859         margin: 0 5em 0.5em 0;
    1860 }
    1861 
    1862 #dashboard_quick_press h4 label {
    1863         margin-right: 0;
    1864         margin-left: 10px;
    1865 }
    1866 
    1867 #dashboard_quick_press .input-text-wrap,
    1868 #dashboard_quick_press .textarea-wrap {
    1869         margin: 0 5em 1em 0;
    1870 }
    1871 
    1872 #dashboard_quick_press #media-buttons {
    1873         margin: 0 5em .5em 0;
    1874         padding: 0;
    1875 }
    1876 
    1877 #dashboard-widgets #dashboard_quick_press form p.submit {
    1878         margin-left: 0;
    1879         margin-right: 4.6em;
    1880 }
    1881 
    18821853#dashboard-widgets #dashboard_quick_press form p.submit input {
    18831854        float: right;
    18841855}
    18851856
    18861857#dashboard-widgets #dashboard_quick_press form p.submit #save-post {
    1887         margin: 0 10px 0 1em;
     1858        margin: 0 0 0 1em;
    18881859}
    18891860
    18901861#dashboard-widgets #dashboard_quick_press form p.submit #publish {