WordPress.org

Make WordPress Core

Ticket #26667: 26667.diff

File 26667.diff, 550 bytes (added by clifgriffin, 6 years ago)
  • wp-includes/general-template.php

    diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
    index 7a83579..fee8ab3 100644
    a b function single_term_title( $prefix = '', $display = true ) { 
    807807        if ( empty( $term_name ) )
    808808                return;
    809809
     810        $result = apply_filters( 'single_term_title_result', $prefix . $term_name, $term_name, $prefix );
     811
    810812        if ( $display )
    811                 echo $prefix . $term_name;
     813                echo $result;
    812814        else
    813                 return $prefix . $term_name;
     815                return $result;
    814816}
    815817
    816818/**