[wp-trac] [WordPress Trac] #48122: Improving `title-tag`

WordPress Trac noreply at wordpress.org
Wed Sep 25 02:34:01 UTC 2019


#48122: Improving `title-tag`
--------------------------------------+------------------------------
 Reporter:  ngdangtu                  |       Owner:  (none)
     Type:  feature request           |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Themes                    |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  dev-feedback needs-patch  |     Focuses:  ui, template
--------------------------------------+------------------------------

Comment (by ngdangtu):

 Add a ticket patch.

 This patch reduces modification from 4 lines to 2 lines (remove changing
 line 1151 and 1156) since _wp_render_title_tag() is a private function.

 I suggest the new argument because it might be useful for meta title or to
 display in other position of web which might need a few modification while
 calling wp_get_document_title(). I hope this suggestion is useful to other
 devs.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48122#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list