Ticket #41143: 41143_v3.diff
File 41143_v3.diff, 3.4 KB (added by , 8 years ago) |
---|
-
wp-admin/js/common.js
1026 1026 } 1027 1027 })(); 1028 1028 1029 // Make the Look Up button in Theme / Plugin Editors disabled if nothing is selected. 1030 $('#documentation #docs-list').change(function(){ 1031 if ( $( this ).val() != '' ) { 1032 $('#documentation #documentationLookup').prop('disabled', false); 1033 } 1034 else 1035 { 1036 $('#documentation #documentationLookup').prop('disabled', true); 1037 } 1038 }); 1039 1029 1040 }( jQuery, window )); -
wp-admin/plugin-editor.php
272 272 <input type="hidden" name="scrollto" id="scrollto" value="<?php echo $scrollto; ?>" /> 273 273 </div> 274 274 <?php if ( !empty( $docs_select ) ) : ?> 275 <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> 275 <div id="documentation" class="hide-if-no-js"> 276 <label for="docs-list"><?php _e('Documentation:') ?></label> 277 <?php echo $docs_select ?> 278 <input disabled id="documentationLookup" 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'); }" /> 279 </div> 276 280 <?php endif; ?> 277 281 <?php if ( is_writeable($real_file) ) : ?> 278 282 <?php if ( in_array( $plugin, (array) get_option( 'active_plugins', array() ) ) ) { ?> -
wp-admin/theme-editor.php
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_user_locale() ) ?>&version=<?php echo urlencode( get_bloginfo( 'version' ) ) ?>&redirect=true'); }" />267 266 <input disabled id="documentationLookup" 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'); }" /> 267 </div> 268 268 <?php endif; ?> 269 269 270 270 <div>