Ticket #39057: 39057.diff
File 39057.diff, 2.0 KB (added by , 8 years ago) |
---|
-
src/wp-admin/includes/file.php
1239 1239 $hidden_class = ' class="hidden"'; 1240 1240 } 1241 1241 ?> 1242 <fieldset id="ssh-keys"<?php echo $hidden_class; ?> ">1242 <fieldset id="ssh-keys"<?php echo $hidden_class; ?>> 1243 1243 <legend><?php _e( 'Authentication Keys' ); ?></legend> 1244 1244 <label for="public_key"> 1245 1245 <span class="field-title"><?php _e('Public Key:') ?></span> -
src/wp-admin/js/updates.js
1516 1516 * @param {string} message Error message. 1517 1517 */ 1518 1518 wp.updates.showErrorInCredentialsForm = function( message ) { 1519 var $modal = $( '#request-filesystem-credentials-form' );1520 1521 1519 // Remove any existing error. 1522 $ modal.find( '.notice' ).remove();1523 $ modal.find( '#request-filesystem-credentials-title' ).after( '<div class="notice notice-alt notice-error"><p>' + message + '</p></div>' );1520 $filesystemForm.find( '.notice' ).remove(); 1521 $filesystemForm.find( '#request-filesystem-credentials-title' ).after( '<div class="notice notice-alt notice-error"><p>' + message + '</p></div>' ); 1524 1522 }; 1525 1523 1526 1524 /** … … 1670 1668 $( function() { 1671 1669 var $pluginFilter = $( '#plugin-filter' ), 1672 1670 $bulkActionForm = $( '#bulk-action-form' ), 1671 $filesystemForm = $( '#request-filesystem-credentials-form' ), 1673 1672 $filesystemModal = $( '#request-filesystem-credentials-dialog' ), 1674 1673 $pluginSearch = $( '.plugins-php .wp-filter-search' ), 1675 1674 $pluginInstallSearch = $( '.plugin-install-php .wp-filter-search' ); … … 1725 1724 * 1726 1725 * @since 4.2.0 1727 1726 */ 1728 $filesystem Modal.on( 'change', 'input[name="connection_type"]', function() {1727 $filesystemForm.on( 'change', 'input[name="connection_type"]', function() { 1729 1728 $( '#ssh-keys' ).toggleClass( 'hidden', ( 'ssh' !== $( this ).val() ) ); 1730 1729 } ).change(); 1731 1730