diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php
index 1558164..fa706dd 100644
a
|
b
|
foreach ( $plugin_files as $plugin_file ) : |
260 | 260 | <input type="hidden" name="scrollto" id="scrollto" value="<?php echo $scrollto; ?>" /> |
261 | 261 | </div> |
262 | 262 | <?php if ( !empty( $docs_select ) ) : ?> |
263 | | <div id="documentation" class="hide-if-no-js"><label for="docs-list"><?php _e('Documentation:') ?></label> <?php echo $docs_select ?> <input type="button" class="button" value="<?php esc_attr_e( 'Look Up' ) ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'https://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> |
| 263 | <div id="documentation" class="hide-if-no-js"><label for="docs-list"><?php _e('Documentation:') ?></label> <?php echo $docs_select ?> <input type="button" class="button" value="<?php esc_attr_e( 'Look Up' ) ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( '<?php echo esc_url( apply_filters( 'file_editor_documentation_url', 'https://api.wordpress.org/core/handbook/1.0/?function=', urlencode( $plugin ), $file ) ); ?>' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version ) ?>&redirect=true'); }" /></div> |
264 | 264 | <?php endif; ?> |
265 | 265 | <?php if ( is_writeable($real_file) ) : ?> |
266 | 266 | <?php if ( in_array( $file, (array) get_option( 'active_plugins', array() ) ) ) { ?> |
diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php
index 6fae2b7..ceb8262 100644
a
|
b
|
else : ?> |
263 | 263 | <div id="documentation" class="hide-if-no-js"> |
264 | 264 | <label for="docs-list"><?php _e('Documentation:') ?></label> |
265 | 265 | <?php echo $docs_select; ?> |
266 | | <input type="button" class="button" value=" <?php esc_attr_e( 'Look Up' ); ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'https://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'); }" /> |
| 266 | <input type="button" class="button" value=" <?php esc_attr_e( 'Look Up' ); ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( '<?php echo esc_url( apply_filters( 'file_editor_documentation_url', 'https://api.wordpress.org/core/handbook/1.0/?function=', urlencode( $stylesheet ), $file ) ); ?>' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version ) ?>&redirect=true'); }" /> |
267 | 267 | </div> |
268 | 268 | <?php endif; ?> |
269 | 269 | |