mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Administration: Hide password in options/writing.
Hide the password for the "Post via e-mail" settings in writing options. Use the same password hiding mechanisms in use elsewhere in core. Props mastrup, denis-de-bernardy, ryan, brookedot, wojtek.szkutnik, dd32, sabreuse, sergeybiryukov, costdev, peterwilsoncc, zgrkaralar, clorith, renyot, sabernhardt, boniu91, ironprogrammer, bgoewert. Fixes #9883. git-svn-id: https://develop.svn.wordpress.org/trunk@55974 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -551,6 +551,54 @@ fieldset label,
|
||||
|
||||
.wp-pwd {
|
||||
margin-top: 1em;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.mailserver-pass-wrap .wp-pwd {
|
||||
display: inline-block;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* rtl:ignore */
|
||||
#mailserver_pass {
|
||||
direction: ltr;
|
||||
padding-right: 2.5rem;
|
||||
}
|
||||
|
||||
/* rtl:ignore */
|
||||
.mailserver-pass-wrap .button.wp-hide-pw {
|
||||
background: transparent;
|
||||
border: 1px solid transparent;
|
||||
box-shadow: none;
|
||||
font-size: 14px;
|
||||
line-height: 2;
|
||||
width: 2.5rem;
|
||||
min-width: 40px;
|
||||
margin: 0;
|
||||
padding: 0 9px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.mailserver-pass-wrap .button.wp-hide-pw:hover {
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.mailserver-pass-wrap .button.wp-hide-pw:focus {
|
||||
background: transparent;
|
||||
border-color: #3582c4;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 0 0 1px #3582c4;
|
||||
/* Only visible in Windows High Contrast mode */
|
||||
outline: 2px solid transparent;
|
||||
}
|
||||
|
||||
.mailserver-pass-wrap .button.wp-hide-pw:active {
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
#misc-publishing-actions label {
|
||||
|
||||
@@ -54,6 +54,8 @@ get_current_screen()->set_help_sidebar(
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
wp_enqueue_script( 'user-profile' );
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
?>
|
||||
|
||||
@@ -168,11 +170,21 @@ if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
|
||||
<th scope="row"><label for="mailserver_login"><?php _e( 'Login Name' ); ?></label></th>
|
||||
<td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option( 'mailserver_login' ); ?>" class="regular-text ltr" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="mailserver_pass"><?php _e( 'Password' ); ?></label></th>
|
||||
<td>
|
||||
<input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option( 'mailserver_pass' ); ?>" class="regular-text ltr" />
|
||||
</td>
|
||||
<tr class="mailserver-pass-wrap">
|
||||
<th scope="row">
|
||||
<label for="mailserver_pass">
|
||||
<?php _e( 'Password' ); ?>
|
||||
</label>
|
||||
</th>
|
||||
<td>
|
||||
<input type="hidden" value=" " /><!-- #24364 workaround -->
|
||||
<span class="wp-pwd">
|
||||
<input type="text" name="mailserver_pass" id="mailserver_pass" class="regular-text ltr" autocomplete="off" data-reveal="1" data-pw="<?php echo esc_attr( get_option( 'mailserver_pass' ) ); ?>" />
|
||||
<button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" data-start-masked="1" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
|
||||
<span class="dashicons dashicons-visibility" aria-hidden="true"></span>
|
||||
</button>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="default_email_category"><?php _e( 'Default Mail Category' ); ?></label></th>
|
||||
|
||||
Reference in New Issue
Block a user