diff --git a/inc/fun/comment-ajax.php b/inc/fun/comment-ajax.php index 87daffda..1b064916 100755 --- a/inc/fun/comment-ajax.php +++ b/inc/fun/comment-ajax.php @@ -162,6 +162,8 @@ function pk_comment_ajax(){ $comment_approved_str = '

您的评论正在等待审核!

'; } + wp_set_comment_cookies($comment, $user); + echo '
'.get_avatar( $comment, 64,'','',array('class'=>'md-avatar') ).'
diff --git a/inc/fun/core.php b/inc/fun/core.php index a2058b8b..609b05dc 100755 --- a/inc/fun/core.php +++ b/inc/fun/core.php @@ -596,13 +596,13 @@ function pk_get_main_menu($mobile=false){ if(is_user_logged_in()){ $user = get_currentuserinfo(); $avatar = get_avatar_url($user->user_email); - $out .= '
  • 用户中心
  • '; + $out .= '
  • 用户中心
  • '; } if(!$mobile){ if(pk_is_checked('theme_mode_s')){ - $out .= '
  • '; + $out .= '
  • '; } - $out .= '
  • '; + $out .= '
  • '; } $out .= ''; return $out; @@ -653,7 +653,7 @@ function pk_get_menu_obj_to_html($menus,&$out,$mobile=false,$dpath_cur=1,$max_dp $cur = $menu->current ? 'menu-current' : ''; $out .= "