Add namespace

This commit is contained in:
Ben Word
2015-01-09 22:08:57 -06:00
parent 9e1922b06f
commit 587fbf6c35
13 changed files with 93 additions and 50 deletions

View File

@@ -1,8 +1,11 @@
<?php
namespace Roots\Sage\Extras;
/**
* Clean up the_excerpt()
*/
function sage_excerpt_more() {
function excerpt_more() {
return ' &hellip; <a href="' . get_permalink() . '">' . __('Continued', 'sage') . '</a>';
}
add_filter('excerpt_more', 'sage_excerpt_more');
add_filter('excerpt_more', __NAMESPACE__ . '\\excerpt_more');