Make WordPress Core

Ticket #39057: 39057.diff

File 39057.diff, 2.0 KB (added by afercia, 8 years ago)
  • src/wp-admin/includes/file.php

     
    12391239                $hidden_class = ' class="hidden"';
    12401240        }
    12411241?>
    1242 <fieldset id="ssh-keys"<?php echo $hidden_class; ?>">
     1242<fieldset id="ssh-keys"<?php echo $hidden_class; ?>>
    12431243<legend><?php _e( 'Authentication Keys' ); ?></legend>
    12441244<label for="public_key">
    12451245        <span class="field-title"><?php _e('Public Key:') ?></span>
  • src/wp-admin/js/updates.js

     
    15161516         * @param {string} message Error message.
    15171517         */
    15181518        wp.updates.showErrorInCredentialsForm = function( message ) {
    1519                 var $modal = $( '#request-filesystem-credentials-form' );
    1520 
    15211519                // 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>' );
    15241522        };
    15251523
    15261524        /**
     
    16701668        $( function() {
    16711669                var $pluginFilter        = $( '#plugin-filter' ),
    16721670                        $bulkActionForm      = $( '#bulk-action-form' ),
     1671                        $filesystemForm      = $( '#request-filesystem-credentials-form' ),
    16731672                        $filesystemModal     = $( '#request-filesystem-credentials-dialog' ),
    16741673                        $pluginSearch        = $( '.plugins-php .wp-filter-search' ),
    16751674                        $pluginInstallSearch = $( '.plugin-install-php .wp-filter-search' );
     
    17251724                 *
    17261725                 * @since 4.2.0
    17271726                 */
    1728                 $filesystemModal.on( 'change', 'input[name="connection_type"]', function() {
     1727                $filesystemForm.on( 'change', 'input[name="connection_type"]', function() {
    17291728                        $( '#ssh-keys' ).toggleClass( 'hidden', ( 'ssh' !== $( this ).val() ) );
    17301729                } ).change();
    17311730