Menu entry not localized
-
Hello,
Thank you for your great plugin. There’s some mistakes with l10n/i18n, could you please add i18n function for wp-content/plugins/frontend-dashboard/includes/admin/function-admin.php login_logout_menu()
function login_logout_menu( $items, $args ) { $fed_login = get_option( 'fed_admin_login' ); if ( ! empty( $args->theme_location ) && $args->theme_location === fed_get_data( 'login_menu.menu_item', $fed_login ) ) { if ( is_user_logged_in() ) { $items .= '<li><a href="' . fed_get_dashboard_url() . '">Dashboard</a></li>'; $items .= '<li><a href="' . wp_logout_url() . '">Log Out</a></li>'; } else { $items .= '<li><a href="' . wp_login_url( get_permalink() ) . '">Log In</a></li>'; } } return $items; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Menu entry not localized’ is closed to new replies.