* @copyright Copyright (c) 2008 - 2014, Justin Tadlock * @link http://themehybrid.com/hybrid-core * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html */ /* Default excerpt more. */ add_filter( 'excerpt_more', 'hybrid_excerpt_more', 5 ); /* Modifies the arguments and output of wp_link_pages(). */ add_filter( 'wp_link_pages_args', 'hybrid_link_pages_args', 5 ); add_filter( 'wp_link_pages_link', 'hybrid_link_pages_link', 5 ); /* Filters to add microdata support to common template tags. */ add_filter( 'the_author_posts_link', 'hybrid_the_author_posts_link', 5 ); add_filter( 'get_comment_author_link', 'hybrid_get_comment_author_link', 5 ); add_filter( 'get_comment_author_url_link', 'hybrid_get_comment_author_url_link', 5 ); add_filter( 'comment_reply_link', 'hybrid_comment_reply_link_filter', 5 ); add_filter( 'get_avatar', 'hybrid_get_avatar', 5 ); add_filter( 'post_thumbnail_html', 'hybrid_post_thumbnail_html', 5 ); add_filter( 'comments_popup_link_attributes', 'hybrid_comments_popup_link_attributes', 5 ); /** * Filters the excerpt more output with internationalized text and a link to the post. * * @since 2.0.0 * @access public * @param string $text * @return string */ function hybrid_excerpt_more( $text ) { if ( 0 !== strpos( $text, '%s', get_permalink(), trim( $text ) ); return $text; } /** * Wraps the output of `wp_link_pages()` with `

` tag. * * @since 2.0.0 * @access public * @param array $args * @return array */ function hybrid_link_pages_args( $args ) { $args['before'] = str_replace( '

', '