mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 14:47:02 +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:
@@ -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