WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 7 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'), __(' &#124; ', 'azsimple')); ?>

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

Change History (1)

#1 @nacin
7 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

This was addressed a while ago. Thanks for the report, sorry it sat around for so long.

Note: See TracTickets for help on using tickets.