Support » How-To and Troubleshooting » RE: edit_post_link
10 years ago
I would like to ask:
What is the difference between edit_post_link('Edit'); and edit_post_link(__('Edit'));?
Thanks in advance for your help!
The second one is prepared for localization (l10n), i.e. it must come from a theme that is “internationalized” (i18n).
Thank you for the reply. Do the parameters for the former stand for the latter too?
e.g. edit_post_link(__('edit', '<p>', '</p>'));
edit_post_link(__('edit', '<p>', '</p>'));
Because my tests show they don’t…
Never checked, although they should. However, if it doesn’t work and you don’t intend to distribute your theme to international users – you don’t really need it.
Again, thank you!