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\Titles;
/**
* Page titles
*/
function sage_title() {
function title() {
if (is_home()) {
if (get_option('page_for_posts', true)) {
return get_the_title(get_option('page_for_posts', true));