[wp-trac] [WordPress Trac] #20413: edit_post_link() have not an equivalant without echo

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 10 21:17:00 UTC 2012


#20413: edit_post_link() have not an equivalant without echo
---------------------------------+-----------------------------
 Reporter:  leblogdudeveloppeur  |      Owner:
     Type:  defect (bug)         |     Status:  new
 Priority:  normal               |  Milestone:  Awaiting Review
Component:  Template             |    Version:  3.3.1
 Severity:  minor                |   Keywords:  needs-patch
---------------------------------+-----------------------------
 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 ?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20413>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list