[wp-trac] [WordPress Trac] #25796: capital_P_dangit : why only 'the_title' === current_filter() ?

WordPress Trac noreply at wordpress.org
Fri Nov 1 07:49:38 UTC 2013


#25796: capital_P_dangit : why only 'the_title' === current_filter() ?
--------------------------+------------------------------
 Reporter:  tivnet        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:
 Severity:  trivial       |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by nacin):

 This function is attached to the_content, the_title, and comment_text.
 Only the_title could benefit from the simple replacement. The others
 needed to be more judicious (as the next line of the function says).
 wp_title was added in 3.7, and yeah, it should have been added to the
 simple replacement piece. Is that what you're asking?
 [attachment:25796.diff]

 Regular expressions are significantly slower than string expressions.

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


More information about the wp-trac mailing list