Ticket #41143: 41143_4.diff
| File 41143_4.diff, 3.4 KB (added by , 9 years ago) |
|---|
-
src/wp-admin/js/theme-plugin-editor.js
73 73 } 74 74 return undefined; 75 75 } ); 76 77 /** 78 * Activates / Deactivates Documentation Lookup Button 79 * 80 * @since 5.0.0 81 * @type {*|HTMLElement} 82 */ 83 84 var docsList = $('#docs-list'); 85 var docsListButton = $('#docs-list-button'); 86 87 docsList.on( 'change', function() { 88 if ( '' !== $( this ).val() ) { 89 docsListButton.prop('disabled', false); 90 } else { 91 docsListButton.prop('disabled', true); 92 } 93 } ); 76 94 }; 77 95 78 96 /** -
src/wp-admin/plugin-editor.php
265 265 <input type="hidden" name="plugin" value="<?php echo esc_attr( $plugin ); ?>" /> 266 266 </div> 267 267 <?php if ( ! empty( $docs_select ) ) : ?> 268 <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_user_locale() ); ?>&version=<?php echo urlencode( get_bloginfo( 'version' ) ); ?>&redirect=true'); }" /></div>268 <div id="documentation" class="hide-if-no-js"><label for="docs-list"><?php _e( 'Documentation:' ); ?></label> <?php echo $docs_select; ?> <input disabled type="button" id="docs-list-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_user_locale() ); ?>&version=<?php echo urlencode( get_bloginfo( 'version' ) ); ?>&redirect=true'); }" /></div> 269 269 <?php endif; ?> 270 270 <?php if ( is_writeable( $real_file ) ) : ?> 271 271 <div class="editor-notices"> -
src/wp-admin/theme-editor.php
285 285 <div id="documentation" class="hide-if-no-js"> 286 286 <label for="docs-list"><?php _e( 'Documentation:' ); ?></label> 287 287 <?php echo $docs_select; ?> 288 <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_user_locale() ); ?>&version=<?php echo urlencode( get_bloginfo( 'version' ) ); ?>&redirect=true'); }" />288 <input disabled type="button" id="docs-list-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_user_locale() ); ?>&version=<?php echo urlencode( get_bloginfo( 'version' ) ); ?>&redirect=true'); }" /> 289 289 </div> 290 290 <?php endif; ?> 291 291
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)