WordPress.org

Make WordPress Core

Changeset 14930


Ignore:
Timestamp:
05/26/10 03:57:55 (5 years ago)
Author:
nacin
Message:

Hide Flash uploader and theme/plugin editor documentation feature, if no JS. Also some validation fixes in the theme editor. props ocean90. see #13383.

Location:
trunk/wp-admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r14897 r14930  
    14901490</script> 
    14911491 
    1492 <div id="flash-upload-ui"> 
     1492<div id="flash-upload-ui" class="hide-if-no-js"> 
    14931493<?php do_action('pre-flash-upload-ui'); ?> 
    14941494 
     
    22322232 */ 
    22332233function media_upload_html_bypass($flash = true) { 
    2234     echo '<p class="upload-html-bypass">'; 
     2234    echo '<p class="upload-html-bypass hide-if-no-js">'; 
    22352235    _e('You are using the Browser uploader.'); 
    22362236    if ( $flash ) { 
  • trunk/wp-admin/media-upload.php

    r14908 r14930  
    8989    <input type="hidden" name="post_id" id="post_id" value="0" /> 
    9090    <?php wp_nonce_field('media-form'); ?> 
    91     <div id="media-items"> </div> 
     91    <div id="media-items" class="hide-if-no-js"> </div> 
    9292    <p> 
    93     <input type="submit" class="button savebutton" name="save" value="<?php esc_attr_e( 'Save all changes' ); ?>" /> 
     93    <input type="submit" class="button savebutton hide-if-no-js" name="save" value="<?php esc_attr_e( 'Save all changes' ); ?>" /> 
    9494    </p> 
    9595    </form> 
  • trunk/wp-admin/plugin-editor.php

    r14718 r14930  
    212212        </div> 
    213213        <?php if ( !empty( $docs_select ) ) : ?> 
    214         <div id="documentation"><label for="docs-list"><?php _e('Documentation:') ?></label> <?php echo $docs_select ?> <input type="button" class="button" value="<?php esc_attr_e( 'Lookup' ) ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&amp;locale=<?php echo urlencode( get_locale() ) ?>&amp;version=<?php echo urlencode( $wp_version ) ?>&amp;redirect=true'); }" /></div> 
     214        <div id="documentation" class="hide-if-no-js"><label for="docs-list"><?php _e('Documentation:') ?></label> <?php echo $docs_select ?> <input type="button" class="button" value="<?php esc_attr_e( 'Lookup' ) ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&amp;locale=<?php echo urlencode( get_locale() ) ?>&amp;version=<?php echo urlencode( $wp_version ) ?>&amp;redirect=true'); }" /></div> 
    215215        <?php endif; ?> 
    216216<?php if ( is_writeable($real_file) ) : ?> 
  • trunk/wp-admin/theme-editor.php

    r14718 r14930  
    202202         </div> 
    203203    <?php if ( isset($functions ) && count($functions) ) { ?> 
    204         <div id="documentation"> 
     204        <div id="documentation" class="hide-if-no-js"> 
    205205        <label for="docs-list"><?php _e('Documentation:') ?></label> 
    206206        <?php echo $docs_select; ?> 
    207         <input type="button" class="button" value=" <?php esc_attr_e( 'Lookup' ); ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version ) ?>&redirect=true'); }" /> 
     207        <input type="button" class="button" value=" <?php esc_attr_e( 'Lookup' ); ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&amp;locale=<?php echo urlencode( get_locale() ) ?>&amp;version=<?php echo urlencode( $wp_version ) ?>&amp;redirect=true'); }" /> 
    208208        </div> 
    209209    <?php } ?> 
Note: See TracChangeset for help on using the changeset viewer.