Opened 13 months ago

#20413 new defect (bug)

edit_post_link() have not an equivalant without echo

Reported by: leblogdudeveloppeur Owned by:
Priority: normal Milestone: Awaiting Review
Component: Template Version: 3.3.1
Severity: minor Keywords: needs-patch
Cc:

Description

Hello,

The function edit_post_link() (in link-template.php) have not a get_edit_post_link() function which returns what is displayed by edit_post_link().

It exists a function get_edit_post_link() but it returns the url of the link. Not the link (with <a href...).

It is not fun for l18n. Example :

<?php printf(__('Filed under: %1$s %2$s', 'azsimple'), get_the_category_list(__(', ', 'azsimple')), get_the_tag_list(__('Tags: ', 'azsimple'), __(', ', 'azsimple'))); ?> <?php edit_post_link(__('Edit', 'azsimple'), __(' &#124; ', 'azsimple')); ?>

How translator could put the edit_post_link before "Filed under:..." with just *.po file ?

Change History (0)

Note: See TracTickets for help on using tickets.