<?php
/**
 * Filters
 *
 * @package blockera
 */

/**
 * Show '(No title)' if a post has no title.
 *
 */
add_filter(
	'the_title',
	function( $title ) {
		if ( ! is_admin() && empty( $title ) ) {
			$title = _x( '(No title)', 'Used if posts or pages has no title', 'blockera' );
		}

		return $title;
	}
);

/**
 * Replace the default [...] excerpt more with an elipsis.
 *
*/
add_filter(
	'excerpt_more',
	function( $more ) {
		return '&hellip;';
	}
);
