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?
- Translate a plugin using .po .mo files
- How Do I Protect My Premium WordPress App Theme from Copying?
- How to print translation supported text with HTML URL
- Get entered value of customiser field for live preview
- Page template in two level deep folder
- Use of undefined constant FS_CHMOD_DIR – assumed ‘FS_CHMOD_DIR’
- WordPress settings API error when checkbox unchecked
- How to remove header images from all pages except the home page? skeleton theme
- Replace Home with image link inside custom header menu
- WordPress website loads but is not displayed until page scrolled
- Theme Customizer not loading
- Theme Options page not showing up in admin menu
- Force index.php have_posts() loop to exit if no sticky posts found
- How do the default themes reference style.css?
- Input ordering in wordpress theme customizer
- Single page site with history.js
- Not able to select width of blocks inside of cover block
- How do i make a custom section’s setting display the default value in Customizer?
- In this snippet how do I force the function to use gravatar rated G and fill in the alt for get_avatar()?
- Responsive Images – crop don’t seem to work
- WooCommerce: multiple input field for multiple product variations
- How to unset a set query variable?
- Theming Using Bootstrap Glyphicons and WordPress Dashicons
- Overide enqueue in non plugable function via child theme
- Custom Post Type Query issue
- WP_editor doesnt apply wpautop on single line content
- Starting point for custom Themes [closed]
- How to order by multiple date meta_values?
- How to safely return the HTML?
- How do I modify the ‘more’ link in a feed
- Create something that can be added or removed in Customizer
- I need to develop a one-page design
- index.php file in wp-content/themes/ folder
- WordPress dashboard
- Implementing HTML/CSS menu in WordPress theme
- Is there a template tag I can use to link to the archive page corresponding to the month that a post was published on?
- Hide/disable sidebar using shortcode?
- Where are the options “template” and “current_theme” derived from
- Use localized plugin name and description even when the plugin is disabled
- Alter shop page lay-out in OceanWP theme
- WordPress link to another page in site does not render a
- Problem with Displaying Custom Theme Page’s Content
- Change site title color on individual pages
- Git ignore everything except custom theme directory
- HTML to → WP Conversion
- Add multiple sections, settings and controls at once to the Customizer
- Font not loading [closed]
- Adding a Class to an Getting From Post Content
- Translation not working in sprinf variable
- custom theme’s search not working