Paste #23681

Welcome On LodgeIt

Welcome to the LodgeIt pastebin. In order to use the notification feature a 31 day cookie with an unique ID was created for you. The lodgeit database does not store any information about you, it's just used for an advanced pastebin experience :-). Read more on the about lodgeit page. Have fun :-)

hide this notification

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
function comments_human_number( $zero = false, $one = false, $more = false, $deprecated = '', $number = 0 ) {
	if ( $number > 1 )
		$output = str_replace('%', $number, ( false === $more ) ? __('% Comments') : $more);
	elseif ( $number == 0 )
		$output = ( false === $zero ) ? __('No Comments') : $zero;
	else // must be one
		$output = ( false === $one ) ? __('1 Comment') : $one;

	echo apply_filters('comments_number', $output, $number);
}

function comments_trackback_number( $zero = false, $one = false, $more = false, $deprecated = '', $number = 0 ) {
	if ( $number > 1 )
		$output = str_replace('%', $number, ( false === $more ) ? __('% trackbacks') : $more);
	elseif ( $number == 0 )
		$output = ( false === $zero ) ? __('No trackback') : $zero;
	else // must be one
		$output = ( false === $one ) ? __('1 trackback') : $one;

	echo apply_filters('comments_number', $output, $number);
}
?>