Make WordPress Core

Ticket #23938: 23938-withplaceholder.diff

File 23938-withplaceholder.diff, 4.3 KB (added by Ipstenu, 13 years ago)

Using Placeholder, CSS jiggering for IE and non-IE

  • wp-admin/css/ie.css

     
    520520        float: none;
    521521}
    522522
     523/* Post Formats - Placeholders don't show on IE */
     524
     525#wp-format-quote-text,
     526#wp-format-quote-source-text,
     527#wp-format-url-text,
     528#wp-format-image-text,
     529#wp-format-video-text,
     530#wp-format-audio-text {
     531        color: #bbb;
     532        position: absolute;
     533        font-size: 1.7em;
     534        padding: 8px 10px;
     535}
     536
     537
    523538/* IE6 leftovers */
    524539* html .row-actions {
    525540        visibility: visible;
  • wp-admin/includes/post-formats.php

     
    99        <input type="hidden" name="post_format" id="post_format" value="<?php echo esc_attr( $post_format ); ?>" />
    1010
    1111        <div class="field wp-format-quote">
    12                 <label for="_wp_format_quote" class="screen-reader-text"><?php _e( 'Quote' ); ?>:</label>
     12                <label for="_wp_format_quote" id="wp-format-quote-text"><?php _e( 'Quote' ); ?>:</label>
    1313                <textarea name="_wp_format_quote" placeholder="<?php esc_attr_e( 'Quote' ); ?>" class="widefat"><?php echo esc_textarea( $format_meta['quote'] ); ?></textarea>
    1414        </div>
    1515
    1616        <div class="field wp-format-quote">
    17                 <label for="_wp_format_quote_source" class="screen-reader-text"><?php _e( 'Quote source' ); ?>:</label>
     17                <label for="_wp_format_quote_source" id="wp-format-quote-source-text"><?php _e( 'Quote source' ); ?>:</label>
    1818                <input type="text" name="_wp_format_quote_source" value="<?php echo esc_attr( $format_meta['quote_source'] ); ?>" placeholder="<?php esc_attr_e( 'Quote source' ); ?>" class="widefat" />
    1919        </div>
    2020
     
    3838                                ?>
    3939                        </a>
    4040                </div>
    41                 <label for="_wp_format_image" class="screen-reader-text"><?php _e( 'Attachment ID' ); ?>:</label>
     41                <label for="_wp_format_image" id="wp-format-image-text"><?php _e( 'Attachment ID' ); ?>:</label>
    4242                <input id="wp_format_image" type="hidden" name="_wp_format_image" value="<?php echo esc_attr( $format_meta['image'] ); ?>" placeholder="<?php esc_attr_e( 'Attachment ID' ); ?>" class="widefat" />
    4343        </div>
    4444
    4545        <div class="field wp-format-link wp-format-quote wp-format-image">
    46                 <label for="_wp_format_url" class="screen-reader-text"><?php _e( 'Link URL' ); ?>:</label>
     46                <label for="_wp_format_url" id="wp-format-url-text"><?php _e( 'Link URL' ); ?>:</label>
    4747                <input type="text" name="_wp_format_url" value="<?php echo esc_url( $format_meta['url'] ); ?>" placeholder="<?php esc_attr_e( 'Link URL' ); ?>" class="widefat" />
    4848        </div>
    4949
     
    7070                        ?>
    7171                </div>
    7272                <?php endif ?>
    73                 <label for="_wp_format_video" class="screen-reader-text"><?php _e( 'Video embed code or URL' ); ?>:</label>
     73                <label for="_wp_format_video" id="wp-format-video-text"><?php _e( 'Video embed code or URL' ); ?>:</label>
    7474                <textarea id="wp_format_video" type="text" name="_wp_format_video" placeholder="<?php esc_attr_e( 'Video embed code or URL' ); ?>" class="widefat"><?php esc_html_e( $format_meta['video'] ); ?></textarea>
    7575                <div data-format="video" class="wp-format-media-holder hide-if-no-js<?php if ( ! $image ) echo ' empty'; ?>">
    7676                        <a href="#" class="wp-format-media-select"
     
    104104                        ?>
    105105                </div>
    106106                <?php endif ?>
    107                 <label for="_wp_format_audio" class="screen-reader-text"><?php _e( 'Audio embed code or URL' ); ?>:</label>
     107                <label for="_wp_format_audio" id="wp-format-audio-text"><?php _e( 'Audio embed code or URL' ); ?>:</label>
    108108                <textarea id="wp_format_audio" name="_wp_format_audio" placeholder="<?php esc_attr_e( 'Audio embed code or URL' ); ?>" class="widefat"><?php esc_html_e( $format_meta['audio'] );
    109109?></textarea>
    110110                <div data-format="audio" class="wp-format-media-holder hide-if-no-js<?php if ( empty( $format_meta['audio'] ) ) echo ' empty'; ?>">
  • wp-admin/css/wp-admin.css

     
    30563056        padding: 8px 10px;
    30573057}
    30583058
     3059#wp-format-quote-text,
     3060#wp-format-quote-source-text,
     3061#wp-format-url-text,
     3062#wp-format-image-text,
     3063#wp-format-video-text,
     3064#wp-format-audio-text {
     3065        display: none;
     3066}
     3067
    30593068#wp-fullscreen-save .fs-saved {
    30603069        color: #999;
    30613070        float: right;