WordPress.org

Make WordPress Core

Ticket #13383: themeeditor.valid.patch

File themeeditor.valid.patch, 1.3 KB (added by ocean90, 5 years ago)
  • wp-admin/theme-editor.php

     
    201201                 <input type="hidden" name="scrollto" id="scrollto" value="<?php echo $scrollto; ?>" /> 
    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 } ?> 
    210210