Plugin Directory

Changeset 2056082


Ignore:
Timestamp:
03/23/2019 11:42:29 PM (7 years ago)
Author:
warriorrocker
Message:

Remove errant echo in templates output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xo-for-angular/trunk/Includes/Filters/External/PostTemplates.class.php

    r2056075 r2056082  
    1919    }
    2020
    21     function Init() {
     21    protected function Init() {
    2222        add_filter('template_include', array($this, 'TemplateInclude'), 1, 1);
    2323        add_filter('default_page_template_title', array($this, 'DefaultPageTemplateTitle'), 10, 2);
     
    2525    }
    2626
    27     function TemplateInclude($template) {
     27    public function TemplateInclude($template) {
    2828        if (($this->Xo->Services->Options->GetOption('xo_index_redirect_mode') == 'live')
    2929            && ($file = $this->Xo->GetFile('Includes/Theme/ThemeIndex.php')))
     
    3333    }
    3434
    35     function ThemeTemplates($templates, WP_Theme $theme, $post, $post_type) {
    36         echo 'theme templates';
     35    public function ThemeTemplates($templates, WP_Theme $theme, $post, $post_type) {
    3736        $annotatedTemplates = $this->Xo->Services->TemplateReader->GetAnnotatedTemplates();
    3837
Note: See TracChangeset for help on using the changeset viewer.