get_links()
-
According to the latest nightly build (12/16), the parameters for the get_links() function in wp-includes/links.php is as follows:
function get_links($category = -1, $before = '', $after = '
',
$between = ' ', $show_images = true, $orderby = 'name',
$show_description = true, $show_rating = false,
$limit = -1, $show_updated = 1, $echo = true)
Unfortunately, the comments about the function show $show_updated as having a default of 0 and do not even mention what the $echo parameter is all about. Unfortunately, the information http://wiki.wordpress.org/TemplateTags/get_links is also wrong. So the question is; is the documentation or the current parameter correct? Should $show_updated default to 0 or 1? And what’s $echo all about? I actually don’t see it being used in the function unless that’s a clever way to supress all output? Either way, it should be documented, no?
I’d be more than happy to fix the Wiki, I just wanted to know what the general concensus was?
The topic ‘get_links()’ is closed to new replies.