我正在尝试这样的链接:site.com/forums/user/userid
使用下面的代码。我想我把它搞砸了,因为它一直在这条线上产生错误。
$buttons[\'Edit My Profile\'] = site_url(\'/forums/user/\')$current_user->user_login;
以下是更多相关代码:
<?php
if ( is_user_logged_in() ) {
global $current_user;
get_currentuserinfo();
$buttons = array();
if ( $sl_options[\'show_dashboard\'] )
$buttons[\'Dashboard\'] = admin_url();
if ( $sl_options[\'show_profile\'] )
$buttons[\'Edit My Profile\'] = site_url(\'/forums/user/\')$current_user->user_login;
$buttons[\'Log Out\'] = ( $sl_options[\'redirect_logout\'] == \'custom\' && $sl_options[\'redirect_logout_url\'] != \'\' ) ? wp_logout_url( $sl_options[\'redirect_logout_url\'] ) : wp_logout_url( $this->current_url() );
?>
谁能看看我在那条线上哪里出了问题吗?