why does bones theme call the_excerpt function with parameters?

I have been triying to localize a wordpress site which uses Bones as the theme.

In the theme’s search.php, there is a line that goes:

Read More
<?php the_excerpt('<span class="read-more">' . __('Read more &raquo;', 'bonestheme') . '</span>'); ?>

In the function reference it is said that this function does not take any parameters. So why does this theme send parameters?

Related posts

1 comment

  1. This is a bug in the theme. The real function does indeed not use the parameter:

    /**
     * Display the post excerpt.
     *
     * @since 0.71
     * @uses apply_filters() Calls 'the_excerpt' hook on post excerpt.
     */
    function the_excerpt() {
        echo apply_filters('the_excerpt', get_the_excerpt());
    }
    

    PHP will just ignore it, but the unnecessary gettext call should be avoided. Write a bug report.

Comments are closed.