WordPress.org

Make WordPress Core

Ticket #20737: 20737.4.diff

File 20737.4.diff, 1.7 KB (added by ryan, 2 years ago)

Two sections. PoC for custom header.

  • wp-admin/custom-header.php

     
    588588                $image_library_url = remove_query_arg( 'TB_iframe', $image_library_url ); 
    589589                $image_library_url = add_query_arg( array( 'context' => 'custom-header', 'TB_iframe' => 1 ), $image_library_url ); 
    590590        ?> 
    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> 
     591        <p> 
     592                <?php _e( 'Choose an image from your media library:' ); ?><br /> 
     593                <a id="choose-from-library-link" class="thickbox button" href="<?php echo esc_url( $image_library_url ); ?>"><?php _e( 'Choose Image' ); ?></a> 
     594        </p> 
    592595</td> 
    593596</tr> 
    594597<?php endif; ?> 
  • wp-admin/css/colors-classic.dev.css

     
    22992299        border-bottom-color: #eff8ff; 
    23002300} 
    23012301 
    2302 #upload-form label { 
    2303         color: #777; 
    2304 } 
    23052302/* custom header & background pages */ 
    23062303 
    23072304/* full screen */ 
  • wp-admin/css/colors-fresh.dev.css

     
    19011901        border-bottom-color: #f9f9f9; 
    19021902} 
    19031903 
    1904 #upload-form label { 
    1905         color: #777; 
    1906 } 
    1907  
    19081904/* Begin About Pages */ 
    19091905 
    19101906.about-wrap h1 {