Skip to content

Commit

Permalink
auto fill article password for admin
Browse files Browse the repository at this point in the history
  • Loading branch information
solstice23 committed Sep 6, 2020
1 parent 2cf9dc5 commit 42b7034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template-parts/content-single.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-key"></i></span>
</div>
<input name="post_password" class="form-control" placeholder="<?php _e('密码', 'argon');?>" type="password">
<input name="post_password" class="form-control" placeholder="<?php _e('密码', 'argon');?>" type="password" value="<?php if (current_user_can('level_7')){global $post;if (isset($post -> post_password)){echo esc_attr($post->post_password);}} ?>">
</div>
<?php
$post_password_hint = get_post_meta(get_the_ID(), 'password_hint', true);
Expand Down

0 comments on commit 42b7034

Please sign in to comment.