WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/24/2012 09:03:38 PM (9 years ago)
Author:
ryan
Message:

Improve appearance of "choose from library" link for headers and backgrounds. Props SergeyBiryukov, sabreuse. see #20737

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-header.php

    r20839 r20884  
    580580        <input type="file" id="upload" name="import" />
    581581        <input type="hidden" name="action" value="save" />
    582         <?php wp_nonce_field( 'custom-header-upload', '_wpnonce-custom-header-upload' ) ?>
     582        <?php wp_nonce_field( 'custom-header-upload', '_wpnonce-custom-header-upload' ); ?>
    583583        <?php submit_button( __( 'Upload' ), 'button', 'submit', false ); ?>
    584584    </p>
    585     </form>
    586585    <?php
    587586        $image_library_url = get_upload_iframe_src( 'image', null, 'library' );
     
    589588        $image_library_url = add_query_arg( array( 'context' => 'custom-header', 'TB_iframe' => 1 ), $image_library_url );
    590589    ?>
    591     <span class="howto"><?php _ex( 'or', 'Custom Header: Choose an image from your computer - or - Choose from image library' ); ?></span> <a id="choose-from-library-link" class="thickbox" href="<?php echo $image_library_url; ?>"><?php _e( 'Choose from image library' ); ?></a>
     590    <p>
     591        <label for="choose-from-library-link"><?php _e( 'Or choose an image from your media library:' ); ?></label><br />
     592        <a id="choose-from-library-link" class="button thickbox" href="<?php echo esc_url( $image_library_url ); ?>"><?php _e( 'Choose Image' ); ?></a>
     593    </p>
     594    </form>
    592595</td>
    593596</tr>
Note: See TracChangeset for help on using the changeset viewer.