Make WordPress Core

Changeset 10792


Ignore:
Timestamp:
03/15/2009 05:14:44 PM (16 years ago)
Author:
azaozz
Message:

Fix undefined variable in theme-editor, props mrmist, fixes #9333

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/theme-editor.php

    r10767 r10792  
    203203         <input type="hidden" name="theme" value="<?php echo $theme ?>" />
    204204         </div>
    205         <?php if ( count( $functions ) ) : ?>
    206         <div id="documentation"><label for="docs-list">Documentation:</label> <?php echo $docs_select ?> <input type="button" class="button" value=" <?php _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'); }" /></div>
    207         <?php endif; ?>
     205    <?php if ( isset($functions ) && count($functions) ) { ?>
     206        <div id="documentation">
     207        <label for="docs-list">Documentation:</label>
     208        <?php echo $docs_select; ?>
     209        <input type="button" class="button" value=" <?php _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'); }" />
     210        </div>
     211    <?php } ?>
    208212
    209213        <div>
Note: See TracChangeset for help on using the changeset viewer.