Notice fix for plugin editor when no functions found. See #9393 props sivel.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e191104e4a
commit
bec3e497e5
|
@ -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="file" value="<?php echo esc_attr($file) ?>" />
|
||||||
<input type="hidden" name="plugin" value="<?php echo esc_attr($plugin) ?>" />
|
<input type="hidden" name="plugin" value="<?php echo esc_attr($plugin) ?>" />
|
||||||
</div>
|
</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>
|
<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 endif; ?>
|
||||||
<?php if ( is_writeable($real_file) ) : ?>
|
<?php if ( is_writeable($real_file) ) : ?>
|
||||||
|
|
Loading…
Reference in New Issue