[wp-trac] [WordPress Trac] #3874: add returns in functions: the_time
the_content the_permalink
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 26 11:09:32 GMT 2007
#3874: add returns in functions: the_time the_content the_permalink
----------------------------+-----------------------------------------------
Reporter: pampfelimetten | Owner: anonymous
Type: enhancement | Status: new
Priority: low | Milestone: 2.1.2
Component: General | Version: 2.1
Severity: minor | Keywords: return function time content permalink
----------------------------+-----------------------------------------------
it would be great to include returns in this functions, i am using a
couple of self written scripts (like a newsletter system, which is getting
the data from a wp-installation) in which it would be helpful.
if there are no security reasons, why this would be a bad idea, i'd be
really happy about it.
i'm using it since 2.0 without complications.
maybe you could use also include it in other functions?
function the_permalink() {
echo apply_filters('the_permalink', get_permalink());
return apply_filters('the_permalink', get_permalink());
}
function the_content($more_link_text = '(more...)', $stripteaser = 0,
$more_file = '') {
$content = get_the_content($more_link_text, $stripteaser,
$more_file);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;
return $content;
}
function the_time( $d = '' ) {
echo apply_filters('the_time', get_the_time( $d ), $d);
return apply_filters('the_time', get_the_time( $d ), $d);
}
--
Ticket URL: <http://trac.wordpress.org/ticket/3874>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list