Opened 13 years ago
Closed 11 years ago
#20413 closed defect (bug) (worksforme)
edit_post_link() have not an equivalant without echo
Reported by: | leblogdudeveloppeur | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 3.3.1 |
Component: | Template | Keywords: | needs-patch |
Focuses: | 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'), __(' | ', 'azsimple')); ?>
How translator could put the edit_post_link before "Filed under:..." with just *.po file ?
Change History (1)
Note: See
TracTickets for help on using
tickets.
This was addressed a while ago. Thanks for the report, sorry it sat around for so long.