[wp-trac] [WordPress Trac] #16632: Template title tags shouldn't ignore the prefix, even if 'display' is false

WordPress Trac noreply at wordpress.org
Sun Jul 21 21:30:14 UTC 2013


#16632: Template title tags shouldn't ignore the prefix,even if 'display' is false
-------------------------------------+------------------------------
 Reporter:  yoavf                    |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Template                 |     Version:  3.1
 Severity:  minor                    |  Resolution:
 Keywords:  has-patch needs-refresh  |
-------------------------------------+------------------------------
Changes (by vaxace):

 * cc: vaxace (added)
 * keywords:  has-patch => has-patch needs-refresh


Comment:

 This is still an issue in WordPress V3.5.2.
 In wp-includes/general-template.php at line 635 there is an if statement
 testing the $display argument. If $display is true, $prefix and $title are
 echoed. If $display is false, only $title is echoed.
 {{{#!php
 if ( $display )
   echo $prefix . $title;
 else
    return $title; // Should be return $prefix . $title;
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/16632#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list