WordPress.org

Make WordPress Core

Ticket #14808: 14808.diff

File 14808.diff, 1.2 KB (added by GaryJ, 4 years ago)

First draft.

  • theme-editor.php

     
    230230                <div id="documentation" class="hide-if-no-js"> 
    231231                <label for="docs-list"><?php _e('Documentation:') ?></label> 
    232232                <?php echo $docs_select; ?> 
    233                 <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'); }" /> 
     233                <input type="button" class="button" value=" <?php esc_attr_e( 'Lookup' ); ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( '<?php echo esc_url( apply_filters( 'documentation_url', 'http://api.wordpress.org/core/handbook/1.0/?function=', $theme, $file ) ); ?>' + escape( jQuery( '#docs-list' ).val() ) + '&amp;locale=<?php echo urlencode( get_locale() ) ?>&amp;version=<?php echo urlencode( $wp_version ) ?>&amp;redirect=true'); }" /> 
    234234                </div> 
    235235        <?php } ?> 
    236236