[wp-trac] [WordPress Trac] #35262: New function: `has_title`

WordPress Trac noreply at wordpress.org
Wed Dec 30 08:25:25 UTC 2015


#35262: New function: `has_title`
-------------------------------+------------------------------
 Reporter:  sebastian.pisula   |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------

Comment (by rabmalin):

 Would not it be nice if you use `get_the_title` to check the title rather
 than `get_post`? Post title has other conditions also which are managed
 well inside `get_the_title` function.

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


More information about the wp-trac mailing list