From 7551f99641bede78688853fed41bb9e58148c3f7 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Sun, 30 Mar 2014 19:36:47 -0500 Subject: [PATCH] Re-add excerpt and wp_title functions from cleanup.php Rename custom.php to extras.php --- functions.php | 2 +- lib/custom.php | 4 ---- lib/extras.php | 22 ++++++++++++++++++++++ 3 files changed, 23 insertions(+), 5 deletions(-) delete mode 100644 lib/custom.php create mode 100644 lib/extras.php diff --git a/functions.php b/functions.php index b61a714..fc3fc88 100644 --- a/functions.php +++ b/functions.php @@ -13,4 +13,4 @@ require_once locate_template('/lib/nav.php'); // Custom nav modifica require_once locate_template('/lib/gallery.php'); // Custom [gallery] modifications require_once locate_template('/lib/comments.php'); // Custom comments modifications require_once locate_template('/lib/scripts.php'); // Scripts and stylesheets -require_once locate_template('/lib/custom.php'); // Custom functions +require_once locate_template('/lib/extras.php'); // Custom functions diff --git a/lib/custom.php b/lib/custom.php deleted file mode 100644 index a7a52fb..0000000 --- a/lib/custom.php +++ /dev/null @@ -1,4 +0,0 @@ -' . __('Continued', 'roots') . ''; +} +add_filter('excerpt_more', 'roots_excerpt_more'); + +/** + * Manage output of wp_title() + */ +function roots_wp_title($title) { + if (is_feed()) { + return $title; + } + + $title .= get_bloginfo('name'); + + return $title; +} +add_filter('wp_title', 'roots_wp_title', 10);