Make WordPress Core


Ignore:
Timestamp:
05/26/2010 03:57:55 AM (15 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.