Notice fix for plugin editor when no functions found. See #9393 props sivel.
git-svn-id: https://develop.svn.wordpress.org/trunk@11226 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
76fcdd118d
commit
18291c1084
|
@ -203,7 +203,7 @@ foreach ( $plugin_files as $plugin_file ) :
|
|||
<input type="hidden" name="file" value="<?php echo esc_attr($file) ?>" />
|
||||
<input type="hidden" name="plugin" value="<?php echo esc_attr($plugin) ?>" />
|
||||
</div>
|
||||
<?php if ( count( $functions ) ) : ?>
|
||||
<?php if ( isset( $functions ) ) : ?>
|
||||
<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() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version ) ?>&redirect=true'); }" /></div>
|
||||
<?php endif; ?>
|
||||
<?php if ( is_writeable($real_file) ) : ?>
|
||||
|
|
Loading…
Reference in New Issue