The main problem is that you removed the sprintf.
Replace the echo with sprintf and remove the ().
Should be like this
'logged_in_as' => '<p class="logged-in-as">'.
sprintf( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>',
admin_url( 'profile.php' ),
$user_identity,
wp_logout_url( apply_filters( 'the_permalink', get_permalink( ) ) ) ).
'</p>',
Be careful! changing code directly in a plugin will lead to problems.
Next plugin update your code will be removed so be mindful.
If you can try using a filter, if the plugin has one. That way the changed you are doing when connecting to that filter will stay, unless the plugin author changed the filter name =]
Related Posts:
- How to create .pot files with POedit?
- What is the purpose of an extra file for translation?
- Internationalization and functions that use it
- Should I change text-domain of TGM library inside theme?
- Single translation for many locales
- Does the textdomain have to be the theme’s name?
- Translate a theme with a PO file
- Menu names not getting translated
- Display Today’s date outside the loop?
- When to use _e and __ for the translation?
- What is a Theme textdomain?
- pass object/JSON to wp_localize_script
- Enqueue Stylesheets After Theme’s “rtl.css”
- Caching and Versioning for rtl.css
- Use __($str) and _e($str) to translate strings with HTML
- How to concatenate inside the _e() function the right way?
- Make a custom theme translate-ready
- Change text of twentyseventeen_edit_link()
- Theme elements not translating
- Translated strings not appearing – what am I missing?
- Should we localize custom-made themes / plugins?
- Help with “text domain”, comments_form in WordPress theme
- Prevent WordPress updates from overriding custom language translations?
- How do I translate this string – PHP syntax question
- Translation-readiness of Koi theme
- Some translations do not work in my template class
- My custom theme does not load the translations
- How to change i18n/l10n of #reply-title? (Old title: Comment reply link not working)
- How to make the_tags title translatable?
- Translation Issue with WordPress Theme Check in comment_form function
- Theme translation not applying
- Default string not appearing want to translate
- 2 localizations inside a WordPress theme
- Change locale by detecting viewer’s browser language setting and let them choose prefered language after
- comment form args are not translatable (customized comment form)
- Set parent theme language with custom .mo files
- Why set a second parameter in the translate function?
- Do I need to include a textdomain if my theme doesn’t support translation?
- Do translation functions like __e() have to take strings in English in themes?
- Translate a child theme with pure PHP and gettext
- using Options Framework – can “theme-textdomain” domain be changed?
- Cart displayed above header
- WordPress theme doesn’t read my translations from pt_BR.po file
- Theme starter content translation is not working
- How to set different localization file for different users?
- How to generate a rtl.css file for themes?
- Any way to permanently translate themes?
- Enqueue Stylesheets After Theme’s “rtl.css”
- What are these variables and where are they documented?
- How to use esc_attr__() function properly to translate a variable that contains string?
- Dashboard and Site Language only partially translated (in own theme)
- Javascript localization doesn’t load. How to Internationalize javascript without plugin?
- Menu items description? Custom Walker for wp_nav_menu()
- How to define and link full path to css located at a random folder on header.php
- Sizing screenshot.png without losing aspect ratio
- Software for WordPress Theme and Plugin Development? [closed]
- When to use is_home() vs is_front_page()?
- What is the preferred way to add custom javascript files to the site?
- Get the blog page URL set in Options
- How do I get the theme URL in PHP?
- Translate a plugin using .po .mo files
- Why when I submit a form in wordpress it loads a 404 page though URL is correct
- What is the constant WP_USE_THEMES for?
- Worthwhile to restrict direct access of theme files?
- How Do I Protect My Premium WordPress App Theme from Copying?
- How to detect mobile devices and present them a specific theme?
- Using wp_add_inline_style without a stylesheet
- How to add posts to custom menus?
- WordPress Theme Preview Image
- How To extend WP_Customize_Control
- What is the difference between front-page.php and home.php? [duplicate]
- How can I get page slug
- Does the functions.php file ever get called during an AJAX call? Debug AJAX
- How to show a custom meta box on the “Quick Edit” screen?
- How to add CSS class to custom logo?
- How to make a WordPress plugin translation ready?
- How to add custom css file in theme?
- How important is it to enqueue a theme’s stylesheet?
- CSS not updating in browser when I change it
- Display Search Result Count
- wp_nav_menu(), how to change class?
- theme path in javascript file
- Is wp_is_mobile() effective?
- Theme localization of “slugs” (custom post types, taxonomies)
- Display Menu Name using wp_nav_menu
- Making update notification functionality for my themes
- What questions do you ask when asked to give an estimate on theme development?
- How to remove dashicons.min.css from frontend?
- How do I remove a pre-existing customizer setting?
- Minimum Template Files for Theme Development
- What’s the difference between home.php and index.php?
- get_template_part vs action hooks in themes
- Theme Activate Hook
- Solutions for generating dynamic javascript / CSS
- wp_redirect() – headers already sent
- Can I create my own “Recent Posts” widget or customize the existing one?
- Custom single template for a specific category
- how can I add an icon/image for a child theme?
- How can I add a URL field to the attachments window?
- The the_post_thumbnail without srcset?